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

IDEA::PlanReader Class Reference

Interface between a plan file reader and a Goal Loader. It is independent of the file format and the Plan Database. More...

#include <PlanReader.hh>

List of all members.

Public Types

typedef std::map< std::string,
IValue * > 
ArgumentToValue
 arg name to arg value

typedef std::vector< TokenDataTokenToArgValues
typedef std::map< std::string,
TokenToArgValues
TimelineToTokens
 Attribute name to token vector.

typedef std::map< std::string,
ObjectData
ObjectToTimelines
 object name to ObjectData

typedef std::vector< EndsBeforeStartConstraintEndStartConstraints
typedef std::map< int, PlanContextToPlanBranch
typedef std::map< int, IDEA::BranchPoint * > BranchPoints

Public Methods

virtual bool getBranchPoint (int tokenKey, BranchPoint *&branchPoint)=0
virtual int readPlan (const std::string &fileName)=0
 number of contexts (plan branches) in the given file; -1 if read failed.

virtual ObjectToTimelines
const & 
getPlanObjects (int context=0)=0
 return a plan branch with a given number, which is 0 by default

virtual EndStartConstraints
const & 
getPlanConstraints (int context=0)=0
virtual int getInfinity ()
virtual int getNegativeInfinity ()


Detailed Description

Interface between a plan file reader and a Goal Loader. It is independent of the file format and the Plan Database.

class PlanReader


Member Typedef Documentation

typedef std::map<std::string, IValue*> IDEA::PlanReader::ArgumentToValue
 

arg name to arg value

typedef std::map<int, IDEA::BranchPoint*> IDEA::PlanReader::BranchPoints
 

must use pointer to Branch instead of reference in order to preserve the virtual table

typedef std::map<int, Plan> IDEA::PlanReader::ContextToPlanBranch
 

typedef std::vector<EndsBeforeStartConstraint> IDEA::PlanReader::EndStartConstraints
 

typedef std::map<std::string, ObjectData> IDEA::PlanReader::ObjectToTimelines
 

object name to ObjectData

typedef std::map<std::string, TokenToArgValues> IDEA::PlanReader::TimelineToTokens
 

Attribute name to token vector.

typedef std::vector<TokenData> IDEA::PlanReader::TokenToArgValues
 


Member Function Documentation

virtual bool IDEA::PlanReader::getBranchPoint int    tokenKey,
BranchPoint *&    branchPoint
[pure virtual]
 

virtual int IDEA::PlanReader::getInfinity   [inline, virtual]
 

virtual int IDEA::PlanReader::getNegativeInfinity   [inline, virtual]
 

virtual EndStartConstraints const& IDEA::PlanReader::getPlanConstraints int    context = 0 [pure virtual]
 

virtual ObjectToTimelines const& IDEA::PlanReader::getPlanObjects int    context = 0 [pure virtual]
 

return a plan branch with a given number, which is 0 by default

virtual int IDEA::PlanReader::readPlan const std::string &    fileName [pure virtual]
 

number of contexts (plan branches) in the given file; -1 if read failed.


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