Package worldBuilder

Class Journey.NextSteps

  • Enclosing class:
    Journey

    public class Journey.NextSteps
    extends java.lang.Object
    this is a (lowest) cost-ordered queue of possible next steps in our outward journeys. Processing steps in this order enables us to find the lowest cost routes and crossings.
    • Constructor Summary

      Constructors 
      Constructor Description
      NextSteps()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Journey step)
      add another possible step to the queue of options
      Journey next()  
      • Methods inherited from class java.lang.Object

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

      • NextSteps

        public NextSteps()
    • Method Detail

      • next

        public Journey next()
        Returns:
        the next (lowest cost) Journey step from the queue
      • add

        public void add​(Journey step)
        add another possible step to the queue of options
        Parameters:
        step - Journey to be added to the queue