1 #ifndef ORG_EEROS_SEQUENCER_BASESEQUENCE_HPP_ 2 #define ORG_EEROS_SEQUENCER_BASESEQUENCE_HPP_ 34 virtual int start() = 0;
35 virtual bool checkPreCondition();
36 virtual bool checkExitCondition();
38 void setName(std::string name);
39 std::string getName()
const;
44 std::vector<BaseSequence*> getCallerStack()
const;
47 void setPollingTime(
int timeInMilliseconds);
51 void addMonitor(
Monitor* monitor);
52 std::vector<Monitor*> getMonitors()
const;
55 void setTimeoutTime(
double timeoutInSec);
58 void setTimeoutExceptionSequence(
BaseSequence& sequence);
65 virtual int operator() () = 0;
71 bool exceptionIsActive =
false;
72 bool inExcProcessing =
false;
77 void checkMonitorsOfBlockedCallers();
78 void checkMonitorsOfThisSequence();
79 void checkMonitor(
Monitor* monitor);
80 void setActiveException(
Monitor* activeMonitor);
81 void clearActiveException();
82 void checkActiveException();
85 std::vector<BaseSequence*> callerStack;
86 std::vector<BaseSequence*> callerStackBlocking;
87 bool callerStackCreated =
false;
102 #endif // ORG_EEROS_SEQUENCER_BASESEQUENCE_HPP_
SequenceState state
Definition: BaseSequence.hpp:73
Definition: Logger.hpp:15
Logger log
Definition: BaseSequence.hpp:74
SequenceProp
Definition: Monitor.hpp:12
Definition: Monitor.hpp:18
std::vector< Monitor * > monitors
Definition: BaseSequence.hpp:50
Sequencer & seq
Definition: BaseSequence.hpp:68
Definition: ConditionAbort.hpp:9
Definition: Config.hpp:14
BaseSequence * caller
Definition: BaseSequence.hpp:69
std::ostream & operator<<(std::ostream &os, SequenceState state)
Definition: BaseSequence.cpp:210
bool blocking
Definition: BaseSequence.hpp:70
Definition: Sequencer.hpp:15
std::string name
Definition: BaseSequence.hpp:67
SequenceState
Definition: BaseSequence.hpp:17
Definition: ConditionTimeout.hpp:10
Definition: LogEntry.hpp:6
Definition: BaseSequence.hpp:27