1 #ifndef ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_ 2 #define ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_ 28 std::string description;
40 uint32_t getLevelId();
41 uint32_t getNofActivations();
45 void setInputActions(std::vector<InputAction*> actionList);
47 void setOutputActions(std::vector<OutputAction*> actionList);
48 void setLevelAction(std::function<
void (
SafetyContext* context)> action);
56 std::function<void (SafetyContext*)> action;
58 uint32_t nofActivations;
59 std::string description;
60 std::map<uint32_t, std::pair<SafetyLevel*, EventType>> transitions;
61 std::vector<InputAction*> inputAction;
62 std::vector<OutputAction*> outputAction;
73 #endif // ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_ Safety system.
Definition: SafetySystem.hpp:19
SafetyEvent(std::string description)
Definition: SafetyLevel.cpp:6
friend class SafetyLevel
Definition: SafetyLevel.hpp:22
Definition: SafetyLevel.hpp:33
Definition: SafetyLevel.hpp:19
EventType
Definition: SafetyLevel.hpp:19
Definition: Config.hpp:14
Definition: OutputAction.hpp:12
Definition: SafetyContext.hpp:12
std::string getDescription()
Definition: SafetyLevel.cpp:14
Definition: SafetyLevel.hpp:19
std::ostream & operator<<(std::ostream &os, eeros::safety::SafetyEvent &event)
Definition: SafetyLevel.cpp:96
Definition: SafetyProperties.hpp:15
virtual ~SafetyEvent()
Definition: SafetyLevel.cpp:11
Definition: SafetyLevel.hpp:21