com.croftsoft.core.ai.astar
Class NodeInfo

java.lang.Object
  extended by com.croftsoft.core.ai.astar.NodeInfo
All Implemented Interfaces:
Comparable

public final class NodeInfo
extends Object
implements Comparable

A* algorithm node information.

Since:
2002-04-21
Version:
2003-05-09
Author:
David Wallace Croft

Constructor Summary
NodeInfo(Object node)
           
 
Method Summary
 int compareTo(Object other)
           
 double getCostFromStart()
           
 Object getNode()
           
 NodeInfo getParentNodeInfo()
           
 double getTotalCost()
           
 void setCostFromStart(double costFromStart)
           
 void setParentNodeInfo(NodeInfo parentNodeInfo)
           
 void setTotalCost(double totalCost)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInfo

public NodeInfo(Object node)
Method Detail

getCostFromStart

public double getCostFromStart()

getNode

public Object getNode()

getParentNodeInfo

public NodeInfo getParentNodeInfo()

getTotalCost

public double getTotalCost()

setCostFromStart

public void setCostFromStart(double costFromStart)

setParentNodeInfo

public void setParentNodeInfo(NodeInfo parentNodeInfo)

setTotalCost

public void setTotalCost(double totalCost)

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)