BcPOC
SF-HRP ASM implementation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
SimplePlan Class Reference

#include <simple_plan.hpp>

List of all members.

Public Member Functions

 SimplePlan (ptrReactivePlanner, IEngineDescriptor *engine)
 ~SimplePlan ()
ptrBaseRule AddActionRule (std::string &, unsigned int, unsigned int, std::vector< int > &, unsigned int, unsigned int, unsigned int, unsigned int)
ptrBaseRule AddPlanRule (unsigned int, unsigned int, ptrSimplePlan, unsigned int, unsigned int, unsigned int, unsigned int)
ptrBaseRule AddFailRule (std::string &, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
ptrBaseRule AddSuccessRule (std::string &, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
int GetAction ()

Protected Types

typedef std::list< ptrBaseRuleruleList
typedef RuleQueue< ptrBaseRule,
BaseRuleOrder
RuleQueueType

Protected Member Functions

void _activate_rule (ptrBaseRule)
void _deactivate_rule (ptrBaseRule)
void _activate (ptrBaseRule)
void _deactivate (ptrBaseRule)

Protected Attributes

ptrReactivePlanner _planner
ruleList _rule_list
RuleQueueType _active_rules
ptrBaseRule _rsrule_deactiv_sched
IEngineDescriptor_engine

Friends

void BaseRule::Activate ()
void BaseRule::Deactivate ()

Member Typedef Documentation

typedef std::list<ptrBaseRule> SimplePlan::ruleList [protected]

Constructor & Destructor Documentation

SimplePlan::SimplePlan ( ptrReactivePlanner  ptr,
IEngineDescriptor engine 
)
SimplePlan::~SimplePlan ( )

Member Function Documentation

void SimplePlan::_activate ( ptrBaseRule  rule) [protected]
void SimplePlan::_activate_rule ( ptrBaseRule  rule) [protected]
void SimplePlan::_deactivate ( ptrBaseRule  rule) [protected]
void SimplePlan::_deactivate_rule ( ptrBaseRule  rule) [protected]
ptrBaseRule SimplePlan::AddActionRule ( std::string &  id,
unsigned int  pri,
unsigned int  wei,
std::vector< int > &  act,
unsigned int  fla = 0,
unsigned int  stt = 0,
unsigned int  fai = 1,
unsigned int  suc = 1 
)
ptrBaseRule SimplePlan::AddFailRule ( std::string &  id,
unsigned int  pri,
unsigned int  wei,
unsigned int  fla = 0,
unsigned int  stt = 0,
unsigned int  fai = 1,
unsigned int  suc = 1 
)
ptrBaseRule SimplePlan::AddPlanRule ( unsigned int  pri,
unsigned int  wei,
ptrSimplePlan  pla,
unsigned int  fla = 0,
unsigned int  stt = 0,
unsigned int  fai = 1,
unsigned int  suc = 1 
)
ptrBaseRule SimplePlan::AddSuccessRule ( std::string &  id,
unsigned int  pri,
unsigned int  wei,
unsigned int  fla = 0,
unsigned int  stt = 0,
unsigned int  fai = 1,
unsigned int  suc = 1 
)
int SimplePlan::GetAction ( )

Friends And Related Function Documentation

void BaseRule::Activate ( ) [friend]
void BaseRule::Deactivate ( ) [friend]

Member Data Documentation


The documentation for this class was generated from the following files: