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" 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);
240 virtual unsigned getCpuAffinity()
const;
247 virtual bool setCpuAffinity(
unsigned cpu);
254 virtual bool inFatalError()
const;
259 virtual bool inException()
const;
264 virtual bool inRunTimeError()
const;
272 virtual bool update();
280 virtual bool trigger();
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;
double Seconds
Seconds are stored as a double precision float.
ExecutionEngine * engine()
Get a pointer to the ExecutionEngine of this Task.
unsigned int mCycleCounter
For each update cycle, this counter increments by one.
unsigned int mIOCounter
Number of cycles that were caused by IOReady triggers.
An execution engine serialises (executes one after the other) the execution of all commands...
unsigned int getCycleCounter() const
For each update cycle, this counter increments by one.
unsigned int mTimeOutCounter
Number of cycles that were caused by TimeOut triggers.
bool mTriggerOnStart
Set to false in order to not trigger() when calling start().
TaskState
Describes the different states a component can have.
unsigned int getTimeOutCounter() const
Number of cycles that were caused by TimeOut triggers.
The TaskContext is the C++ representation of an Orocos component.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
ExecutionEngine * ee
The execution engine which calls update() and processes our commands, events etc. ...
unsigned int getIOCounter() const
Number of cycles that were caused by IOReady triggers.
unsigned int getTriggerCounter() const
Number of cycles that were caused by Trigger triggers.
unsigned int mTriggerCounter
Number of cycles that were caused by Trigger triggers.
const ExecutionEngine * engine() const
Get a const pointer to the ExecutionEngine of this Task.