39 #ifndef ORO_TASK_CORE_HPP 40 #define ORO_TASK_CORE_HPP 43 #include "../rtt-fwd.hpp" 44 #include "../rtt-config.h" 45 #include "../Time.hpp" 116 TaskCore(
TaskState initial_state = Stopped,
const std::string& name = std::string() );
143 virtual TaskState getTargetState()
const;
158 virtual bool configure();
167 virtual bool activate();
178 virtual bool start();
193 virtual bool cleanup();
199 virtual bool isConfigured()
const;
206 virtual bool isActive()
const;
214 virtual bool isRunning()
const;
226 virtual Seconds getPeriod()
const;
234 virtual bool setPeriod(
Seconds s);
254 virtual bool inFatalError()
const;
259 virtual bool inException()
const;
264 virtual bool inRunTimeError()
const;
288 virtual void error();
297 virtual bool recover();
349 virtual bool configureHook();
356 virtual void cleanupHook();
367 virtual bool startHook();
380 virtual void updateHook();
390 virtual bool breakUpdateHook();
399 virtual void errorHook();
408 virtual void exceptionHook();
416 virtual void stopHook();
424 virtual void fatal();
434 virtual void exception();
438 friend class ::RTT::ExecutionEngine;
ExecutionEngine * engine()
TaskState const mInitialState
unsigned int mCycleCounter
unsigned int getCycleCounter() const
unsigned int mTimeOutCounter
static RTT_UNUSED bool setCpuAffinity(ThreadInterface *thread, const std::bitset< 16 > &cpu_affinity)
unsigned int getTimeOutCounter() const
static std::bitset< 16 > getCpuAffinity(ThreadInterface *thread)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
unsigned int getIOCounter() const
unsigned int getTriggerCounter() const
unsigned int mTriggerCounter
const ExecutionEngine * engine() const
static bool update(TaskContext *tc)
static bool trigger(TaskContext *tc)