|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.searchtree.Transition
algs.model.searchtree.DepthTransition
public class DepthTransition
Records the depth of the transition between board states.
Used by DepthFirstSearch when deciding whether to advance a board state.
| Field Summary | |
|---|---|
int |
depth
Depth away from the initial board state. |
| Fields inherited from class algs.model.searchtree.Transition |
|---|
move, prev |
| Constructor Summary | |
|---|---|
DepthTransition(IMove move,
INode prev,
int depth)
Record the move and previous state of this transition. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int depth
| Constructor Detail |
|---|
public DepthTransition(IMove move,
INode prev,
int depth)
Since this is a depth transition, also record the depth.
move - Move which caused the transitionprev - The previous board statedepth - The distance from the initial board state
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||