What I do and when to use me
Create simple models with a single, main behavior and minimal interactions
When
Function,ActionorComponentclasses are to be used.
Instructions
Unless contained in a larger
ActionArchitectureorComponentArchitecture, the default block isFunctionSee the relevant code template in Function Code Template
See the relevant examples in
/examplesfor usage within a larger architecture. Importantly, when featured in a larger architecture, functions need to be connected via flows to enable behaviors to propagate between them. See the Flow Code TemplateAlways define containers externally, rather than defining them as inner classes of their containing flows or blocks. Then attach to Block classes using the
container_x = ClassNamesyntax, wherexis a defined letter for the given container type (s for State, m for Mode, t for Time, p for Parameter, etc.)Use the relevant
Containerclasses to hold local properties of the block per the relevant code templates in Container Code Template