Child pages
  • Practical Java Algorithm Development

Versions Compared

Key

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

...

It is recommended that you read CIShell Basicshttp://cishell.org/?n=DevGuide.CIShellBasics and run through Tutorial 1: Creating a Hello World Java Algorithm if you are not already familiar with basic CIShell development. You will need to have installed Eclipse and the CIShell Java Algorithm Wizard, as described in Tutorial 0: Setting Up the Development Environment. The algorithm produced in this tutorial requires the Network Workbench tool environment to run, so you will need to have downloaded the Network Workbench tool installed to complete this tutorial.

...

Wiki Markup
There are a few noteworthy things going on here. You will notice that the AttackToleranceAlgorithm class has a constructor, which accepts all the objects it needs to  perform its task. The Data\[\] object contains an array of input data from  the CIShell Data Manager, which the user  has chosen to perform this algorithm on. In the case of our algorithm,  the data array will contain zero element: a Jung Graph, because this is  what we specified in our in_data property. The parameters Dictionary  contains input values from the user-input parameters GUI, which is  always shown to users before an algorithm is run. The CIShellContext allows the algorithm to access various services from the CIShell environment. See the [CIShell Specification|http://cishell.org/dev/docs/spec/cishell-spec-1.0.pdf] xxxxx for information on the various services that are accessible through the CIShellContext.

...