240 likes | 399 Views
The Play-Engine. Executable Visual Languages for System Development, Fall 2010. This lecture. The Play-Engine Play-In Installing Getting Started Tips & references Play-out Samples. The Play-Engine. The Play Engine tool developed in Wis by R. Marrely.
E N D
The Play-Engine Executable Visual Languages for System Development, Fall 2010
This lecture • The Play-Engine • Play-In • Installing • Getting Started • Tips & references • Play-out • Samples Executable Visual Languages for System Development
The Play-Engine • The Play Engine tool developed in Wis by R. Marrely. • Currently maintained by Smadar & Yaarit. Executable Visual Languages for System Development
Play-In • Open sample project from <PlayEngineInstallDir>/Samples • Load a GUI – in the project use ‘Generic’ GUI • Or • Start by opening the Generic workspace • Projects shall be created using the Generic GUI. Executable Visual Languages for System Development
Play-Engine General • Project Explorer • Toolbar • User hints • Play-In Panel • GUI (can be undocked) • Gui / Internal objects, properties & methods Executable Visual Languages for System Development
Simple Play-In Play-In mode • Change to Play-In mode • Add a Use Case, and a LSC • Do action • Move to mainchart • Do action • Test using play-out Executable Visual Languages for System Development
Initializing • Add a jump start • Get application state to start from current state • Or • Make changes in GUI or internal objects, you want the initialization to include Executable Visual Languages for System Development
Play-In Messages • Method calls • Property changes Executable Visual Languages for System Development
Symbolic Instances • Binding: by message • Instance changes to dashed line Executable Visual Languages for System Development
If-Then-Else • Add If-Then-Else • Play-in condition (color=green) • Click finish to close the construct • Add else, add End • Note: better to finish operations before starting new ones Executable Visual Languages for System Development
If-Then-Else • Move cut and add If and Else parts. Executable Visual Languages for System Development
Symbolic Instances • Binding: by binding condition • Change lblText to symbolic (right click menu) • Select binding condition (by ID of btn) Executable Visual Languages for System Development
Symbolic Instances • Binding by Property • Binding condition appears in round note Executable Visual Languages for System Development
Variables & Internal objects • Green can be changed to a variable (use internal object with property ‘color’) • Can be done in a different LSC • Can use random selection Executable Visual Languages for System Development
Random Select • Use random selection • Set the Variables Color property Executable Visual Languages for System Development
Function Libraries • String and Math function libraries are useful • Add variable construct • Use concat from String library Executable Visual Languages for System Development
Symbolic Variables • Variables can be changed to symbolic / exact • Default is according to symbolic button • Now can change n previous chart the reference to ‘Green’ to be a variable Executable Visual Languages for System Development
Time constructs • Store the time, add a time constraint, add as forbidden to previous chart • See also using assertion as sync for creating order between messages Executable Visual Languages for System Development
Play-In Forbidden Elements Executable Visual Languages for System Development
Play-out • Play-out options: step, super step, pause at chart completion, random seed. • Select charts for execution • See some examples Executable Visual Languages for System Development
Resources • Play-Engine User Guide (with installation) • Book: Come, Let’s Play • LSC reference • Demo movies in book website • Questions and Answers in course website Executable Visual Languages for System Development
Technical • Installation: In course website • Support • Technical: Yaarit / Smadar • Theoretical: Assaf / Michal Executable Visual Languages for System Development
Tips • Use LSCs as interleaved scenarios. • Avoid using LSCs as scenario triggering scenario, the procedural way… • Right click menus on texts may require double click to see Play-In menu. • No type checking • See more pointers in website Executable Visual Languages for System Development
Projects • The second project can be part of the system created for the first project that can be connected to the first project. • The second project can be an inter-object implementation of the first project. • It is more important to use the cababilities of the LSC language than to create a perfectly working system. Executable Visual Languages for System Development