Page History
...
Cameo Simulation Toolkit supports the following scripting languages
- ECMLScript/Javascript JavaScript Nashorn (defaultdeprecated)
- Beanshell
- Groovy
- Python
- Ruby
...
Predefined variables in an Action script represent a set of variables defined by the script engine before a script evaluation is executed. You can refer to these predefined variables from any action script API.
Variable | Description |
---|---|
A context or runtime object of a current script evaluation. | |
An owner element of the script. | |
The last signal Instance in an Event pool of a specified object. | |
An active State of a context or a runtime object of a current script evaluation. | |
A token value of an active model element. | |
$session$ or _session_ | To get a running session from the script. |
self | Equivalent to $context$ or _context_. |
The specified property value of the last signal |
This section explains the existing predefined variables of Action Scripts and demonstrates the use of ALH scripting with the following APIs
- Getting a Structural Feature Value
- Specifying a Structural Feature Value
- Calling a Specific Behavior
- Calling a Specific Operation
- Creating a Run-time Object
- Creating a Signal Instance
- Sending a Signal Instance to a Specific Target Object
- Getting a Token Value
- Getting the Current State of a Run-time Object
- Getting the Last Signal Instance from a Run-time Object
- Evaluating an Expression
- Creating an ArrayList in Java
- Checking the State of an Object
- Adding a Value to an Object
- Removing a Value of an Object
- Getting a Context
- Accessing Current Simulation Time
- Accessing the Simulation Time Unit
- Adding a Value to a Global Variable
- Getting a Value from a Global Variable
- Removing a Defined Global Variable
- Checking an Existing Global Variable
...
. |