libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
GraphState Class Reference

Graph state interface for the AStar class. More...

#include <GraphState.hpp>

Inheritance diagram for GraphState:
API::State

Public Member Functions

 GraphState (p3d_node *n)
 
std::vector< State * > getSuccessors ()
 
p3d_node * getGraphNode ()
 
bool equal (State *other)
 
bool isLeaf ()
 
void print ()
 
void setClosed (std::vector< State * > &closedStates, std::vector< State * > &openStates)
 
bool isColsed (std::vector< State * > &closedStates)
 
void setOpen (std::vector< State * > &openStates)
 
bool isOpen (std::vector< State * > &openStates)
 
- Public Member Functions inherited from API::State
double computeCost (State *parent, State *goal)
 
double f () const
 
double g () const
 
double h () const
 
virtual bool isValid ()
 
virtual std::vector< State * > getSuccessors (State *s)
 
virtual bool equal (State *other)
 
virtual void setClosed (std::vector< State * > &closedStates, std::vector< State * > &openStates)
 
virtual bool isColsed (std::vector< State * > &closedStates)
 
virtual void setOpen (std::vector< State * > &openStates)
 
virtual bool isOpen (std::vector< State * > &openStates)
 
virtual void reset ()
 

Protected Member Functions

double computeLength (API::State *parent)
 
double computeHeuristic (API::State *parent)
 
- Protected Member Functions inherited from API::State
virtual double computeHeuristic (State *parent, State *goal)
 

Detailed Description

Graph state interface for the AStar class.


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