edu.kzoo.grid
Interface Grid.ValidityChecker
- All Known Implementing Classes:
- Grid.BoundedGridValidityChecker, Grid.UnboundedGridValidityChecker
- Enclosing interface:
- Grid
- public static interface Grid.ValidityChecker
A ValidityChecker
specifies a strategy for determining
the validity of a location in a grid. Known implementing classes
include BoundedGridValidityChecker
and
UnboundedGridValidityChecker
.
Method Summary |
boolean |
isValid(Location loc)
Verifies whether a location is valid. |
isValid
public boolean isValid(Location loc)
- Verifies whether a location is valid.
- Parameters:
loc
- location to check
- Returns:
true
if loc
is valid;
false
otherwise