Algorithm
Development Kit 1.0

algs.model.searchtree
Interface IMove

All Known Implementing Classes:
SlideMove, SlideMove

public interface IMove

A valid move in the Search Tree.

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

Method Summary
 boolean execute(INode state)
          Execute the move on the board state.
 boolean isValid(INode state)
          Determine if move is valid in the board state.
 boolean undo(INode state)
          Undo the move on the board state.
 

Method Detail

execute

boolean execute(INode state)
Execute the move on the board state.

Parameters:
state -

undo

boolean undo(INode state)
Undo the move on the board state.

Parameters:
state -

isValid

boolean isValid(INode state)
Determine if move is valid in the board state.

Parameters:
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.