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

IDEA::ReactivePlannerUpdatePolicy Class Reference

This class defines the update-policy of the ReactivePlanner (MessageObserver) the following way: More...

#include <ReactivePlannerUpdatePolicy.hh>

Inheritance diagram for IDEA::ReactivePlannerUpdatePolicy:

IDEA::UpdatePolicy List of all members.

Public Methods

 ReactivePlannerUpdatePolicy (MessageObserver *observer, const AgentTimingService *ats)
 Constructor, takes a mutex for a condition variable.

void setTime (const Time &time)
 Sets the current tick used to stop updating messages that have a time strictly larger that this tick.

void notify (MessageHandle message)
 Notifies the invoking instance that the corresponding observer has been notified of a message message.

bool updateNextMessage (MessageHandle message)
 Should return true if the MessageObserver should stop updating.


Protected Attributes

MessageObserverm_Observer

Private Attributes

Time m_Time
const AgentTimingServicem_AgentTimingService

Detailed Description

This class defines the update-policy of the ReactivePlanner (MessageObserver) the following way:

class ReactivePlannerUpdatePolicy

So we have to make sure we set the current tick before starting the update


Constructor & Destructor Documentation

IDEA::ReactivePlannerUpdatePolicy::ReactivePlannerUpdatePolicy MessageObserver   observer,
const AgentTimingService   ats
 

Constructor, takes a mutex for a condition variable.


Member Function Documentation

void IDEA::ReactivePlannerUpdatePolicy::notify MessageHandle    message [virtual]
 

Notifies the invoking instance that the corresponding observer has been notified of a message message.

Reimplemented from IDEA::UpdatePolicy.

void IDEA::ReactivePlannerUpdatePolicy::setTime const Time   time
 

Sets the current tick used to stop updating messages that have a time strictly larger that this tick.

bool IDEA::ReactivePlannerUpdatePolicy::updateNextMessage MessageHandle    message
 

Should return true if the MessageObserver should stop updating.

Defines if the updating of the messages should stop (return true) or should continue (return false) if the next message is message.

Reimplemented from IDEA::UpdatePolicy.


Member Data Documentation

const AgentTimingService* IDEA::ReactivePlannerUpdatePolicy::m_AgentTimingService [private]
 

MessageObserver* IDEA::UpdatePolicy::m_Observer [protected, inherited]
 

Time IDEA::ReactivePlannerUpdatePolicy::m_Time [private]
 

used to determine if we should update the next message if received at a certain time


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