Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::AgentTimingServiceImpl Class Reference
[Agent implementation base classes]

Implementation class of the AgentTimingService. More...

#include <AgentTimingServiceImpl.hh>

Inheritance diagram for IDEA::AgentTimingServiceImpl:

IDEA::SharedTimingServiceImpl List of all members.

Public Methods

virtual ~AgentTimingServiceImpl ()
 Destructor.

virtual RecursiveThreadMutexgetMutex ()=0
TimeEventHandlersetTimeEventHandler (TimeEventHandler *handler, bool deleteInstance)
const TimeEventHandlergetTimeEventHandler () const
virtual bool getNextScheduledTime (Time &time)=0
virtual void setCancellableEventTimer (const Time &time)=0
virtual void cancelEventTimer ()=0
virtual void setRebootTimer (const Time &time)=0
virtual void cancelRebootTimer ()=0
virtual void setNonCancellableEventTimer (const Time &time)=0
virtual void cancelAllTimers ()=0
virtual bool isInitialized () const=0
virtual Time getCurrentTime ()=0
 Get the current (simulated) time.

virtual Time getElapsedTime ()=0
 Get the elapsed system time from the time the time server was started. i.e., it is the wall clock time since the time server was started.

virtual Time getTimeOfDay ()=0
 Returns the time of day as an offset of a pivot-date (typically january 1, 1970 depending on OS).

virtual void incrementTransitMessages (int numOfMsgs=1)=0
 The sender will tell the TimingService how many messages it has sent.

virtual void decrementTransitMessages (int numOfMsgs=1)=0
 The receiver will tell the TimingService how many messages it has received.

virtual void cancelTimer (const Time &time)=0
 Canceling timer at time.

virtual void incrementNonWarpableCommands ()=0
 Increases the number of non-warpable commands by one.

virtual void decrementNonWarpableCommands ()=0
 Decrements the number of non-warpable commands by one.

void stop ()
 Stops the invoking AgentTimingServiceImpl.


Protected Methods

 AgentTimingServiceImpl (const std::string &name)
 Constructor.


Protected Attributes

TimeEventHandlerm_TimeEventHandler

Private Attributes

std::string m_AgentName
bool m_DeleteTimeEventHandler

Detailed Description

Implementation class of the AgentTimingService.

Author:
David Rijsman rijsman@email.arc.nasa.gov


Constructor & Destructor Documentation

IDEA::AgentTimingServiceImpl::~AgentTimingServiceImpl   [virtual]
 

Destructor.

IDEA::AgentTimingServiceImpl::AgentTimingServiceImpl const std::string &    name [protected]
 

Constructor.


Member Function Documentation

virtual void IDEA::AgentTimingServiceImpl::cancelAllTimers   [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::cancelEventTimer   [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::cancelRebootTimer   [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::cancelTimer const Time   time [pure virtual]
 

Canceling timer at time.

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::decrementNonWarpableCommands   [pure virtual]
 

Decrements the number of non-warpable commands by one.

In case the counter reaches zero we tell the invoking timingService it is no longer active.

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::decrementTransitMessages int    numOfMsgs = 1 [pure virtual]
 

The receiver will tell the TimingService how many messages it has received.

Implemented in IDEA::SharedTimingServiceImpl.

virtual Time IDEA::AgentTimingServiceImpl::getCurrentTime   [pure virtual]
 

Get the current (simulated) time.

Implemented in IDEA::SharedTimingServiceImpl.

virtual Time IDEA::AgentTimingServiceImpl::getElapsedTime   [pure virtual]
 

Get the elapsed system time from the time the time server was started. i.e., it is the wall clock time since the time server was started.

Implemented in IDEA::SharedTimingServiceImpl.

virtual RecursiveThreadMutex& IDEA::AgentTimingServiceImpl::getMutex   [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual bool IDEA::AgentTimingServiceImpl::getNextScheduledTime Time   time [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

const TimeEventHandler * IDEA::AgentTimingServiceImpl::getTimeEventHandler  
 

virtual Time IDEA::AgentTimingServiceImpl::getTimeOfDay   [pure virtual]
 

Returns the time of day as an offset of a pivot-date (typically january 1, 1970 depending on OS).

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::incrementNonWarpableCommands   [pure virtual]
 

Increases the number of non-warpable commands by one.

If we increment the value to one we notify the invoking timing-service that its active.

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::incrementTransitMessages int    numOfMsgs = 1 [pure virtual]
 

The sender will tell the TimingService how many messages it has sent.

Implemented in IDEA::SharedTimingServiceImpl.

virtual bool IDEA::AgentTimingServiceImpl::isInitialized   [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::setCancellableEventTimer const Time   time [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::setNonCancellableEventTimer const Time   time [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

virtual void IDEA::AgentTimingServiceImpl::setRebootTimer const Time   time [pure virtual]
 

Implemented in IDEA::SharedTimingServiceImpl.

TimeEventHandler * IDEA::AgentTimingServiceImpl::setTimeEventHandler TimeEventHandler   handler,
bool    deleteInstance
 

void IDEA::AgentTimingServiceImpl::stop  
 

Stops the invoking AgentTimingServiceImpl.


Member Data Documentation

std::string IDEA::AgentTimingServiceImpl::m_AgentName [private]
 

The name of the agent the AgentTimingServiceImpl is related to

bool IDEA::AgentTimingServiceImpl::m_DeleteTimeEventHandler [private]
 

TimeEventHandler* IDEA::AgentTimingServiceImpl::m_TimeEventHandler [protected]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:45 2006 for IDEA.