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

IDEA::PlannerImpl Class Reference

#include <PlannerImpl.hh>

Inheritance diagram for IDEA::PlannerImpl:

IDEA::PlasmaPlannerImpl IDEA::PlasmaGoalInternalPlannerImpl List of all members.

Public Methods

 PlannerImpl (const std::string &name, const PslDatabase *database, const AgentTimingService *ats)
virtual ~PlannerImpl ()
void setHorizonPolicy (PlannerHorizonPolicy *horizonPolicy, bool deleteInstance)
 Set the horizon-policy of the invoking planner to horizonPolicy. If deleteInstance is true the horizonPolicy will be deleted at the end of the lifecycle of the invoking planner.

const PlannerHorizonPolicygetHorizonPolicy () const
 Returns the horizon-policy of the invoking planner.

int getAuthority () const
 Gets the authority of the invoking instance.

const PslDatabasegetDatabase () const
 Returns the database instance associated with the invoking instance.

const std::string & getName () const
 Returns the name of the invoking planner.

virtual StatusType replan ()=0
void stopPlanner ()
 Stops the planner.

virtual void ignore (const PslAttribute *attribute)=0
 Will have the planner ignore to make decisions on variables connected to tokens on a timeline of attribute attribute.


Static Public Methods

int createAuthority ()
 Creates an authority, unique to the process.


Protected Methods

Time getStartHorizon () const
Time getEndHorizon () const
bool continuePlanning () const
 Returns true if stopPlanner has not been invoked since construction otherwise returns false.


Private Methods

virtual void initialize ()=0

Private Attributes

bool m_DeleteHorizonPolicy
PlannerHorizonPolicym_HorizonPolicy
std::string m_Name
int m_Authority
bool m_StopPlanner
const PslDatabasem_Database
const AgentTimingServicem_AgentTimingService

Static Private Attributes

int s_Authority = 0

Friends

class Planner

Detailed Description

class PlannerImpl


Constructor & Destructor Documentation

IDEA::PlannerImpl::PlannerImpl const std::string &    name,
const PslDatabase   database,
const AgentTimingService   ats
 

IDEA::PlannerImpl::~PlannerImpl   [virtual]
 


Member Function Documentation

bool IDEA::PlannerImpl::continuePlanning   [protected]
 

Returns true if stopPlanner has not been invoked since construction otherwise returns false.

int IDEA::PlannerImpl::createAuthority   [static]
 

Creates an authority, unique to the process.

int IDEA::PlannerImpl::getAuthority  
 

Gets the authority of the invoking instance.

const PslDatabase * IDEA::PlannerImpl::getDatabase  
 

Returns the database instance associated with the invoking instance.

Time IDEA::PlannerImpl::getEndHorizon   [protected]
 

const PlannerHorizonPolicy * IDEA::PlannerImpl::getHorizonPolicy  
 

Returns the horizon-policy of the invoking planner.

const std::string & IDEA::PlannerImpl::getName  
 

Returns the name of the invoking planner.

Time IDEA::PlannerImpl::getStartHorizon   [protected]
 

virtual void IDEA::PlannerImpl::ignore const PslAttribute   attribute [pure virtual]
 

Will have the planner ignore to make decisions on variables connected to tokens on a timeline of attribute attribute.

Implemented in IDEA::PlasmaPlannerImpl.

virtual void IDEA::PlannerImpl::initialize   [private, pure virtual]
 

Implemented in IDEA::PlasmaPlannerImpl.

virtual StatusType IDEA::PlannerImpl::replan   [pure virtual]
 

Implemented in IDEA::PlasmaPlannerImpl.

void IDEA::PlannerImpl::setHorizonPolicy PlannerHorizonPolicy   horizonPolicy,
bool    deleteInstance
 

Set the horizon-policy of the invoking planner to horizonPolicy. If deleteInstance is true the horizonPolicy will be deleted at the end of the lifecycle of the invoking planner.

void IDEA::PlannerImpl::stopPlanner  
 

Stops the planner.


Friends And Related Function Documentation

friend class Planner [friend]
 


Member Data Documentation

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

int IDEA::PlannerImpl::m_Authority [private]
 

const PslDatabase* IDEA::PlannerImpl::m_Database [private]
 

bool IDEA::PlannerImpl::m_DeleteHorizonPolicy [private]
 

PlannerHorizonPolicy* IDEA::PlannerImpl::m_HorizonPolicy [private]
 

std::string IDEA::PlannerImpl::m_Name [private]
 

bool IDEA::PlannerImpl::m_StopPlanner [private]
 

int IDEA::PlannerImpl::s_Authority = 0 [static, private]
 


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