Main Page | Class Hierarchy | Class List | File List | Class Members

SST::TimerHostState Class Reference

Abstract base class providing hooks for time virtualization. More...

#include <timer.h>

Inheritance diagram for SST::TimerHostState:

SST::Host List of all members.

Public Member Functions

virtual Time currentTime ()
 Obtain the current system time.

virtual TimerEnginenewTimerEngine (Timer *timer)
 Create a TimerEngine.


Detailed Description

Abstract base class providing hooks for time virtualization.

The application may create a TimerHostState object and activate it using Time::setTimerHostState(). The SST protocol will then call the time factory's methods whenever it needs to obtain the current system time or create timers.


Member Function Documentation

Time TimerHostState::currentTime  )  [virtual]
 

Obtain the current system time.

May be overridden to virtualize the system time.

Returns:
the current Time.

TimerEngine * TimerHostState::newTimerEngine Timer timer  )  [virtual]
 

Create a TimerEngine.

May be overridden to virtualize the behavior of timers.

Parameters:
the Timer for which this TimerEngine is needed.
Returns:
the new TimerEngine.


The documentation for this class was generated from the following files:
Generated on Wed Mar 28 11:48:05 2007 for SST by doxygen 1.3.4