Wall Painting Example
From WeizmannWiki
This example demonstrates the integration of BPJ scenarios with LSCs. An explanation of the original example and the behavioral threads can be found here. To this example we have added a set of LSCs to control the color supply. The auto generated system model GUI is used to simulate a color that ran out and was manually refilled. For each color used for the wall painting (black, red, blue, green) we have added two LSCs.
- One LSC monitors the use of a color, and after being used twice (simulating that each color can is sufficient for painting two segments), it announces that the color has run out:
- Another LSC blocks the use of the color after it runs out. Note that the instruction to block the color applies to all participating LSCs, but also to all participating b-threads. The prohibition to use the color is dismissed as soon as the refill event occurs.
Download the Wall Painting Example
Installation Instructions
- Download PlayGo.
- Extract the downloaded zip. The zip contains 2 projects; one is the LSC projet and the other is a simulator project.
- Import the downloaded projects to your workspace:
- From the File menu choose Import-->General-->Existing Projects into Workspace.
- Click the 'Next' button.
- When prompted, select the directory to which you extracted the two projects from the downloaded zip file.
- Click finish.
- The wall painting example is now part of your workspace. To run it:
- Run MainPanel from the HeliSim project, under the ServerSide package.
- Add the following VM argument to the 'PlayApp' run configuration: -Drunmode=netWorkingMode.
- Select the BDrone project and play it out.
For details on play-out refer to how to play out.
For details about S2A-BPJ integration refer to How to create S2A-BPJ integrated solution
A demo of the example: