#include <dp.h>

Public Member Functions | |
| double | AstarCost () |
| dpNode * | Brother () |
| dpNode * | Child () |
| double | Cost () |
| int | Depth (dpNode *target_p=0) |
| dpNode () | |
| dpNode * | GetParent (int id) |
| int | ID () |
| dpNode * | Parent () |
| dpQueue * | Queue () |
| double | TotalAstarCost () |
| double | TotalCost () |
| virtual | ~dpNode () |
Protected Member Functions | |
| void | add_child (dpNode *n) |
| virtual void | dump (ostream &ost) |
| void | dump_all (ostream &ost) |
| void | dump_trajectory (ostream &ost) |
| dpNode * | next_breadth (dpNode *refnode) |
| dpNode * | next_depth (dpNode *first_child=0) |
| int | open (int _max_nodes, int _max_goals) |
| void | remove () |
| void | remove_single () |
Virtual functions to be defined by subclass. | |
| virtual int | create_child_nodes (dpNode **&nodes)=0 |
| Create (potential) child nodes. More... | |
| virtual double | calc_cost ()=0 |
| Compute the local cost at the node. More... | |
| virtual double | calc_astar_cost (dpNode *potential_parent) |
| Compute the A-star cost at the node (optional). More... | |
| virtual int | same_state (dpNode *refnode)=0 |
Check if the node's state is the same as refnode. (to remove duplicates) More... | |
| virtual int | is_goal ()=0 |
| Check if the state is goal. More... | |
Protected Attributes | |
| int | active |
| double | astar_cost |
| dpNode * | brother |
| dpNode * | child |
| double | cost |
| int | depth |
| dpMain * | dp_main |
| int | id |
| dpNode * | parent |
| dpQueue * | queue |
| double | total_astar_cost |
| double | total_cost |
Friends | |
| class | dpMain |
| class | dpQueue |
|
inlineprotectedvirtual |
Compute the A-star cost at the node (optional).
Reimplemented in LCPNode, and dpScheduleNode.
|
protectedpure virtual |
Compute the local cost at the node.
Implemented in LCPNode, and dpScheduleNode.
Create (potential) child nodes.
Create (potential) child nodes.
| [out] | nodes | array of pointers to the child nodes |
Implemented in LCPNode, and dpScheduleNode.
|
inlineprotectedvirtual |
|
protectedpure virtual |
Check if the state is goal.
Implemented in LCPNode, and dpScheduleNode.
Check if the node's state is the same as refnode. (to remove duplicates)
Implemented in LCPNode, and dpScheduleNode.