API_Instruction 730 B

123456789101112131415
  1. Create a new Java Project and add the jar "CpsAlgorithm" to your Build Path.
  2. Then create a new Package and create a new Class.
  3. That Class has to implement the Interface "cpsAlgorithm".
  4. Your Class then has to implement the method runAlgorithm.
  5. This Method gets a Model and the Controller.
  6. You can access all Data via the Model.
  7. The Controller has several Methods you can use as well.
  8. Your Class should look something like the example in the exampleAlgorithm Package
  9. Then in the program click on the Algorithm Button.
  10. Go to your project and select the folder where your .java files are.
  11. Then you can Select the Algorithm you want to use in the ComboBox, which then will be compiled.
  12. Your algorithm will now be used.