40 #ifdef ORO_PRAGMA_INTERFACE 41 #pragma implementation 53 using namespace detail;
virtual bool stop()
Stop the activity This will stop the activity by removing it from the 'run-queue' of a thread or call...
double Seconds
Seconds are stored as a double precision float.
virtual Seconds getPeriod() const
Get the periodicity of this activity in Seconds.
virtual bool isPeriodic() const
Inspect if this activity is periodic.
virtual bool initialize()
A Thread object executes user code in its own thread.
Activity(base::RunnableInterface *r=0, const std::string &name="Activity")
Create a not real-time Activity.
A class for running a certain piece of code in a thread.
virtual bool setCpuAffinity(unsigned cpu_affinity)
Set cpu affinity for this thread.
virtual void step()=0
The method that will be periodically executed when this class is run in a periodic thread...
virtual bool setPeriod(Seconds period)
Set the periodicity of this activity in Seconds.
RunnableInterface * runner
virtual unsigned getCpuAffinity() const
Get the cpu affinity of this activity.
A thread which is being run.
virtual bool isActive() const
Returns whether the thread is active.
Interface to start/stop and query a Activity.
virtual bool execute()
Execute this activity such that it executes a step or loop of the RunnableInterface.
virtual unsigned getCpuAffinity() const
virtual bool isRunning() const
Query if the activity is initialized and executing.
virtual void finalize()=0
The method that will be called after the last periodical execution of step() ( or non periodical exec...
virtual ~Activity()
Stops and terminates a Activity.
bool setPeriod(Seconds s)
Set the periodicity in Seconds.
virtual void loop()
The method that will be executed once when this class is run in a non periodic thread.
virtual bool initialize()=0
The method that will be called before the first periodical execution of step() ( or non periodical ex...
virtual bool start()
Start the Thread.
const int LowestPriority
An integer denoting the lowest priority of the selected OS.
virtual bool breakLoop()
This method is called by the framework to break out of the loop() method.
virtual bool stop()
Stop the Thread.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual bool start()
Start the activity.
virtual bool setCpuAffinity(unsigned cpu)
Set the cpu affinity of this activity.
virtual bool trigger()
Trigger that work has to be done.
virtual Seconds getPeriod() const
Get the periodicity in Seconds.
virtual os::ThreadInterface * thread()
Returns a pointer to the thread which will run this activity.
virtual bool isPeriodic() const
virtual bool isRunning() const
Returns whether the thread is running.
virtual bool isActive() const
Query if the activity is started.