search
Class Node

java.lang.Object
  extended by search.Node

public class Node
extends java.lang.Object

Note: direct access to instance variables is deprecated. Use get/set methods.


Field Summary
 double cost
           
 Actions path
           
 State state
           
 double utility
           
 
Constructor Summary
Node(State state)
           
Node(State state, Actions path)
           
Node(State state, Actions path, double cost, double utility)
           
 
Method Summary
 java.lang.Object clone()
           
 double getCost()
           
 Actions getPath()
           
 State getState()
           
 double getUtility()
           
 void setCost(double cost)
           
 void setPath(Actions path)
           
 void setState(State state)
           
 void setUtility(double utility)
           
 void update(Action action)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public State state

path

public Actions path

cost

public double cost

utility

public double utility
Constructor Detail

Node

public Node(State state)

Node

public Node(State state,
            Actions path)

Node

public Node(State state,
            Actions path,
            double cost,
            double utility)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

update

public void update(Action action)

getState

public State getState()

setState

public void setState(State state)

getPath

public Actions getPath()

setPath

public void setPath(Actions path)

getCost

public double getCost()

setCost

public void setCost(double cost)

getUtility

public double getUtility()

setUtility

public void setUtility(double utility)