Public Member Functions
RTT::extras::SimulationActivity Class Reference

A SimulationActivity is a PeriodicActivity which is used for simulation. More...

#include <SimulationActivity.hpp>

Inheritance diagram for RTT::extras::SimulationActivity:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool execute ()
 SimulationActivity (Seconds period, base::RunnableInterface *r=0)
 SimulationActivity (secs s, nsecs ns, base::RunnableInterface *r=0)
virtual bool start ()
virtual os::ThreadInterfacethread ()
virtual ~SimulationActivity ()

Detailed Description

A SimulationActivity is a PeriodicActivity which is used for simulation.

They all run in the same thread at the same period, which updates the the system clock such that the SimulationActivity appears to run in realtime, while it runs 'as fast as possible'.

Note:
The period is fixed by the SimulationThread, which runs all SimulationActivities at the same period.

Definition at line 59 of file SimulationActivity.hpp.


Constructor & Destructor Documentation

Construct a SimulationActivity with a periodicity period Seconds

Note:
period is ignored.

Definition at line 46 of file SimulationActivity.cpp.

Construct a SimulationActivity with a periodicity of s seconds and ns nanoseconds

Note:
s and ns are ignored.

Definition at line 51 of file SimulationActivity.cpp.

Destroys this instance. The Activity is stopped.

Definition at line 56 of file SimulationActivity.cpp.


Member Function Documentation

When a SimulationActivity is started, it may be executed by the user as well.

Reimplemented from RTT::extras::PeriodicActivity.

Definition at line 65 of file SimulationActivity.cpp.

bool RTT::SimulationActivity::start ( ) [virtual]

A simulated activity can be started also if the SimulationThread is not running yet. This allows all tasks to be set ready in advance before the whole simulation is started.

Reimplemented from RTT::extras::PeriodicActivity.

Definition at line 76 of file SimulationActivity.cpp.

Returns a pointer to the thread which will run this activity. Will not be null.

Reimplemented from RTT::extras::PeriodicActivity.

Definition at line 61 of file SimulationActivity.cpp.


The documentation for this class was generated from the following files:


rtt
Author(s): RTT Developers
autogenerated on Fri Sep 9 2016 04:02:19