Package megamek.common.pathfinder
Class ShortestPathFinder.AeroMovePathRelaxer
java.lang.Object
megamek.common.pathfinder.ShortestPathFinder.AeroMovePathRelaxer
- All Implemented Interfaces:
AbstractPathFinder.EdgeRelaxer<MovePath,
MovePath>
- Enclosing class:
- ShortestPathFinder
public static class ShortestPathFinder.AeroMovePathRelaxer
extends Object
implements AbstractPathFinder.EdgeRelaxer<MovePath,MovePath>
Relaxes edge based on the supplied comparator, with special
considerations for flying off the map (since this will likely always look
back to the comparator).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AeroMovePathRelaxer
public AeroMovePathRelaxer()
-
-
Method Details
-
doRelax
Description copied from interface:AbstractPathFinder.EdgeRelaxer
Relaxes an edge.- Specified by:
doRelax
in interfaceAbstractPathFinder.EdgeRelaxer<MovePath,
MovePath> - Parameters:
v
- best value till now. Might be null.e
- candidate for the new best valuecomparator
- edge comparator- Returns:
- new best value or null if no relaxation happened
-