![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
Environment for modal reactors. More...
#include <environment.h>
Data Fields | |
| reactor_mode_state_t ** | modal_reactor_states |
| Array of modal reactor states. | |
| int | modal_reactor_states_size |
| Number of modal reactor states allocated. | |
| mode_state_variable_reset_data_t * | state_resets |
| Array of state variable reset data. | |
| int | state_resets_size |
| Number of state reset entries allocated. | |
| uint8_t | triggered_reactions_request |
| Bitmap indicating which reactions have been requested to trigger. | |
Environment for modal reactors.
Contains state and configuration for modal reactors in this environment. This struct manages the state transitions and reaction triggering in modal reactors.
| reactor_mode_state_t** mode_environment_t::modal_reactor_states |
Array of modal reactor states.
Stores the current state of each modal reactor in the environment. The size of this array is stored in modal_reactor_states_size. Each entry contains the current mode and transition information for a specific modal reactor.
| int mode_environment_t::modal_reactor_states_size |
Number of modal reactor states allocated.
Indicates the size of the modal_reactor_states array. This should match the number of modal reactors in the environment.
| mode_state_variable_reset_data_t* mode_environment_t::state_resets |
Array of state variable reset data.
Contains information about how state variables should be reset during mode transitions. Each entry specifies the reset behavior for a particular state variable.
| int mode_environment_t::state_resets_size |
Number of state reset entries allocated.
Indicates the size of the state_resets array. This should match the number of state variables that need reset behavior defined.
| uint8_t mode_environment_t::triggered_reactions_request |
Bitmap indicating which reactions have been requested to trigger.
Each bit in this 8-bit value represents a different reaction that has been requested to execute. Used to coordinate the execution of reactions during mode transitions.