aima.search.framework
Class Node
java.lang.Object
aima.search.framework.Node
public class Node
- extends java.lang.Object
Constructor Summary |
Node(Node parent,
java.lang.Object state)
|
Node(java.lang.Object state)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Node
public Node(java.lang.Object state)
Node
public Node(Node parent,
java.lang.Object state)
getDepth
public int getDepth()
isRootNode
public boolean isRootNode()
getParent
public Node getParent()
getPathFromRoot
public java.util.List<Node> getPathFromRoot()
getState
public java.lang.Object getState()
setAction
public void setAction(java.lang.String action)
getAction
public java.lang.String getAction()
setStepCost
public void setStepCost(java.lang.Double stepCost)
addToPathCost
public void addToPathCost(java.lang.Double stepCost)
getPathCost
public double getPathCost()
- Returns:
- Returns the pathCost.
getStepCost
public double getStepCost()
- Returns:
- Returns the stepCost.