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

IDEA::GoalPlanner Class Reference

Deliberative planner which loads the goals and plans over them. More...

#include <GoalPlanner.hh>

Inheritance diagram for IDEA::GoalPlanner:

IDEA::PlasmaGoalPlanner List of all members.

Public Types

typedef std::map< std::string,
std::set< std::string > > 
ClassToAttributeMap

Public Methods

 GoalPlanner (const ReactivePlanner *reactiveplanner)
virtual ~GoalPlanner ()
 Destructor.

void setPlanner (Planner *planner, bool deleteInstance)
const PlannergetPlanner () const
 Returns the 'internal' planner of the invoking goal-planner.

bool plan (PlanReader::ObjectToTimelines const &planBranch, const Time &horizonStart, const Time &horizonEnd)
 Loads goals from 'planBranch' and attempts to generate a consistent plan.

bool ignore (const std::string &className, const std::string &attrName)
 Attribute filters: do not make decisions on attribute 'attrName' of class 'className'. By default all attributes are in scope. Returns true if given class and attribute are declared in the model, false otherwise.

bool ignoreAllBut (ClassToAttributeMap const &attributesInScope)

Protected Methods

virtual void setGoals (PlanReader::ObjectToTimelines const &planBranch)=0

Private Attributes

bool m_DeletePlanner
Plannerm_Planner
const ReactivePlannerm_ReactivePlanner

Detailed Description

Deliberative planner which loads the goals and plans over them.

class GoalPlanner


Member Typedef Documentation

typedef std::map<std::string, std::set<std::string> > IDEA::GoalPlanner::ClassToAttributeMap
 

map class names to attributes.


Constructor & Destructor Documentation

IDEA::GoalPlanner::GoalPlanner const ReactivePlanner   reactiveplanner
 

IDEA::GoalPlanner::~GoalPlanner   [virtual]
 

Destructor.


Member Function Documentation

const Planner * IDEA::GoalPlanner::getPlanner  
 

Returns the 'internal' planner of the invoking goal-planner.

bool IDEA::GoalPlanner::ignore const std::string &    className,
const std::string &    attrName
 

Attribute filters: do not make decisions on attribute 'attrName' of class 'className'. By default all attributes are in scope. Returns true if given class and attribute are declared in the model, false otherwise.

bool IDEA::GoalPlanner::ignoreAllBut ClassToAttributeMap const &    attributesInScope
 

By default the planner makes decisions on all attributes of all classes. This tells the planner to make decisions only on the tokens of the specified attributes. Returns true if given classes and attributes are declared in the model, false otherwise.

bool IDEA::GoalPlanner::plan PlanReader::ObjectToTimelines const &    planBranch,
const Time   horizonStart,
const Time   horizonEnd
 

Loads goals from 'planBranch' and attempts to generate a consistent plan.

Returns true if a consistent plan is found, false otherwise

virtual void IDEA::GoalPlanner::setGoals PlanReader::ObjectToTimelines const &    planBranch [protected, pure virtual]
 

planBranch contains descriptions of new goals to be loaded

Implemented in IDEA::PlasmaGoalPlanner.

void IDEA::GoalPlanner::setPlanner Planner   planner,
bool    deleteInstance
 


Member Data Documentation

bool IDEA::GoalPlanner::m_DeletePlanner [private]
 

Planner* IDEA::GoalPlanner::m_Planner [private]
 

const ReactivePlanner* IDEA::GoalPlanner::m_ReactivePlanner [private]
 


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