Version: 8.3.0
YACS::HMI::LCostNode Class Reference

#include <LinkAStar.hxx>

Collaboration diagram for YACS::HMI::LCostNode:

Public Member Functions

 LCostNode ()
 
 LCostNode (std::pair< int, int > parent)
 
virtual ~LCostNode ()
 
void setParent (std::pair< int, int > parent)
 
std::pair< int, int > getParent () const
 
void setGCost (double c)
 
void setHCost (double c)
 
void setFCost (double c)
 
double getGCost () const
 
double getHCost () const
 
double getFCost () const
 

Protected Attributes

double _gCost
 
double _hCost
 
double _fCost
 
std::pair< int, int > _parent
 

Detailed Description

Definition at line 36 of file LinkAStar.hxx.

Constructor & Destructor Documentation

LCostNode::LCostNode ( )

Definition at line 33 of file LinkAStar.cxx.

33  : _gCost(0), _hCost(0), _fCost(0),
34  _parent( std::pair<int,int>(0,0) )
35 {
36  //DEBTRACE("LCostNode::LCostNode()");
37 }
LCostNode::LCostNode ( std::pair< int, int >  parent)

Definition at line 39 of file LinkAStar.cxx.

39  : _gCost(0), _hCost(0), _fCost(0),
40  _parent(parent)
41 {
42  //DEBTRACE("LCostNode::LCostNode(std::pair<int,int> parent)");
43 }
virtual YACS::HMI::LCostNode::~LCostNode ( )
inlinevirtual

Definition at line 41 of file LinkAStar.hxx.

41 {};

Member Function Documentation

double YACS::HMI::LCostNode::getFCost ( ) const
inline

Definition at line 49 of file LinkAStar.hxx.

References _fCost.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

49 { return _fCost; };
double YACS::HMI::LCostNode::getGCost ( ) const
inline

Definition at line 47 of file LinkAStar.hxx.

References _gCost.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

47 { return _gCost; };
double YACS::HMI::LCostNode::getHCost ( ) const
inline

Definition at line 48 of file LinkAStar.hxx.

References _hCost.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

48 { return _hCost; };
std::pair<int,int> YACS::HMI::LCostNode::getParent ( ) const
inline

Definition at line 43 of file LinkAStar.hxx.

References _parent.

43 {return _parent; };
void YACS::HMI::LCostNode::setFCost ( double  c)
inline

Definition at line 46 of file LinkAStar.hxx.

References _fCost, and gui.CONNECTOR::c.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

46 { _fCost = c; };
void YACS::HMI::LCostNode::setGCost ( double  c)
inline

Definition at line 44 of file LinkAStar.hxx.

References _gCost, and gui.CONNECTOR::c.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

44 { _gCost = c; };
void YACS::HMI::LCostNode::setHCost ( double  c)
inline

Definition at line 45 of file LinkAStar.hxx.

References _hCost, and gui.CONNECTOR::c.

Referenced by YACS::HMI::LinkAStar::addNeighbours().

45 { _hCost = c; };
void YACS::HMI::LCostNode::setParent ( std::pair< int, int >  parent)
inline

Definition at line 42 of file LinkAStar.hxx.

References _parent.

42 { _parent = parent; };

Member Data Documentation

double YACS::HMI::LCostNode::_fCost
protected

Definition at line 49 of file LinkAStar.hxx.

Referenced by getFCost(), and setFCost().

double YACS::HMI::LCostNode::_gCost
protected

Definition at line 49 of file LinkAStar.hxx.

Referenced by getGCost(), and setGCost().

double YACS::HMI::LCostNode::_hCost
protected

Definition at line 49 of file LinkAStar.hxx.

Referenced by getHCost(), and setHCost().

std::pair<int,int> YACS::HMI::LCostNode::_parent
protected

Definition at line 52 of file LinkAStar.hxx.

Referenced by getParent(), and setParent().


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