Instance of a timer.
More...
Inherits org.lflang.generator.TriggerInstance< Timer >.
Instance of a timer.
- Author
- Marten Lohstroh
-
Edward A. Lee
◆ TimerInstance()
| 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.
- Parameters
-
| definition | The AST definition, or null for startup. |
| parent | The parent reactor. |
◆ builtinTrigger()
Construct a new instance for a special builtin trigger.
- Parameters
-
| trigger | The actual trigger definition. |
| parent | The reactor instance that creates this instance. |
◆ getDependentReactions()
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.
◆ getDependsOnReactions()
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.
◆ getName()
Return the name of this trigger.
- Returns
- The name of this trigger.
◆ getOffset()
| TimeValue org.lflang.generator.TimerInstance.getOffset |
( |
| ) |
|
Get the value of the offset parameter.
◆ getPeriod()
| TimeValue org.lflang.generator.TimerInstance.getPeriod |
( |
| ) |
|
Get the value of the offset parameter.
◆ isReset()
Return true if this trigger is "startup".
/
◆ isShutdown()
Return true if this trigger is "shutdown".
◆ isStartup()
Return true if this trigger is "startup".
/
◆ DEFAULT_OFFSET
The global default for offset.
◆ DEFAULT_PERIOD
The global default for period.
◆ dependentReactions
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.
◆ dependsOnReactions
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.
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/TimerInstance.java