A reactor element for scheduling new events. More...
#include <xronos/sdk/programmable_timer.hh>
Public Member Functions | |
ProgrammableTimer (std::string_view name, ReactorContext context) | |
Construct a new ProgrammableTimer . | |
![]() | |
auto | name () const noexcept -> const std::string & |
The name of the current element. | |
auto | fqn () const noexcept -> const std::string & |
The fully qualified name of the current element. | |
![]() | |
virtual | ~EventSource ()=default |
Correct deletion of an instance of a derived class is permitted. | |
A reactor element for scheduling new events.
Programmable timers may be used by reactions to schedule new events in the future. Events are not scheduled or read directly. Instead, reactions may declare a BaseReaction::ProgrammableTimerEffect
to schedule new events, or a BaseReaction::Trigger
or BaseReaction::Source
to access the value associated with an active event.
T | The type of values carried by the programmable timer. |
xronos::sdk::ProgrammableTimer< T >::ProgrammableTimer | ( | std::string_view | name, |
ReactorContext | context ) |
Construct a new ProgrammableTimer
.
name | The name of the ProgrammableTimer . |
context | The context object obtained from the ProgrammableTimer 's containing reactor. |