Difference between revisions of "How to create an LSC specification using the Java API"

From WeizmannWiki
Jump to: navigation, search
(New page: You can create new LSCs by coding them in Java. The il.ac.wis.cs.common project, provided with the PlayGo download, contains an example for creating LSCs by coding them in Java. You can us...)
 
Line 10: Line 10:
 
You can now compile the project using S2A.
 
You can now compile the project using S2A.
  
[[PlayGo_Features_List#Java_API_for_LSC_Creation | More about Java API for LSC]]
+
[[PlayGo_Feature_List#Java_API_for_LSC_Creation | More about Java API for LSC]]

Revision as of 07:07, 1 May 2014

You can create new LSCs by coding them in Java. The il.ac.wis.cs.common project, provided with the PlayGo download, contains an example for creating LSCs by coding them in Java. You can use this example as a reference for creating your own new models. The process for creating the model is as follows:

1. Write the code for creating your model. Refer to CreateMemoryGameModel as a reference.

2. Run your newly created code. As a result a new .uml file will be created in your <PlayGo>/workspace/il.ac.wis.cs.common/model/ directory.

3. If you wish to view the LSC diagram, right-click the .uml file and choose 'Initialize LSC Diagram'. As a result a new .umlseq file will be generated and the LSC diagram will open in the LSC Editor.

You can now compile the project using S2A.

More about Java API for LSC