Class Customer

    • Field Detail

      • demand

        protected int demand
      • previousStandstill

        protected Standstill previousStandstill
      • nextCustomer

        protected Customer nextCustomer
      • vehicle

        protected Vehicle vehicle
    • Constructor Detail

      • Customer

        public Customer()
      • Customer

        public Customer​(long id,
                        Location location,
                        int demand)
    • Method Detail

      • setLocation

        public void setLocation​(Location location)
      • getDemand

        public int getDemand()
      • setDemand

        public void setDemand​(int demand)
      • getPreviousStandstill

        public Standstill getPreviousStandstill()
      • setPreviousStandstill

        public void setPreviousStandstill​(Standstill previousStandstill)
      • setVehicle

        public void setVehicle​(Vehicle vehicle)
      • getDistanceFromPreviousStandstill

        public long getDistanceFromPreviousStandstill()
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
      • getDistanceFrom

        public long getDistanceFrom​(Standstill standstill)
        Parameters:
        standstill - never null
        Returns:
        a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
      • 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