Symphony 1.0
Loading...
Searching...
No Matches
Node Class Reference

#include <search.h>

Collaboration diagram for Node:

Public Member Functions

 Node ()
 
 Node (std::shared_ptr< Node > parent, std::shared_ptr< State > state, const std::shared_ptr< Action > action, double path_cost, double heuristic)
 

Public Attributes

std::shared_ptr< Nodeparent
 
std::shared_ptr< Statestate
 
const std::shared_ptr< Actionaction
 
double path_cost
 
double heuristic
 

Detailed Description

Definition at line 17 of file search.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

Node::Node ( )
inline

Definition at line 33 of file search.h.

33: action(nullptr), path_cost(0), heuristic(0) {}
double path_cost
Definition search.h:28
double heuristic
Definition search.h:29
const std::shared_ptr< Action > action
Definition search.h:27

◆ Node() [2/2]

Node::Node ( std::shared_ptr< Node parent,
std::shared_ptr< State state,
const std::shared_ptr< Action action,
double  path_cost,
double  heuristic 
)
inline

Definition at line 36 of file search.h.

std::shared_ptr< Node > parent
Definition search.h:21
std::shared_ptr< State > state
Definition search.h:24

Member Data Documentation

◆ action

const std::shared_ptr<Action> Node::action

Definition at line 27 of file search.h.

Referenced by Solution::print().

◆ heuristic

double Node::heuristic

Definition at line 29 of file search.h.

◆ parent

std::shared_ptr<Node> Node::parent

Definition at line 21 of file search.h.

Referenced by Solution::print().

◆ path_cost

double Node::path_cost

Definition at line 28 of file search.h.

◆ state

std::shared_ptr<State> Node::state

Definition at line 24 of file search.h.


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