00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 00035 #include <sick_safetyscanners/datastructure/ApplicationInputs.h> 00036 00037 namespace sick { 00038 namespace datastructure { 00039 00040 ApplicationInputs::ApplicationInputs() {} 00041 00042 std::vector<bool> ApplicationInputs::getUnsafeInputsInputSourcesVector() const 00043 { 00044 return m_unsafe_inputs_input_sources_vector; 00045 } 00046 00047 void ApplicationInputs::setUnsafeInputsInputSourcesVector( 00048 const std::vector<bool>& unsafe_inputs_input_sources_vector) 00049 { 00050 m_unsafe_inputs_input_sources_vector = unsafe_inputs_input_sources_vector; 00051 } 00052 00053 std::vector<bool> ApplicationInputs::getUnsafeInputsFlagsVector() const 00054 { 00055 return m_unsafe_inputs_flags_vector; 00056 } 00057 00058 void ApplicationInputs::setUnsafeInputsFlagsVector( 00059 const std::vector<bool>& unsafe_inputs_flags_vector) 00060 { 00061 m_unsafe_inputs_flags_vector = unsafe_inputs_flags_vector; 00062 } 00063 00064 std::vector<uint16_t> ApplicationInputs::getMonitoringCasevector() const 00065 { 00066 return m_monitoring_case_vector; 00067 } 00068 00069 void ApplicationInputs::setMonitoringCaseVector(const std::vector<uint16_t>& monitoring_case_vector) 00070 { 00071 m_monitoring_case_vector = monitoring_case_vector; 00072 } 00073 00074 std::vector<bool> ApplicationInputs::getMonitoringCaseFlagsVector() const 00075 { 00076 return m_monitoring_case_flags_vector; 00077 } 00078 00079 void ApplicationInputs::setMonitoringCaseFlagsVector( 00080 const std::vector<bool>& monitoring_case_flags_vector) 00081 { 00082 m_monitoring_case_flags_vector = monitoring_case_flags_vector; 00083 } 00084 00085 int16_t ApplicationInputs::getVelocity0() const 00086 { 00087 return m_velocity_0; 00088 } 00089 00090 void ApplicationInputs::setVelocity0(const int16_t& velocity_0) 00091 { 00092 m_velocity_0 = velocity_0; 00093 } 00094 00095 int16_t ApplicationInputs::getVelocity1() const 00096 { 00097 return m_velocity_1; 00098 } 00099 00100 void ApplicationInputs::setVelocity1(const int16_t& velocity_1) 00101 { 00102 m_velocity_1 = velocity_1; 00103 } 00104 00105 bool ApplicationInputs::getVelocity0Valid() const 00106 { 00107 return m_velocity_0_valid; 00108 } 00109 00110 void ApplicationInputs::setVelocity0Valid(bool velocity_0_valid) 00111 { 00112 m_velocity_0_valid = velocity_0_valid; 00113 } 00114 00115 bool ApplicationInputs::getVelocity1Valid() const 00116 { 00117 return m_velocity_1_valid; 00118 } 00119 00120 void ApplicationInputs::setVelocity1Valid(bool velocity_1_valid) 00121 { 00122 m_velocity_1_valid = velocity_1_valid; 00123 } 00124 00125 bool ApplicationInputs::getVelocity0TransmittedSafely() const 00126 { 00127 return m_velocity_0_transmitted_safely; 00128 } 00129 00130 void ApplicationInputs::setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely) 00131 { 00132 m_velocity_0_transmitted_safely = velocity_0_transmitted_safely; 00133 } 00134 00135 bool ApplicationInputs::getVelocity1TransmittedSafely() const 00136 { 00137 return m_velocity_1_transmitted_safely; 00138 } 00139 00140 void ApplicationInputs::setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely) 00141 { 00142 m_velocity_1_transmitted_safely = velocity_1_transmitted_safely; 00143 } 00144 00145 int8_t ApplicationInputs::getSleepModeInput() const 00146 { 00147 return m_sleep_mode_input; 00148 } 00149 00150 void ApplicationInputs::setSleepModeInput(const int8_t& sleep_mode_input) 00151 { 00152 m_sleep_mode_input = sleep_mode_input; 00153 } 00154 00155 } // namespace datastructure 00156 } // namespace sick