#include <GraphPolicy.h>
Public Member Functions | |
ActionSet | actions (const std::set< AspFluent > &state) const throw () |
bool | empty () const throw () |
GraphPolicy (const ActionSet &actions) | |
void | merge (const AnswerSet &plan) throw (std::logic_error) |
void | merge (const PartialPolicy *otherPolicy) |
void | merge (const GraphPolicy *otherPolicy) |
std::vector< actasp::AnswerSet > | plansFrom (const std::set< AspFluent > &state) throw () |
Private Types | |
typedef std::map< std::set < AspFluent >, PlanReference, StateComparator< AspFluent > > | PlanIndex |
typedef std::list< std::list < AspFluent > > | PlanList |
typedef std::list< std::pair < PlanList::const_iterator, std::list< AspFluent > ::const_iterator > > | PlanReference |
typedef std::map< std::set < AspFluent >, ActionSet, StateComparator< AspFluent > > | PolicyMap |
Private Attributes | |
ActionSet | allActions |
PlanIndex | planIndex |
PlanList | plans |
PolicyMap | policy |
Definition at line 15 of file GraphPolicy.h.
typedef std::map<std::set<AspFluent>, PlanReference , StateComparator<AspFluent> > actasp::GraphPolicy::PlanIndex [private] |
Definition at line 37 of file GraphPolicy.h.
typedef std::list< std::list< AspFluent> > actasp::GraphPolicy::PlanList [private] |
Definition at line 35 of file GraphPolicy.h.
typedef std::list< std::pair< PlanList::const_iterator, std::list< AspFluent>::const_iterator> > actasp::GraphPolicy::PlanReference [private] |
Definition at line 36 of file GraphPolicy.h.
typedef std::map<std::set<AspFluent>, ActionSet, StateComparator<AspFluent> > actasp::GraphPolicy::PolicyMap [private] |
Definition at line 34 of file GraphPolicy.h.
actasp::GraphPolicy::GraphPolicy | ( | const ActionSet & | actions | ) |
Definition at line 15 of file GraphPolicy.cpp.
ActionSet actasp::GraphPolicy::actions | ( | const std::set< AspFluent > & | state | ) | const throw () [virtual] |
Implements actasp::PartialPolicy.
Definition at line 17 of file GraphPolicy.cpp.
bool actasp::GraphPolicy::empty | ( | ) | const throw () [virtual] |
Implements actasp::PartialPolicy.
Definition at line 135 of file GraphPolicy.cpp.
void actasp::GraphPolicy::merge | ( | const AnswerSet & | plan | ) | throw (std::logic_error) [virtual] |
Implements actasp::PartialPolicy.
Definition at line 36 of file GraphPolicy.cpp.
void actasp::GraphPolicy::merge | ( | const PartialPolicy * | otherPolicy | ) | [virtual] |
Implements actasp::PartialPolicy.
Definition at line 28 of file GraphPolicy.cpp.
void actasp::GraphPolicy::merge | ( | const GraphPolicy * | otherPolicy | ) |
Definition at line 94 of file GraphPolicy.cpp.
std::vector< actasp::AnswerSet > actasp::GraphPolicy::plansFrom | ( | const std::set< AspFluent > & | state | ) | throw () |
Definition at line 139 of file GraphPolicy.cpp.
ActionSet actasp::GraphPolicy::allActions [private] |
Definition at line 40 of file GraphPolicy.h.
PlanIndex actasp::GraphPolicy::planIndex [private] |
Definition at line 42 of file GraphPolicy.h.
PlanList actasp::GraphPolicy::plans [private] |
Definition at line 41 of file GraphPolicy.h.
PolicyMap actasp::GraphPolicy::policy [private] |
Definition at line 39 of file GraphPolicy.h.