|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ai.search.Node
A node in a search problem.
Field Summary | |
java.lang.Object |
action
The domain action leading to the state. |
int |
depth
The depth of the node in the tree (root = 0). |
int |
fCost
gCost + hCost. |
int |
gCost
The path cost from root to node. |
int |
hCost
Estimated distance from state to goal. |
Node |
parent
The parent Node. |
java.lang.Object |
state
A state in the domain. |
java.util.Vector |
successors
A list of successor Nodes. |
Method Summary | |
java.util.Vector |
expand(Problem problem)
Generate a list of all the nodes that can be reached from a node. |
java.util.Vector |
solutionActions()
Generate a list of actions that reach a solution. |
java.util.Vector |
solutionNodes()
Generate a list of nodes that reach a solution. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Object state
public Node parent
public java.lang.Object action
public java.util.Vector successors
public int depth
public int gCost
public int hCost
public int fCost
Method Detail |
public java.util.Vector expand(Problem problem)
problem
- is a search problem
public java.util.Vector solutionActions()
public java.util.Vector solutionNodes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |