Class PlanningVisit

    • Constructor Detail

      • PlanningVisit

        PlanningVisit()
    • Method Detail

      • getId

        public long getId()
      • setId

        public void setId​(long id)
      • getDemand

        public int getDemand()
      • setDemand

        public void setDemand​(int demand)
      • getPreviousStandstill

        public Standstill getPreviousStandstill()
      • setPreviousStandstill

        public void setPreviousStandstill​(Standstill previousStandstill)
      • distanceFromPreviousStandstill

        public long distanceFromPreviousStandstill()
        Distance from the previous standstill to this visit. This is used to calculate the travel cost of a chain beginning with a vehicle (at a depot) and ending with the last visit. The chain ends with a visit, not a depot so the cost of returning from the last visit back to the depot has to be added in a separate step using distanceToDepot().
        Returns:
        distance from previous standstill to this visit
      • distanceToDepot

        public long distanceToDepot()
        Distance from this visit back to the depot.
        Returns:
        distance from this visit back its vehicle's depot
      • isLast

        public boolean isLast()
        Whether this visit is the last in a chain.
        Returns:
        true, if this visit has no next visit