DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
dueca::SimTime Class Reference

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.
 
ostreamprint (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.
 
SimTimeoperator+= (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
 

Detailed Description

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.

Todo
Remove this archaic piece of junk.

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