dip.world
Class Path.FAPEvaluator

java.lang.Object
  extended bydip.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.


Constructor Summary
Path.FAPEvaluator()
           
 
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
 

Constructor Detail

Path.FAPEvaluator

public Path.FAPEvaluator()
Method Detail

evaluate

public boolean evaluate(Province province)
Evaluate if a Province should be added.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.