GeneralSystemState.h
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 
35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_GENERALSYSTEMSTATE_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_GENERALSYSTEMSTATE_H
37 
38 #include <stdint.h>
39 #include <vector>
40 
41 namespace sick {
42 namespace datastructure {
43 
50 {
51 public:
56 
61  bool getRunModeActive() const;
66  void setRunModeActive(bool run_mode_active);
67 
72  bool getStandbyModeActive() const;
73 
78  void setStandbyModeActive(bool standby_mode_active);
79 
84  bool getContaminationWarning() const;
85 
90  void setContaminationWarning(bool contamination_warning);
91 
96  bool getContaminationError() const;
97 
102  void setContaminationError(bool contamination_error);
103 
108  bool getReferenceContourStatus() const;
109 
114  void setReferenceContourStatus(bool reference_contour_status);
115 
120  bool getManipulationStatus() const;
121 
126  void setManipulationStatus(bool manipulation_status);
127 
132  std::vector<bool> getSafeCutOffPathVector() const;
133 
138  void setSafeCutOffPathvector(const std::vector<bool>& safe_cut_off_path_vector);
139 
144  std::vector<bool> getNonSafeCutOffPathVector() const;
145 
150  void setNonSafeCutOffPathVector(const std::vector<bool>& non_safe_cut_off_path_vector);
151 
156  std::vector<bool> getResetRequiredCutOffPathVector() const;
157 
162  void
163  setResetRequiredCutOffPathVector(const std::vector<bool>& reset_required_cut_off_path_vector);
164 
169  uint8_t getCurrentMonitoringCaseNoTable1() const;
170 
175  void setCurrentMonitoringCaseNoTable1(const uint8_t& current_monitoring_case_no_table_1);
176 
181  uint8_t getCurrentMonitoringCaseNoTable2() const;
182 
187  void setCurrentMonitoringCaseNoTable2(const uint8_t& current_monitoring_case_no_table_2);
188 
193  uint8_t getCurrentMonitoringCaseNoTable3() const;
194 
199  void setCurrentMonitoringCaseNoTable3(const uint8_t& current_monitoring_case_no_table_3);
200 
205  uint8_t getCurrentMonitoringCaseNoTable4() const;
206 
211  void setCurrentMonitoringCaseNoTable4(const uint8_t& current_monitoring_case_no_table_4);
212 
217  bool getApplicationError() const;
218 
223  void setApplicationError(bool application_error);
224 
229  bool getDeviceError() const;
230 
235  void setDeviceError(bool device_error);
236 
237 
242  bool isEmpty() const;
243 
248  void setIsEmpty(bool is_empty);
249 
250 private:
258 
259  std::vector<bool> m_safe_cut_off_path_vector;
262 
267 
270 };
271 
272 } // namespace datastructure
273 } // namespace sick
274 
275 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_GENERALSYSTEMSTATE_H
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.
The GeneralSystemState class. It includes a summary of the current system state, the state of the saf...
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