java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractActivity
com.graphhopper.jsprit.core.problem.solution.route.activity.DeliverShipment
All Implemented Interfaces:
HasIndex, DeliveryActivity, TourActivity, TourActivity.JobActivity

public final class DeliverShipment extends AbstractActivity implements DeliveryActivity
  • Constructor Details

    • DeliverShipment

      public DeliverShipment(Shipment shipment)
  • Method Details

    • getJob

      public Job getJob()
      Description copied from interface: TourActivity.JobActivity
      Returns the job that is involved with this activity.
      Specified by:
      getJob in interface TourActivity.JobActivity
      Returns:
      job
    • setTheoreticalEarliestOperationStartTime

      public void setTheoreticalEarliestOperationStartTime(double earliest)
      Specified by:
      setTheoreticalEarliestOperationStartTime in interface TourActivity
    • setTheoreticalLatestOperationStartTime

      public void setTheoreticalLatestOperationStartTime(double latest)
      Specified by:
      setTheoreticalLatestOperationStartTime in interface TourActivity
    • getName

      public String getName()
      Description copied from interface: TourActivity
      Returns the name of this activity.
      Specified by:
      getName in interface TourActivity
      Returns:
      name
    • getLocation

      public Location getLocation()
      Description copied from interface: TourActivity
      Returns location.
      Specified by:
      getLocation in interface TourActivity
      Returns:
      location
    • getTheoreticalEarliestOperationStartTime

      public double getTheoreticalEarliestOperationStartTime()
      Description copied from interface: TourActivity
      Returns the theoretical earliest operation start time, which is the time that is just allowed (not earlier) to start this activity, that is for example service.getTimeWindow().getStart().
      Specified by:
      getTheoreticalEarliestOperationStartTime in interface TourActivity
      Returns:
      earliest start time
    • getTheoreticalLatestOperationStartTime

      public double getTheoreticalLatestOperationStartTime()
      Description copied from interface: TourActivity
      Returns the theoretical latest operation start time, which is the time that is just allowed (not later) to start this activity, that is for example service.getTimeWindow().getEnd().
      Specified by:
      getTheoreticalLatestOperationStartTime in interface TourActivity
      Returns:
      latest start time
    • getOperationTime

      public double getOperationTime()
      Description copied from interface: TourActivity
      Returns the operation-time this activity takes.

      Note that this is not necessarily the duration of this activity, but the service time a pickup/delivery actually takes, that is for example service.getServiceTime().

      Specified by:
      getOperationTime in interface TourActivity
      Returns:
      operation time
    • getArrTime

      public double getArrTime()
      Description copied from interface: TourActivity
      Returns the arrival-time of this activity.
      Specified by:
      getArrTime in interface TourActivity
      Returns:
      arrival time
    • getEndTime

      public double getEndTime()
      Description copied from interface: TourActivity
      Returns end-time of this activity.
      Specified by:
      getEndTime in interface TourActivity
      Returns:
      end time
    • setArrTime

      public void setArrTime(double arrTime)
      Description copied from interface: TourActivity
      Sets the arrival time of that activity.
      Specified by:
      setArrTime in interface TourActivity
      Parameters:
      arrTime -
    • setEndTime

      public void setEndTime(double endTime)
      Description copied from interface: TourActivity
      Sets the end-time of this activity.
      Specified by:
      setEndTime in interface TourActivity
      Parameters:
      endTime -
    • duplicate

      public TourActivity duplicate()
      Description copied from interface: TourActivity
      Makes a deep copy of this activity.
      Specified by:
      duplicate in interface TourActivity
      Returns:
      copied activity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSize

      public Capacity getSize()
      Description copied from interface: TourActivity
      Returns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at this activity.
      Specified by:
      getSize in interface TourActivity
      Returns:
      capacity