Child pages
  • Integrating a Non-Java Program As An Algorithm

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Figure 9: Adding the input parameter.

Figure 10: The Algorithm Parameters page with the input parameter specified.
Click Next >.

...

The example algorithm in this tutorial expects one item off of the Data Manager, so click the Add button under the Input Data section to add a new input data item. For the Mime Type, input text/nwb.


Figure 11: Adding the input data item.

The example algorithm in this tutorial also outputs one item on to the Data Manager, so click the Add button under the Output Data section to add a new output data item. Give the output data item the following values: File Name: output.txt Label: Example Non-Java Algorithm Output File Data Type: Text Mime Type: text/plain


Figure 12: Adding the output data item.


Figure 13: The Input and Output Data page with the input and output data items specified.

...

(quotes included) should appear in the Template String field.


Figure 14: The first template string placeholder has been inserted.

...

You should now have a new project in your Eclipse workspace.


Figure 17: The new project in the Eclipse workspace.

...

Now that you have an Eclipse project for your algorithm, the next step is to build the project. Fortunately, it is just a matter of running the build.xml Ant script that was created with your project. Right-click on the build.xml file and select Run As->Ant Build to build the project.


Figure 18: Building the Eclipse project.

...

Now that your project has been built, it can be exported as a plugin for Network Workbench. Refresh your workspace. (You can do this by right-clicking on your project in the Package Explorer and selecting Refresh.) You should see a new build directory. Expand it. Inside of it should be an out directory and a file called projectName_bundleVersion.jar, where projectName and bundleVersion were specified in the wizard. (For this tutorial, the file would be called example.nonjava.algorithm_0.0.1.jar.) Right-click on this file, and select Export...


Figure 19: Exporting the built Network Workbench plugin.

The Export window should open. Select General->File System, and click Next >.


Figure 20: Exporting the built Network Workbench plugin.

...

Select the plugins directory inside your Network Workbench installation (e.g. C:\Program Files\NWB\plugins), and then click Finish. (Note: If this plugin already exists in your Network Workbench installation, you will be prompted to overwrite the already-existing file. Just click Yes.)

Image Modified
Figure 21: Exporting the built Network Workbench plugin.

...