|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| EngineFSM () | |
| void | register_state (const std::string &state_name, std::shared_ptr< EngineState > state) |
| bool | request_transition (const std::string &target_state, SystemParameters ¶ms) |
| void | update (SystemParameters ¶ms) |
| std::string | get_current_state () const |
| std::vector< std::string > | get_available_transitions (const SystemParameters ¶ms) const |
Private Member Functions | |
| void | transition_to_state (const std::string &state_name, SystemParameters ¶ms) |
| bool | can_enter_state (const std::string &state_name, const SystemParameters ¶ms) const |
Private Attributes | |
| std::map< std::string, std::shared_ptr< EngineState > > | states |
| std::string | current_state |
Definition at line 89 of file state_machine.cpp.
| EngineFSM::EngineFSM | ( | ) |
Definition at line 119 of file state_machine.cpp.
References current_state.
|
private |
Definition at line 201 of file state_machine.cpp.
References current_state, and states.
Referenced by get_available_transitions(), request_transition(), and update().
| std::vector< std::string > EngineFSM::get_available_transitions | ( | const SystemParameters & | params | ) | const |
Definition at line 214 of file state_machine.cpp.
References can_enter_state(), current_state, and states.
| std::string EngineFSM::get_current_state | ( | ) | const |
Definition at line 197 of file state_machine.cpp.
References current_state.
| void EngineFSM::register_state | ( | const std::string & | state_name, |
| std::shared_ptr< EngineState > | state ) |
Definition at line 122 of file state_machine.cpp.
References current_state, state, and states.
| bool EngineFSM::request_transition | ( | const std::string & | target_state, |
| SystemParameters & | params ) |
Definition at line 161 of file state_machine.cpp.
References can_enter_state(), states, and transition_to_state().
|
private |
Definition at line 181 of file state_machine.cpp.
References current_state, and states.
Referenced by request_transition(), and update().
| void EngineFSM::update | ( | SystemParameters & | params | ) |
Definition at line 137 of file state_machine.cpp.
References can_enter_state(), current_state, states, and transition_to_state().
Referenced by combined_gui.PressureBarWidget::set_global_line_ys(), combined_gui.PressureBarWidget::set_limits(), and combined_gui.PressureBarWidget::set_value().
|
private |
Definition at line 112 of file state_machine.cpp.
Referenced by combined_gui.TopBarWidget::_apply_abort_state(), combined_gui.TopBarWidget::_on_quick_fire_3s_elapsed(), combined_gui.TopBarWidget::_update_current_state_display(), combined_gui.TopBarWidget::abort(), can_enter_state(), EngineFSM(), get_available_transitions(), get_current_state(), combined_gui.TopBarWidget::on_debug_clicked(), combined_gui.TopBarWidget::on_mode_button_clicked(), register_state(), combined_gui.TopBarWidget::request_state(), transition_to_state(), and update().
|
private |
Definition at line 111 of file state_machine.cpp.
Referenced by can_enter_state(), get_available_transitions(), register_state(), request_transition(), transition_to_state(), and update().