Algorithm
Development Kit 1.0

algs.model.searchtree
Class Transition

java.lang.Object
  extended by algs.model.searchtree.Transition
Direct Known Subclasses:
DepthTransition

public class Transition
extends java.lang.Object

Stores the move and the previous state that was present when the move was made.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Field Summary
 IMove move
          The move which caused the board state transition.
 INode prev
          The previous board state.
 
Constructor Summary
Transition(IMove move, INode prev)
          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

move

public final IMove move
The move which caused the board state transition.


prev

public final INode prev
The previous board state.

Constructor Detail

Transition

public Transition(IMove move,
                  INode prev)
Record the move and previous state of this transition.

Parameters:
move - Move which caused the transition
prev - The previous board state

Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.