All Superinterfaces:
HasIndex
All Known Subinterfaces:
DeliveryActivity, PickupActivity, TourActivity.JobActivity
All Known Implementing Classes:
AbstractActivity, ActWithoutStaticLocation, BreakActivity, DeliverService, DeliverShipment, End, EnRouteDeliveryActivity, EnRoutePickupActivity, PickupService, PickupShipment, ServiceActivity, Start

public interface TourActivity extends HasIndex
Basic interface for tour-activities.

A tour activity is the basic element of a tour, which is consequently a sequence of tour-activities.

Author:
schroeder
  • Method Details

    • setTheoreticalEarliestOperationStartTime

      void setTheoreticalEarliestOperationStartTime(double earliest)
    • setTheoreticalLatestOperationStartTime

      void setTheoreticalLatestOperationStartTime(double latest)
    • getName

      String getName()
      Returns the name of this activity.
      Returns:
      name
    • getLocation

      Location getLocation()
      Returns location.
      Returns:
      location
    • getTheoreticalEarliestOperationStartTime

      double getTheoreticalEarliestOperationStartTime()
      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().
      Returns:
      earliest start time
    • getTheoreticalLatestOperationStartTime

      double getTheoreticalLatestOperationStartTime()
      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().
      Returns:
      latest start time
    • getOperationTime

      double getOperationTime()
      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().

      Returns:
      operation time
    • getArrTime

      double getArrTime()
      Returns the arrival-time of this activity.
      Returns:
      arrival time
    • getEndTime

      double getEndTime()
      Returns end-time of this activity.
      Returns:
      end time
    • setArrTime

      void setArrTime(double arrTime)
      Sets the arrival time of that activity.
      Parameters:
      arrTime -
    • setEndTime

      void setEndTime(double endTime)
      Sets the end-time of this activity.
      Parameters:
      endTime -
    • getSize

      Capacity getSize()
      Returns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at this activity.
      Returns:
      capacity
    • duplicate

      TourActivity duplicate()
      Makes a deep copy of this activity.
      Returns:
      copied activity