Using the Alf Action Language with Cameo Simulation Toolkit - Part 1
Do you use the industry-leading model-execution capabilities provided by Cameo Simulation Toolkit (CST)? Do you love being able to simulate systems using state machines and activities? But, on the other hand, do you dread the complexity of using activity diagrams to code really detailed behavior? Or do you get annoyed by having limited access your model state if you use a scripting language instead? Now there is a solution! The OMG-standard Alf action language is available in CST v18.5 and v19.0 to write expressions and behaviors in executable UML. Alf is a textual language with a familiar Java-like syntax, but it is designed specifically to be used in the context of graphical, executable UML and SysML models. Indeed, behind the scenes, Alf is actually compiled into UML activity models, which are then automatically integrated into your overall model, so they can be seamlessly executed using CST. This session will give you an introduction to the Alf language, a tutorial on how to use it in CST and a chance to try it out hands-on. You will be amazed at how much quicker and easier it is to write three lines of Alf code, rather than create by hand an equivalent activity model of 20 or more elements!