Difference between revisions of "S2A Configuration"

From WeizmannWiki
Jump to: navigation, search
(New page: Basically the examples provided are configured with relative paths and should work well in your environment, but this is a good opportunity to introduce some parts of the configuration you...)
 
(S2A play-out properties)
 
(11 intermediate revisions by one user not shown)
Line 1: Line 1:
Basically the examples provided are configured with relative paths and should work well in your environment, but this is a good opportunity to introduce some parts of the configuration you can control.
+
Basically, the examples provided are configured with relative paths and should work well in your environment. However this is a good opportunity to introduce some parts of the configuration that you can control.
==S2A Properties==
+
==S2A builder properties==
  
Right click the GWTMemoryGame project->Properties->S2A Builder:
+
Right-click the project you work on and choose Properties->PlayGo->S2A Builder:
  
[[Image:Playgo.s2a.properties.jpg]]
+
[[Image:S2a.properties.png]]
  
As shown in the screenshot above, there are 3 tabs in which you can configure properties related to S2A:
+
<br>
 +
As shown in the screenshot above, there are four tabs, in which you can configure properties related to S2A Builder:
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A. S2A Compilation
+
#S2A Compilation
 +
##Source interactions on build path: Add and remove model files that you want to compile with S2A. For the models you add, you may choose which LSCs should be compiled by S2A. In other words, which LSCs will participate in the system execution.
 +
##Target Folder:  Here you specify the directory in which the generated aspects will be located.
 +
##Clear Automatically: If on, cleans the aspects directory before generating new aspects.
 +
##Polymorphism: Enable or disable polymorphism.
  
      i. Here you can add and remove models which you want to compile with S2A.
+
#Imports
 
+
##Add and remove Java packages that will be imported in the generated aspects.
For those models you add, you may choose which LSCs should be compiled by S2A. In other words, for which Interactions S2A will generate aspects.
+
##Specify the output package name: The package of the generated aspects.
 
+
#Tracing
    ii. Target Folder: here you specify the directory in which the generated aspects will be located.
+
##Generate trace: Check if you want to generate a trace/log at runtime.
    iii. Clear Automatically – if on, cleans the aspects directory before generating new aspects.
+
##Append: Check if you want to append the log to the existing log (rather then deleting and adding new content).
    iv. Polymorphism – enable or disable polymorphism.
+
##Output file: The path and name of the generated trace file. By default, the trace file is generated in the root directory of your project.
 
+
##LSCs to trace: Check those LSCs you would like to trace. Check or uncheck the model root to apply your selection on all LSCs.
B. Imports
+
#General: Currently used only for specifying the log4j configuration location.
 
+
      i. Here you may specify packages that will be imported in the generated aspects.
+
    ii. Output package name – the package of the generated aspects.
+
 
+
&nbsp;&nbsp;&nbsp;C. General – currently used only for specifying the log4j configuration location.
+
  
 
<big></big>
 
<big></big>
  
==S2A preferences==
+
==S2A play-out properties==
  
From the Windows menu, select Preferences-&gt;PlayGo-&gt;S2A Builder
+
Right click your project and choose Properties->PlayGo->Play-Out
  
[[Image:Playgo.s2a.properties.advanced.jpg]]
+
[[Image:S2a.playout.properties.jpeg]]
  
<br>Here you can choose the strategy you want to activate. Currently the only strategy implemented is the Naive strategy and this is the one being used.
+
<br>Here you can choose a play-out strategy from a set of [[PlayGo_Feature_List#Na.C3.AFve_play-out | predefined strategies]].

Latest revision as of 12:51, 18 December 2011

Basically, the examples provided are configured with relative paths and should work well in your environment. However this is a good opportunity to introduce some parts of the configuration that you can control.

S2A builder properties

Right-click the project you work on and choose Properties->PlayGo->S2A Builder:

S2a.properties.png


As shown in the screenshot above, there are four tabs, in which you can configure properties related to S2A Builder:

  1. S2A Compilation
    1. Source interactions on build path: Add and remove model files that you want to compile with S2A. For the models you add, you may choose which LSCs should be compiled by S2A. In other words, which LSCs will participate in the system execution.
    2. Target Folder: Here you specify the directory in which the generated aspects will be located.
    3. Clear Automatically: If on, cleans the aspects directory before generating new aspects.
    4. Polymorphism: Enable or disable polymorphism.
  1. Imports
    1. Add and remove Java packages that will be imported in the generated aspects.
    2. Specify the output package name: The package of the generated aspects.
  2. Tracing
    1. Generate trace: Check if you want to generate a trace/log at runtime.
    2. Append: Check if you want to append the log to the existing log (rather then deleting and adding new content).
    3. Output file: The path and name of the generated trace file. By default, the trace file is generated in the root directory of your project.
    4. LSCs to trace: Check those LSCs you would like to trace. Check or uncheck the model root to apply your selection on all LSCs.
  3. General: Currently used only for specifying the log4j configuration location.

S2A play-out properties

Right click your project and choose Properties->PlayGo->Play-Out

S2a.playout.properties.jpeg


Here you can choose a play-out strategy from a set of predefined strategies.