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...)
 
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
The process for creating the model is as follows:
 
The process for creating the model is as follows:
  
1. Write the code for creating your model. Refer to CreateMemoryGameModel as a reference.
+
1. Write the code for creating your model. See example [[PlayGo_Feature_List#Java_API_for_LSC_Creation | here]].
  
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.
+
2. Run your newly created code. As a result a new .lsc 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.
+
3. If you wish to view the LSC diagram, double-click the .lsc file. As a result the LSC diagram will open in the LSC Editor.
  
 
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]]
 

Latest revision as of 08:06, 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. See example here.

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

3. If you wish to view the LSC diagram, double-click the .lsc file. As a result the LSC diagram will open in the LSC Editor.

You can now compile the project using S2A.