GeneralSystemState.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
36 
37 namespace sick {
38 namespace datastructure {
39 
41  : m_is_empty(false)
42 {
43 }
44 
46 {
47  return m_run_mode_active;
48 }
49 
50 void GeneralSystemState::setRunModeActive(bool run_mode_active)
51 {
52  m_run_mode_active = run_mode_active;
53 }
54 
56 {
57  return m_standby_mode_active;
58 }
59 
60 void GeneralSystemState::setStandbyModeActive(bool standby_mode_active)
61 {
62  m_standby_mode_active = standby_mode_active;
63 }
64 
66 {
68 }
69 
70 void GeneralSystemState::setContaminationWarning(bool contamination_warning)
71 {
72  m_contamination_warning = contamination_warning;
73 }
74 
76 {
77  return m_contamination_error;
78 }
79 
80 void GeneralSystemState::setContaminationError(bool contamination_error)
81 {
82  m_contamination_error = contamination_error;
83 }
84 
86 {
88 }
89 
90 void GeneralSystemState::setReferenceContourStatus(bool reference_contour_status)
91 {
92  m_reference_contour_status = reference_contour_status;
93 }
94 
96 {
97  return m_manipulation_status;
98 }
99 
100 void GeneralSystemState::setManipulationStatus(bool manipulation_status)
101 {
102  m_manipulation_status = manipulation_status;
103 }
104 
106 {
108 }
109 
110 void GeneralSystemState::setSafeCutOffPathvector(const std::vector<bool>& safe_cut_off_path_vector)
111 {
112  m_safe_cut_off_path_vector = safe_cut_off_path_vector;
113 }
114 
116 {
118 }
119 
121  const std::vector<bool>& non_safe_cut_off_path_vector)
122 {
123  m_non_safe_cut_off_path_vector = non_safe_cut_off_path_vector;
124 }
125 
127 {
129 }
130 
132  const std::vector<bool>& reset_required_cut_off_path_vector)
133 {
134  m_reset_required_cut_off_path_vector = reset_required_cut_off_path_vector;
135 }
136 
138 {
140 }
141 
143  const uint8_t& current_monitoring_case_no_table_1)
144 {
145  m_current_monitoring_case_no_table_1 = current_monitoring_case_no_table_1;
146 }
147 
149 {
151 }
152 
154  const uint8_t& current_monitoring_case_no_table_2)
155 {
156  m_current_monitoring_case_no_table_2 = current_monitoring_case_no_table_2;
157 }
158 
160 {
162 }
163 
165  const uint8_t& current_monitoring_case_no_table_3)
166 {
167  m_current_monitoring_case_no_table_3 = current_monitoring_case_no_table_3;
168 }
169 
171 {
173 }
174 
176  const uint8_t& current_monitoring_case_no_table_4)
177 {
178  m_current_monitoring_case_no_table_4 = current_monitoring_case_no_table_4;
179 }
180 
182 {
183  return m_application_error;
184 }
185 
186 void GeneralSystemState::setApplicationError(bool application_error)
187 {
188  m_application_error = application_error;
189 }
190 
192 {
193  return m_device_error;
194 }
195 
196 void GeneralSystemState::setDeviceError(bool device_error)
197 {
198  m_device_error = device_error;
199 }
200 
202 {
203  return m_is_empty;
204 }
205 
207 {
208  m_is_empty = is_empty;
209 }
210 
211 
212 } // namespace datastructure
213 } // namespace sick
void setIsEmpty(bool is_empty)
Set if general system state has been enabled.
bool getReferenceContourStatus() const
Returns if the reference contour status is true.
void setContaminationError(bool contamination_error)
Set if a contamination error exists.
uint8_t getCurrentMonitoringCaseNoTable2() const
Returns the current monitor case table 2.
std::vector< bool > getResetRequiredCutOffPathVector() const
Returns if a cut-off path has to be reset.
std::vector< bool > m_reset_required_cut_off_path_vector
GeneralSystemState()
Constructor of GeneralSystemState, creates empty instance.
void setCurrentMonitoringCaseNoTable4(const uint8_t &current_monitoring_case_no_table_4)
Sets the current monitoring case table 4.
uint8_t getCurrentMonitoringCaseNoTable4() const
Returns the current monitor case table 4.
void setRunModeActive(bool run_mode_active)
Setter for run mode.
void setResetRequiredCutOffPathVector(const std::vector< bool > &reset_required_cut_off_path_vector)
Sets the reset state for all cut-off paths.
void setNonSafeCutOffPathVector(const std::vector< bool > &non_safe_cut_off_path_vector)
Sets the state of all non-safe cut-off paths.
uint8_t getCurrentMonitoringCaseNoTable1() const
Returns the current monitor case table 1.
void setDeviceError(bool device_error)
Set if a device error exists.
void setReferenceContourStatus(bool reference_contour_status)
Set the reference contour status.
void setApplicationError(bool application_error)
Set if an application error exists.
bool getDeviceError() const
Return if a device error exists.
void setManipulationStatus(bool manipulation_status)
Set the manipulation status.
bool getRunModeActive() const
Returns if run mode is active.
void setStandbyModeActive(bool standby_mode_active)
Setter for standby mode.
bool getApplicationError() const
Return if an application error exists.
std::vector< bool > getSafeCutOffPathVector() const
Returns the state for all safe cut off paths.
void setCurrentMonitoringCaseNoTable3(const uint8_t &current_monitoring_case_no_table_3)
Sets the current monitoring case table 3.
uint8_t getCurrentMonitoringCaseNoTable3() const
Returns the current monitor case table 3.
void setCurrentMonitoringCaseNoTable1(const uint8_t &current_monitoring_case_no_table_1)
Sets the current monitoring case table 1.
bool getManipulationStatus() const
Returns if the manipulation status is set to true.
bool isEmpty() const
Return if general system state has been enabled.
bool getStandbyModeActive() const
Returns if the standby mode is active.
void setCurrentMonitoringCaseNoTable2(const uint8_t &current_monitoring_case_no_table_2)
Sets the current monitoring case table 2.
bool getContaminationWarning() const
Returns if a contamination warning is exists.
void setSafeCutOffPathvector(const std::vector< bool > &safe_cut_off_path_vector)
Sets the state of all safe cut-off paths.
void setContaminationWarning(bool contamination_warning)
Set if a contamination warning exists.
bool getContaminationError() const
Returns if a contamination error exists.
std::vector< bool > getNonSafeCutOffPathVector() const
Returns the state of all non-safe cut-off paths.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41