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

public final class Start extends AbstractActivity implements TourActivity
  • Field Details

  • Constructor Details

    • Start

      public Start(Location location, double theoreticalStart, double theoreticalEnd)
  • Method Details

    • newInstance

      public static Start newInstance(String locationId, double theoreticalStart, double theoreticalEnd)
    • copyOf

      public static Start copyOf(Start start)
    • 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
    • setLocation

      public void setLocation(Location location)
    • 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
    • setTheoreticalEarliestOperationStartTime

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

      public void setTheoreticalLatestOperationStartTime(double time)
      Specified by:
      setTheoreticalLatestOperationStartTime in interface TourActivity
    • getLocation

      public Location getLocation()
      Description copied from interface: TourActivity
      Returns location.
      Specified by:
      getLocation in interface TourActivity
      Returns:
      location
    • 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
    • toString

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

      public String getName()
      Description copied from interface: TourActivity
      Returns the name of this activity.
      Specified by:
      getName in interface TourActivity
      Returns:
      name
    • 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
    • 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