dip.world
Class Path.FAPEvaluator
java.lang.Object
dip.world.Path.FAPEvaluator
- Direct Known Subclasses:
- Path.ConvoyFAPEvaluator, Path.FleetFAPEvaluator
- Enclosing class:
- Path
- public static class Path.FAPEvaluator
- extends java.lang.Object
FAPEvaluator class. Determines if a Province should be added
to the tree of possible moves.
By default, this just returns true. When used with
findAllSeaPaths, this will return all possible
unique convoy paths from the source to the destination.
For example, if we wanted to know if a unit was present in
the province, we could test for it here in the evaluate()
method.
|
Method Summary |
boolean |
evaluate(Province province)
Evaluate if a Province should be added. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Path.FAPEvaluator
public Path.FAPEvaluator()
evaluate
public boolean evaluate(Province province)
- Evaluate if a Province should be added.
Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.