DUECA/DUSIME
|
This is the integer (model) time of a simulation or process. More...
#include <SimTime.hxx>
Public Member Functions | |
SimTime () | |
Constructor. | |
SimTime (TimeTickType tim) | |
Make a time point from a time. | |
SimTime (AmorphReStore &source) | |
Construct from packed storage. | |
~SimTime () | |
Destructor. | |
ostream & | print (ostream &s) const |
Print to stream, debugging purposes. | |
bool | operator< (const SimTime &t2) const |
Returns true if the second time is smaller than this one. | |
bool | operator> (const SimTime &t2) const |
Returns true if the second time is larger than this one. | |
bool | operator== (const SimTime &t2) const |
Returns true if the second time is equal to this one. | |
bool | operator!= (const SimTime &t2) const |
Returns true if the second time is not equal to this one. | |
TimeTickType | getTick () const |
Return the tick value from this time object. | |
SimTime & | operator+= (TimeTickType tim) |
Add a time to this time object. | |
bool | future () const |
Test whether this time object lies in the future. | |
bool | present () const |
Test whether this time object lies in the present. | |
bool | past () const |
Test whether this time object lies in the past. | |
Static Public Member Functions | |
static TimeTickType | getTimeTick () |
Return the current time tick. | |
static const TimeTickType | now () |
Return a time object made from the current tick. | |
Friends | |
class | Environment |
class | Ticker |
This is the integer (model) time of a simulation or process.
The only method that is used by application programmers is getTimeTick, which returns the current tick.