edu.kzoo.grid
Class Grid.UnboundedGridValidityChecker

java.lang.Object
  |
  +--edu.kzoo.grid.Grid.UnboundedGridValidityChecker
All Implemented Interfaces:
Grid.ValidityChecker
Enclosing class:
Grid

public static class Grid.UnboundedGridValidityChecker
extends java.lang.Object
implements Grid.ValidityChecker

An UnboundedGridValidityChecker implements a strategy for determining the validity of a location in an unbounded grid.


Constructor Summary
Grid.UnboundedGridValidityChecker()
           
 
Method Summary
 boolean isValid(Location loc)
          Verifies whether a location is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.UnboundedGridValidityChecker

public Grid.UnboundedGridValidityChecker()
Method Detail

isValid

public boolean isValid(Location loc)
Verifies whether a location is valid.

Specified by:
isValid in interface Grid.ValidityChecker
Parameters:
loc - location to check
Returns:
true if loc is valid; false otherwise