1 #ifndef ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_
2 #define ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_
45 std::function<void (SafetyContext*)> action;
48 std::string description;
49 std::map<uint32_t, std::pair<int32_t, EventType>> transitions;
51 std::vector<InputAction*> inputAction;
52 std::vector<OutputAction*> outputAction;
58 #endif // ORG_EEROS_SAFETY_SAFETYLEVEL_HPP_
Definition: SafetySystem.hpp:19
void setInputAction(InputAction *action)
Definition: SafetyLevel.cpp:38
void setLevelAction(std::function< void(SafetyContext *context)> action)
Definition: SafetyLevel.cpp:33
Definition: SafetyLevel.hpp:21
Definition: SafetyLevel.hpp:19
SafetyLevel(int32_t id, std::string description)
Definition: SafetyLevel.cpp:5
EventType
Definition: SafetyLevel.hpp:19
virtual ~SafetyLevel()
Definition: SafetyLevel.cpp:9
std::string getDescription()
Definition: SafetyLevel.cpp:17
Definition: OutputAction.hpp:10
int32_t getLevelIdForEvent(uint32_t event, bool privateEventOk=false)
Definition: SafetyLevel.cpp:21
void setInputActions(std::vector< InputAction * > actionList)
Definition: SafetyLevel.cpp:42
Definition: SafetyContext.hpp:11
SafetyLevel & operator<(const SafetyLevel &)
int32_t getId()
Definition: SafetyLevel.cpp:13
type
Definition: Sequencer.hpp:15
void setOutputActions(std::vector< OutputAction * > actionList)
Definition: SafetyLevel.cpp:50
void setOutputAction(OutputAction *action)
Definition: SafetyLevel.cpp:46
Definition: SafetyLevel.hpp:18
void addEvent(uint32_t event, int32_t nextLevelId, EventType type=kPrivateEvent)
Definition: SafetyLevel.cpp:29
Definition: SafetyLevel.hpp:19