#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. | |
| virtual double | calc_cost ()=0 |
| Compute the local cost at the node. | |
| virtual double | calc_astar_cost (dpNode *potential_parent) |
| Compute the A-star cost at the node (optional). | |
| virtual int | same_state (dpNode *refnode)=0 |
Check if the node's state is the same as refnode. (to remove duplicates) | |
| virtual int | is_goal ()=0 |
| Check if the state is goal. | |
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 |
| dpNode::dpNode | ( | ) | [inline] |
| virtual dpNode::~dpNode | ( | ) | [inline, virtual] |
| void dpNode::add_child | ( | dpNode * | n | ) | [protected] |
| double dpNode::AstarCost | ( | ) | [inline] |
| dpNode* dpNode::Brother | ( | ) | [inline] |
| virtual double dpNode::calc_astar_cost | ( | dpNode * | potential_parent | ) | [inline, protected, virtual] |
Compute the A-star cost at the node (optional).
Reimplemented in LCPNode, and dpScheduleNode.
| virtual double dpNode::calc_cost | ( | ) | [protected, pure virtual] |
Compute the local cost at the node.
Implemented in LCPNode, and dpScheduleNode.
| dpNode* dpNode::Child | ( | ) | [inline] |
| double dpNode::Cost | ( | ) | [inline] |
| virtual int dpNode::create_child_nodes | ( | dpNode **& | nodes | ) | [protected, pure virtual] |
Create (potential) child nodes.
Create (potential) child nodes.
| [out] | nodes | array of pointers to the child nodes |
Implemented in LCPNode, and dpScheduleNode.
| int dpNode::Depth | ( | dpNode * | target_p = 0 | ) | [inline] |
| virtual void dpNode::dump | ( | ostream & | ost | ) | [inline, protected, virtual] |
| void dpNode::dump_all | ( | ostream & | ost | ) | [inline, protected] |
| void dpNode::dump_trajectory | ( | ostream & | ost | ) | [inline, protected] |
| dpNode* dpNode::GetParent | ( | int | id | ) | [inline] |
| int dpNode::ID | ( | ) | [inline] |
| virtual int dpNode::is_goal | ( | ) | [protected, pure virtual] |
Check if the state is goal.
Implemented in LCPNode, and dpScheduleNode.
| dpNode* dpNode::next_breadth | ( | dpNode * | refnode | ) | [inline, protected] |
| dpNode* dpNode::next_depth | ( | dpNode * | first_child = 0 | ) | [inline, protected] |
| int dpNode::open | ( | int | _max_nodes, |
| int | _max_goals | ||
| ) | [protected] |
| dpNode* dpNode::Parent | ( | ) | [inline] |
| dpQueue* dpNode::Queue | ( | ) | [inline] |
| void dpNode::remove | ( | ) | [protected] |
| void dpNode::remove_single | ( | ) | [protected] |
| virtual int dpNode::same_state | ( | dpNode * | refnode | ) | [protected, pure virtual] |
Check if the node's state is the same as refnode. (to remove duplicates)
Implemented in LCPNode, and dpScheduleNode.
| double dpNode::TotalAstarCost | ( | ) | [inline] |
| double dpNode::TotalCost | ( | ) | [inline] |
int dpNode::active [protected] |
double dpNode::astar_cost [protected] |
dpNode* dpNode::brother [protected] |
dpNode* dpNode::child [protected] |
double dpNode::cost [protected] |
int dpNode::depth [protected] |
dpMain* dpNode::dp_main [protected] |
int dpNode::id [protected] |
dpNode* dpNode::parent [protected] |
dpQueue* dpNode::queue [protected] |
double dpNode::total_astar_cost [protected] |
double dpNode::total_cost [protected] |