Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Contents |
Prev | Next |
EASL Code Generation Macros
Enterprise Architect provides a number of Enterprise Architect Simulation Library (EASL) code generation macros to generate code from behavioral models. These are:
- EASL_INIT
- EASL_GET
- EASLList and
- EASL_END
EASL_INIT
The EASL_INIT macro is used to initialize an EASL behavior model. The behavior model code generation is dependent on this model.
Aspect |
Description |
---|---|
Syntax |
%EASL_INIT(<<GUID>>)% where:
|
EASL_GET
The EASL_GET macro is used to retrieve a property or a collection of an EASL object. The EASL objects and the properties and collections for each object are identified in the EASL Collections and EASL Properties topics.
Aspect |
Description |
---|---|
Syntax |
$result = %EASL_GET(<<Property>>, <<Owner ID>>, <<Name>>)% where:
If <<Property>> is:
|
Example |
$sPropName = %EASL_GET("Property", $context, "Name")% |
EASLList
The EASLList macro is used to render each object in an EASL collection using the appropriate template.
Aspect |
Description |
---|---|
Syntax |
$result = %EASLList=<<TemplateName>> @separator=<<Separator>> @indent=<<indent>> @owner=<<OwnedID>> @collection=<<CollectionName>> @option1=<<OPTION1>> @option2=<<OPTION2>>......... @optionN=<<OPTIONN>>% where:
|
Example |
$sStates = %EASLList="State" @separator="\n" @indent="\t" @owner=$StateMachineGUID @collection="States" @option=$sOption% |
EASL_END
The EASL_END macro is used to release the EASL behavior model.
Aspect |
Description |
---|---|
Syntax |
%EASL_END% |
Behavioral Model Templates
Learn more