Class ShipRoutePlanner.ShipCosts

  • All Implemented Interfaces:
    Enclosing class:

    protected static class ShipRoutePlanner.ShipCosts
    extends java.lang.Object
    implements RoutePlanner.Costs
    A cost function that accounts ship movement, considering harbours and the ship given in the constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void increase​(Region region, Region region2)
      Increase the costs after movement from region to region2.
      boolean isExhausted()
      Return true if enough movement for one week has been added.
      void reset()
      Set costs to zero, starting a new leg
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait