![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Instance of a timer. More...
Inherits org.lflang.generator.TriggerInstance< Timer >.
Public Member Functions | |
| 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. | |
| String | getName () |
| Return the name of this trigger. | |
| TimeValue | getOffset () |
| Get the value of the offset parameter. | |
| TimeValue | getPeriod () |
| Get the value of the offset parameter. | |
| 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". | |
| TimerInstance (Timer definition, ReactorInstance parent) | |
| Create a new timer instance. | |
Static Public Attributes | |
| static final TimeValue | DEFAULT_OFFSET = TimeValue.ZERO |
| The global default for offset. | |
| static final TimeValue | DEFAULT_PERIOD = TimeValue.ZERO |
| The global default for period. | |
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 a timer.
| org.lflang.generator.TimerInstance.TimerInstance | ( | Timer | definition, |
| ReactorInstance | parent ) |
Create a new timer instance.
If the definition is null, then this is a startup timer.
| 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.
|
inherited |
Return the name of this trigger.
| TimeValue org.lflang.generator.TimerInstance.getOffset | ( | ) |
Get the value of the offset parameter.
| TimeValue org.lflang.generator.TimerInstance.getPeriod | ( | ) |
Get the value of the offset parameter.
|
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 global default for offset.
|
static |
The global default for period.
|
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.