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 () |
Public Member Functions inherited from Clock | |
Clock () | |
Clock (const Clock &rhs) | |
ClockStatus | getStatus () const |
virtual returnValue | getTime (double &_elapsedTime) |
virtual double | getTime () |
virtual returnValue | init (double _initialTime) |
Clock & | operator= (const Clock &rhs) |
virtual returnValue | reset () |
virtual | ~Clock () |
Additional Inherited Members | |
Protected Attributes inherited from Clock | |
double | elapsedTime |
ClockStatus | status |
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.
BEGIN_NAMESPACE_ACADO SimulationClock::SimulationClock | ( | ) |
Default constructor.
Definition at line 43 of file simulation_clock.cpp.
SimulationClock::SimulationClock | ( | const SimulationClock & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 48 of file simulation_clock.cpp.
|
virtual |
Destructor.
Definition at line 53 of file simulation_clock.cpp.
|
virtual |
Clone constructor (deep copy).
\return Pointer to deep copy of base class type
Implements Clock.
Definition at line 69 of file simulation_clock.cpp.
SimulationClock & SimulationClock::operator= | ( | const SimulationClock & | rhs | ) |
Assignment Operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 58 of file simulation_clock.cpp.
|
virtual |
Starts time measurement.
Implements Clock.
Definition at line 75 of file simulation_clock.cpp.
|
virtual |
Shifts measured time by a given offset.
@param[in] _timeShift Time offset.
Implements Clock.
Definition at line 86 of file simulation_clock.cpp.
|
virtual |
Stops time measurement.
Implements Clock.
Definition at line 99 of file simulation_clock.cpp.