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

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_tcurrent_mode
 Pointer to the currently active mode (only locally active).
reactor_mode_tinitial_mode
 Pointer to the initial mode for this state.
lf_mode_change_type_t mode_change
 A mode change type flag.
reactor_mode_tnext_mode
 Pointer to the next mode to activate at the end of this step (if set).
reactor_mode_tparent_mode
 Pointer to the next enclosing mode (if exists).

Detailed Description

A struct to store state of the modes in a reactor instance and/or its relation to enclosing modes.

Field Documentation

◆ current_mode

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.

◆ initial_mode

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.

◆ mode_change

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

◆ next_mode

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.

◆ parent_mode

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.


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