|
DUECA/DUSIME
|
This is the integer (model) time of a simulation or process. More...
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. More... | |
| bool | operator< (const SimTime &t2) const |
| Returns true if the second time is smaller than this one. More... | |
| bool | operator> (const SimTime &t2) const |
| Returns true if the second time is larger than this one. More... | |
| bool | operator== (const SimTime &t2) const |
| Returns true if the second time is equal to this one. More... | |
| bool | operator!= (const SimTime &t2) const |
| Returns true if the second time is not equal to this one. More... | |
| TimeTickType | getTick () const |
| Return the tick value from this time object. More... | |
| SimTime & | operator+= (TimeTickType tim) |
| Add a time to this time object. More... | |
| bool | future () const |
| Test whether this time object lies in the future. More... | |
| bool | present () const |
| Test whether this time object lies in the present. More... | |
| bool | past () const |
| Test whether this time object lies in the past. More... | |
Static Public Member Functions | |
| static TimeTickType | getTimeTick () |
| Return the current time tick. More... | |
| static const TimeTickType | now () |
| Return a time object made from the current tick. More... | |
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.
| ostream& dueca::SimTime::print | ( | ostream & | s | ) | const |
Print to stream, debugging purposes.
|
inline |
Returns true if the second time is smaller than this one.
|
inline |
Returns true if the second time is larger than this one.
|
inline |
Returns true if the second time is equal to this one.
|
inline |
Returns true if the second time is not equal to this one.
|
inlinestatic |
Return the current time tick.
|
inlinestatic |
Return a time object made from the current tick.
|
inline |
Return the tick value from this time object.
|
inline |
Add a time to this time object.
|
inline |
Test whether this time object lies in the future.
|
inline |
Test whether this time object lies in the present.
|
inline |
Test whether this time object lies in the past.