![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Instance of an action. More...
Inherits org.lflang.generator.TriggerInstance< Action >.
Public Member Functions | |
| ActionInstance (Action definition, ReactorInstance parent) | |
| Create a new action instance. | |
| Set< ReactionInstance > | getDependentReactions () |
| Return the reaction instances that are triggered or read by this trigger. | |
| Set< ReactionInstance > | getDependsOnReactions () |
| Return the reaction instances that may send data via this port or action. | |
| TimeValue | getMinDelay () |
| Return the minimum delay for this action. | |
| TimeValue | getMinSpacing () |
| Return the minimum spacing between action events. | |
| String | getName () |
| Return the name of this trigger. | |
| String | getPolicy () |
| Return the replacement policy for when minimum spacing is violated. | |
| boolean | isPhysical () |
| Return the indicator of whether the action is physical. | |
| boolean | isReset () |
| Return true if this trigger is "startup". | |
| boolean | isShutdown () |
| Return true if this trigger is "shutdown". | |
| boolean | isStartup () |
| Return true if this trigger is "startup". | |
Static Public Attributes | |
| static final TimeValue | DEFAULT_MIN_DELAY = TimeValue.ZERO |
| The constant default for a minimum delay. | |
Static Package Functions | |
| static TriggerInstance< BuiltinTriggerVariable > | builtinTrigger (BuiltinTriggerRef trigger, ReactorInstance parent) |
| Construct a new instance for a special builtin trigger. | |
Package Attributes | |
| Set< ReactionInstance > | dependentReactions |
| Reaction instances that are triggered or read by this trigger. | |
| Set< ReactionInstance > | dependsOnReactions |
| Reaction instances that may send data via this port or action. | |
Instance of an action.
| org.lflang.generator.ActionInstance.ActionInstance | ( | Action | definition, |
| ReactorInstance | parent ) |
Create a new action instance.
If the definition is null, then this is a shutdown action.
| definition | The AST definition, or null for startup. |
| parent | The parent reactor. |
|
staticpackageinherited |
Construct a new instance for a special builtin trigger.
| trigger | The actual trigger definition. |
| parent | The reactor instance that creates this instance. |
|
inherited |
Return the reaction instances that are triggered or read by this trigger.
If this port is an output, then the reaction instances belong to the parent of the port's parent. If the port is an input, then the reaction instances belong to the port's parent.
|
inherited |
Return the reaction instances that may send data via this port or action.
If this is an input port, then the reaction instance belongs to parent of the port's parent. If it is an output port, the reaction instance belongs to the port's parent. If it is an action, then the reaction belongs to the same parent as that of this action.
| TimeValue org.lflang.generator.ActionInstance.getMinDelay | ( | ) |
Return the minimum delay for this action.
| TimeValue org.lflang.generator.ActionInstance.getMinSpacing | ( | ) |
Return the minimum spacing between action events.
|
inherited |
Return the name of this trigger.
| String org.lflang.generator.ActionInstance.getPolicy | ( | ) |
Return the replacement policy for when minimum spacing is violated.
| boolean org.lflang.generator.ActionInstance.isPhysical | ( | ) |
Return the indicator of whether the action is physical.
|
inherited |
Return true if this trigger is "startup".
/
|
inherited |
Return true if this trigger is "shutdown".
|
inherited |
Return true if this trigger is "startup".
/
|
static |
The constant default for a minimum delay.
|
packageinherited |
Reaction instances that are triggered or read by this trigger.
If this port is an output, then the reaction instances belong to the parent of the port's parent. If the port is an input, then the reaction instances belong to the port's parent.
|
packageinherited |
Reaction instances that may send data via this port or action.
If this is an input port, then the reaction instance belongs to parent of the port's parent. If it is an output port, the reaction instance belongs to the port's parent. If it is an action, then the reaction belongs belongs to the same parent as this action.