38 #ifndef ORO_ACTIVITY_INTERFACE_HPP 39 #define ORO_ACTIVITY_INTERFACE_HPP 41 #include "../Time.hpp" 42 #include "../os/ThreadInterface.hpp" 43 #include <boost/shared_ptr.hpp> 104 virtual bool start() = 0;
115 virtual bool stop() = 0;
128 virtual bool isRunning()
const = 0;
138 virtual bool isActive()
const = 0;
145 virtual Seconds getPeriod()
const = 0;
153 virtual bool isPeriodic()
const = 0;
162 virtual bool setPeriod(
Seconds s) = 0;
170 virtual unsigned getCpuAffinity()
const = 0;
176 virtual bool setCpuAffinity(
unsigned cpu) = 0;
193 virtual bool execute() = 0;
216 virtual bool trigger() = 0;
224 virtual bool timeout() = 0;
double Seconds
Seconds are stored as a double precision float.
A class for running a certain piece of code in a thread.
RunnableInterface * runner
A thread which is being run.
boost::shared_ptr< ActivityInterface > shared_ptr
Interface to start/stop and query a Activity.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void disableRun(RunnableInterface *caller)
This method is only meant for RunnableInterface (ie runner) in order to inform the ActivityInterface ...