The GeneralSystemState class. It includes a summary of the current system state, the state of the safe and the non-safe cut-off path and bits indicating if a restart interlock is ready to be reset. More...
#include <GeneralSystemState.h>
Public Member Functions | |
GeneralSystemState () | |
Constructor of GeneralSystemState, creates empty instance. | |
bool | getApplicationError () const |
Return if an application error exists. | |
bool | getContaminationError () const |
Returns if a contamination error exists. | |
bool | getContaminationWarning () const |
Returns if a contamination warning is exists. | |
uint8_t | getCurrentMonitoringCaseNoTable_1 () const |
Returns the current monitor case table 1. | |
uint8_t | getCurrentMonitoringCaseNoTable_2 () const |
Returns the current monitor case table 2. | |
uint8_t | getCurrentMonitoringCaseNoTable_3 () const |
Returns the current monitor case table 3. | |
uint8_t | getCurrentMonitoringCaseNoTable_4 () const |
Returns the current monitor case table 4. | |
bool | getDeviceError () const |
Return if a device error exists. | |
bool | getManipulationStatus () const |
Returns if the manipulation status is set to true. | |
std::vector< bool > | getNonSafeCutOffPathVector () const |
Returns the state of all non-safe cut-off paths. | |
bool | getReferenceContourStatus () const |
Returns if the reference contour status is true. | |
std::vector< bool > | getResetRequiredCutOffPathVector () const |
Returns if a cut-off path has to be reset. | |
bool | getRunModeActive () const |
Returns if run mode is active. | |
std::vector< bool > | getSafeCutOffPathVector () const |
Returns the state for all safe cut off paths. | |
bool | getStandbyModeActive () const |
Returns if the standby mode is active. | |
bool | isEmpty () const |
Return if general system state has been enabled. | |
void | setApplicationError (bool application_error) |
Set if an application error exists. | |
void | setContaminationError (bool contamination_error) |
Set if a contamination error exists. | |
void | setContaminationWarning (bool contamination_warning) |
Set if a contamination warning exists. | |
void | setCurrentMonitoringCaseNoTable_1 (const uint8_t ¤t_monitoring_case_no_table_1) |
Sets the current monitoring case table 1. | |
void | setCurrentMonitoringCaseNoTable_2 (const uint8_t ¤t_monitoring_case_no_table_2) |
Sets the current monitoring case table 2. | |
void | setCurrentMonitoringCaseNoTable_3 (const uint8_t ¤t_monitoring_case_no_table_3) |
Sets the current monitoring case table 3. | |
void | setCurrentMonitoringCaseNoTable_4 (const uint8_t ¤t_monitoring_case_no_table_4) |
Sets the current monitoring case table 4. | |
void | setDeviceError (bool device_error) |
Set if a device error exists. | |
void | setIsEmpty (bool is_empty) |
Set if general system state has been enabled. | |
void | setManipulationStatus (bool manipulation_status) |
Set the manipulation status. | |
void | setNonSafeCutOffPathVector (const std::vector< bool > &non_safe_cut_off_path_vector) |
Sets the state of all non-safe cut-off paths. | |
void | setReferenceContourStatus (bool reference_contour_status) |
Set the reference contour status. | |
void | setResetRequiredCutOffPathVector (const std::vector< bool > &reset_required_cut_off_path_vector) |
Sets the reset state for all cut-off paths. | |
void | setRunModeActive (bool run_mode_active) |
Setter for run mode. | |
void | setSafeCutOffPathvector (const std::vector< bool > &safe_cut_off_path_vector) |
Sets the state of all safe cut-off paths. | |
void | setStandbyModeActive (bool standby_mode_active) |
Setter for standby mode. | |
Private Attributes | |
bool | m_application_error |
bool | m_contamination_error |
bool | m_contamination_warning |
uint8_t | m_current_monitoring_case_no_table_1 |
uint8_t | m_current_monitoring_case_no_table_2 |
uint8_t | m_current_monitoring_case_no_table_3 |
uint8_t | m_current_monitoring_case_no_table_4 |
bool | m_device_error |
bool | m_is_empty |
bool | m_manipulation_status |
std::vector< bool > | m_non_safe_cut_off_path_vector |
bool | m_reference_contour_status |
std::vector< bool > | m_reset_required_cut_off_path_vector |
bool | m_run_mode_active |
std::vector< bool > | m_safe_cut_off_path_vector |
bool | m_standby_mode_active |
The GeneralSystemState class. It includes a summary of the current system state, the state of the safe and the non-safe cut-off path and bits indicating if a restart interlock is ready to be reset.
Definition at line 49 of file GeneralSystemState.h.
Constructor of GeneralSystemState, creates empty instance.
Definition at line 40 of file GeneralSystemState.cpp.
bool sick::datastructure::GeneralSystemState::getApplicationError | ( | ) | const |
Return if an application error exists.
Definition at line 181 of file GeneralSystemState.cpp.
Returns if a contamination error exists.
Definition at line 75 of file GeneralSystemState.cpp.
Returns if a contamination warning is exists.
Definition at line 65 of file GeneralSystemState.cpp.
Returns the current monitor case table 1.
Definition at line 137 of file GeneralSystemState.cpp.
Returns the current monitor case table 2.
Definition at line 148 of file GeneralSystemState.cpp.
Returns the current monitor case table 3.
Definition at line 159 of file GeneralSystemState.cpp.
Returns the current monitor case table 4.
Definition at line 170 of file GeneralSystemState.cpp.
bool sick::datastructure::GeneralSystemState::getDeviceError | ( | ) | const |
Return if a device error exists.
Definition at line 191 of file GeneralSystemState.cpp.
Returns if the manipulation status is set to true.
Definition at line 95 of file GeneralSystemState.cpp.
std::vector< bool > sick::datastructure::GeneralSystemState::getNonSafeCutOffPathVector | ( | ) | const |
Returns the state of all non-safe cut-off paths.
Definition at line 115 of file GeneralSystemState.cpp.
Returns if the reference contour status is true.
Definition at line 85 of file GeneralSystemState.cpp.
std::vector< bool > sick::datastructure::GeneralSystemState::getResetRequiredCutOffPathVector | ( | ) | const |
Returns if a cut-off path has to be reset.
Definition at line 126 of file GeneralSystemState.cpp.
bool sick::datastructure::GeneralSystemState::getRunModeActive | ( | ) | const |
Returns if run mode is active.
Definition at line 45 of file GeneralSystemState.cpp.
std::vector< bool > sick::datastructure::GeneralSystemState::getSafeCutOffPathVector | ( | ) | const |
Returns the state for all safe cut off paths.
Definition at line 105 of file GeneralSystemState.cpp.
Returns if the standby mode is active.
Definition at line 55 of file GeneralSystemState.cpp.
bool sick::datastructure::GeneralSystemState::isEmpty | ( | ) | const |
Return if general system state has been enabled.
Definition at line 201 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setApplicationError | ( | bool | application_error | ) |
Set if an application error exists.
application_error | If an application error exists. |
Definition at line 186 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setContaminationError | ( | bool | contamination_error | ) |
Set if a contamination error exists.
contamination_error | If a contamination error exists. |
Definition at line 80 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setContaminationWarning | ( | bool | contamination_warning | ) |
Set if a contamination warning exists.
contamination_warning | If a contamination warning exists. |
Definition at line 70 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable_1 | ( | const uint8_t & | current_monitoring_case_no_table_1 | ) |
Sets the current monitoring case table 1.
current_monitoring_case_no_table_1 | The current monitoring case table 1. |
Definition at line 142 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable_2 | ( | const uint8_t & | current_monitoring_case_no_table_2 | ) |
Sets the current monitoring case table 2.
current_monitoring_case_no_table_2 | The current monitoring case table 2. |
Definition at line 153 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable_3 | ( | const uint8_t & | current_monitoring_case_no_table_3 | ) |
Sets the current monitoring case table 3.
current_monitoring_case_no_table_3 | The current monitoring case table 3. |
Definition at line 164 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable_4 | ( | const uint8_t & | current_monitoring_case_no_table_4 | ) |
Sets the current monitoring case table 4.
current_monitoring_case_no_table_4 | The current monitoring case table 4 . |
Definition at line 175 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setDeviceError | ( | bool | device_error | ) |
Set if a device error exists.
device_error | If a device error exists |
Definition at line 196 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setIsEmpty | ( | bool | is_empty | ) |
Set if general system state has been enabled.
is_empty | If general system state has been enabled. |
Definition at line 206 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setManipulationStatus | ( | bool | manipulation_status | ) |
Set the manipulation status.
manipulation_status | The new manipulation status. |
Definition at line 100 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setNonSafeCutOffPathVector | ( | const std::vector< bool > & | non_safe_cut_off_path_vector | ) |
Sets the state of all non-safe cut-off paths.
non_safe_cut_off_path_vector | Vector for the state of all non-safe cut-off paths |
Definition at line 120 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setReferenceContourStatus | ( | bool | reference_contour_status | ) |
Set the reference contour status.
reference_contour_status | The new reference contour status. |
Definition at line 90 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setResetRequiredCutOffPathVector | ( | const std::vector< bool > & | reset_required_cut_off_path_vector | ) |
Sets the reset state for all cut-off paths.
reset_required_cut_off_path_vector | Vector for the reset state of all cut-off paths |
Definition at line 131 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setRunModeActive | ( | bool | run_mode_active | ) |
Setter for run mode.
run_mode_active | If run mode is active or inactive. |
Definition at line 50 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setSafeCutOffPathvector | ( | const std::vector< bool > & | safe_cut_off_path_vector | ) |
Sets the state of all safe cut-off paths.
safe_cut_off_path_vector | Vector for the state of all safe cut-off paths. |
Definition at line 110 of file GeneralSystemState.cpp.
void sick::datastructure::GeneralSystemState::setStandbyModeActive | ( | bool | standby_mode_active | ) |
Setter for standby mode.
standby_mode_active | If standby mode is active or inactive. |
Definition at line 60 of file GeneralSystemState.cpp.
bool sick::datastructure::GeneralSystemState::m_application_error [private] |
Definition at line 268 of file GeneralSystemState.h.
Definition at line 255 of file GeneralSystemState.h.
Definition at line 254 of file GeneralSystemState.h.
Definition at line 263 of file GeneralSystemState.h.
Definition at line 264 of file GeneralSystemState.h.
Definition at line 265 of file GeneralSystemState.h.
Definition at line 266 of file GeneralSystemState.h.
bool sick::datastructure::GeneralSystemState::m_device_error [private] |
Definition at line 269 of file GeneralSystemState.h.
bool sick::datastructure::GeneralSystemState::m_is_empty [private] |
Definition at line 251 of file GeneralSystemState.h.
Definition at line 257 of file GeneralSystemState.h.
std::vector<bool> sick::datastructure::GeneralSystemState::m_non_safe_cut_off_path_vector [private] |
Definition at line 260 of file GeneralSystemState.h.
Definition at line 256 of file GeneralSystemState.h.
std::vector<bool> sick::datastructure::GeneralSystemState::m_reset_required_cut_off_path_vector [private] |
Definition at line 261 of file GeneralSystemState.h.
bool sick::datastructure::GeneralSystemState::m_run_mode_active [private] |
Definition at line 252 of file GeneralSystemState.h.
std::vector<bool> sick::datastructure::GeneralSystemState::m_safe_cut_off_path_vector [private] |
Definition at line 259 of file GeneralSystemState.h.
Definition at line 253 of file GeneralSystemState.h.