Simulates real time measurements for simulations. More...
#include <simulation_clock.hpp>
Public Member Functions | |
virtual Clock * | clone () const |
SimulationClock & | operator= (const SimulationClock &rhs) |
SimulationClock () | |
SimulationClock (const SimulationClock &rhs) | |
virtual returnValue | start () |
virtual returnValue | step (double _timeShift) |
virtual returnValue | stop () |
virtual | ~SimulationClock () |
Simulates real time measurements for simulations.
The class SimulationClock simulates real time measurements for simulations within the SimulationEnvironment.
Definition at line 53 of file simulation_clock.hpp.
Default constructor.
Definition at line 43 of file simulation_clock.cpp.
SimulationClock::SimulationClock | ( | const SimulationClock & | rhs | ) |
Copy constructor (deep copy).
[in] | rhs | Right-hand side object. |
Definition at line 48 of file simulation_clock.cpp.
SimulationClock::~SimulationClock | ( | ) | [virtual] |
Destructor.
Definition at line 53 of file simulation_clock.cpp.
Clock * SimulationClock::clone | ( | ) | const [virtual] |
Clone constructor (deep copy).
Implements Clock.
Definition at line 69 of file simulation_clock.cpp.
SimulationClock & SimulationClock::operator= | ( | const SimulationClock & | rhs | ) |
Assignment Operator (deep copy).
[in] | rhs | Right-hand side object. |
Definition at line 58 of file simulation_clock.cpp.
returnValue SimulationClock::start | ( | ) | [virtual] |
Starts time measurement.
Implements Clock.
Definition at line 75 of file simulation_clock.cpp.
returnValue SimulationClock::step | ( | double | _timeShift | ) | [virtual] |
Shifts measured time by a given offset.
[in] | _timeShift | Time offset. |
Implements Clock.
Definition at line 86 of file simulation_clock.cpp.
returnValue SimulationClock::stop | ( | ) | [virtual] |
Stops time measurement.
Implements Clock.
Definition at line 99 of file simulation_clock.cpp.