All Superinterfaces:
HasId, HasIndex
All Known Implementing Classes:
AbstractJob, Break, Delivery, EnRouteDelivery, EnRoutePickup, Pickup, Service, Shipment

public interface Job extends HasId, HasIndex
Basic interface for all jobs.
Author:
schroeder
  • Method Details

    • getJobType

      default Job.Type getJobType()
    • isPickedUpAtVehicleStart

      default boolean isPickedUpAtVehicleStart()
      Indicates whether this job is picked up at the vehicle's start location. By default, only Delivery jobs are picked up at the vehicle's start location.
      Returns:
      true if job is picked up at vehicle start, false otherwise
    • isDeliveredToVehicleEnd

      default boolean isDeliveredToVehicleEnd()
      Indicates whether this job is delivered to the vehicle's end location. By default, only Pickup and Service jobs are delivered to the vehicle's end location.
      Returns:
      true if job is delivered to vehicle end, false otherwise
    • getId

      String getId()
      Returns the unique identifier (id) of a job.
      Specified by:
      getId in interface HasId
      Returns:
      id
    • getSize

      Capacity getSize()
      Returns size, i.e. capacity-demand, of this job which can consist of an arbitrary number of capacity dimensions.
      Returns:
      Capacity
    • getRequiredSkills

      Skills getRequiredSkills()
    • getName

      String getName()
      Returns name.
      Returns:
      name
    • getPriority

      int getPriority()
      Get priority of job. Only 1 (very high) to 10 (very low) are allowed.

      Default is 2.

      Returns:
      priority
    • getMaxTimeInVehicle

      double getMaxTimeInVehicle()
    • getActivities

      List<Activity> getActivities()