Class TimeManager

Inheritance Relationships

Base Type

  • public GenParam::ParameterObject

Class Documentation

class TimeManager : public GenParam::ParameterObject

Class to manage the current simulation time and the time step size. This class is a singleton.

Public Functions

TimeManager()
TimeManager(const TimeManager&) = delete
TimeManager &operator=(const TimeManager&) = delete
~TimeManager()
virtual void initParameters()
Real getTime()
void setTime(Real t)
Real getTimeStepSize()
void setTimeStepSize(Real tss)
void saveState(BinaryFileWriter &binWriter)
void loadState(BinaryFileReader &binReader)

Public Static Functions

static TimeManager *getCurrent()
static void setCurrent(TimeManager *tm)
static bool hasCurrent()

Public Static Attributes

static int TIME_STEP_SIZE = -1