![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
A struct to store state of the modes in a reactor instance and/or its relation to enclosing modes. More...
#include <modes.h>
Data Fields | |
| reactor_mode_t * | current_mode |
| Pointer to the currently active mode (only locally active). | |
| reactor_mode_t * | initial_mode |
| Pointer to the initial mode for this state. | |
| lf_mode_change_type_t | mode_change |
| A mode change type flag. | |
| reactor_mode_t * | next_mode |
| Pointer to the next mode to activate at the end of this step (if set). | |
| reactor_mode_t * | parent_mode |
| Pointer to the next enclosing mode (if exists). | |
A struct to store state of the modes in a reactor instance and/or its relation to enclosing modes.
| reactor_mode_t* reactor_mode_state_t::current_mode |
Pointer to the currently active mode (only locally active).
Tracks which mode is currently active in this state.
| reactor_mode_t* reactor_mode_state_t::initial_mode |
Pointer to the initial mode for this state.
Indicates which mode is considered the initial mode.
| lf_mode_change_type_t reactor_mode_state_t::mode_change |
A mode change type flag.
Indicates the type of mode change (none, reset, or history).
| reactor_mode_t* reactor_mode_state_t::next_mode |
Pointer to the next mode to activate at the end of this step (if set).
Used to schedule a mode transition.
| reactor_mode_t* reactor_mode_state_t::parent_mode |
Pointer to the next enclosing mode (if exists).
Used to represent the parent mode in a hierarchy of modes.