Package worldBuilder

Class TradeRoute


  • public class TradeRoute
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TradeRoute​(int[] steps, int numsteps, double cost)
      create a Route where the path and cost are known
      TradeRoute​(Journey one, Journey other)
      create a new TradeRoute between two outgoing paths
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TradeRoute

        public TradeRoute​(Journey one,
                          Journey other)
        create a new TradeRoute between two outgoing paths
        Parameters:
        one - the path that tried to expand
        other - the (already claimed) neighbor it encountered
      • TradeRoute

        public TradeRoute​(int[] steps,
                          int numsteps,
                          double cost)
        create a Route where the path and cost are known
        Parameters:
        steps - array of steps
        numsteps - number of steps in array
        cost - cost (in days) of this route