reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
mode_environment_t Struct Reference

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_tstate_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.

Detailed Description

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.

Note
Only used in modal reactor execution.

Field Documentation

◆ modal_reactor_states

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.

◆ modal_reactor_states_size

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.

◆ state_resets

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.

◆ state_resets_size

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.

◆ triggered_reactions_request

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.


The documentation for this struct was generated from the following file:
  • /Users/runner/work/reactor-c/reactor-c/include/core/environment.h