Public Member Functions | Public Attributes | Private Member Functions
rgoap.planning.Node Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__
def cost
def get_child_nodes
def is_goal
def parent_node
def path_cost
def total_cost

Public Attributes

 action
 heuristic_distance
 parent_actions_path_list
 parent_nodes_path_list
 possible_prev_nodes
 worldstate

Private Member Functions

def _calc_heuristic_distance_for_node

Detailed Description

worldstate: states at this node
action: action that led (regressively) to this node (and that should be run when executing this path forwards)
possible_prev_nodes: nodes with actions that the planner found possible to help reach this node
                        (empty until planner ran, used for visualization/debugging)
parent_nodes_path_list: nodes that led (from the goal) to this node
parent_actions_path_list: actions that led (from the goal) to this node
note that the parent path lists begin with the goal node and end with this node's parent

if this node is the goal node:
- the action is None
- the path lists are empty
- also, cost() and heuristic_distance are zero

Definition at line 46 of file planning.py.


Constructor & Destructor Documentation

def rgoap.planning.Node.__init__ (   self,
  worldstate,
  action,
  parent_nodes_path_list,
  parent_actions_path_list 
)

Definition at line 61 of file planning.py.


Member Function Documentation

Definition at line 73 of file planning.py.

Definition at line 70 of file planning.py.

def rgoap.planning.Node._calc_heuristic_distance_for_node (   self,
  start_worldstate 
) [private]
Set self.heuristic_distance, a value representing the difference
between this node's worldstate and the given start worldstate.

Definition at line 98 of file planning.py.

def rgoap.planning.Node.cost (   self)
The cost of this node's action

Definition at line 86 of file planning.py.

def rgoap.planning.Node.get_child_nodes (   self,
  actions,
  start_worldstate 
)
Returns a list of nodes that are childs of this node and
contain the given action and start worldstate.

Definition at line 150 of file planning.py.

See class description

Definition at line 79 of file planning.py.

Definition at line 83 of file planning.py.

Path cost calculation

Definition at line 90 of file planning.py.

Path costs plus heuristic distance

Definition at line 94 of file planning.py.


Member Data Documentation

Definition at line 61 of file planning.py.

Definition at line 61 of file planning.py.

Definition at line 61 of file planning.py.

Definition at line 61 of file planning.py.

Definition at line 61 of file planning.py.

Definition at line 61 of file planning.py.


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


rgoap
Author(s): Felix Kolbe
autogenerated on Sun Oct 5 2014 23:53:02