Class Depot

    • Field Detail

    • Constructor Detail

      • Depot

        public Depot()
      • Depot

        public Depot​(long id,
                     Location location)
    • Method Detail

      • getLocation

        public Location getLocation()
      • setLocation

        public void setLocation​(Location location)
      • getDistanceTo

        public long getDistanceTo​(Standstill standstill)
        Parameters:
        standstill - never null
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors