Interface Job
- All Known Implementing Classes:
AbstractJob,Break,Delivery,EnRouteDelivery,EnRoutePickup,Pickup,Service,Shipment
Basic interface for all jobs.
- Author:
- schroeder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the unique identifier (id) of a job.default Job.TypedoublegetName()Returns name.intGet priority of job.getSize()Returns size, i.e.default booleanIndicates whether this job is delivered to the vehicle's end location.default booleanIndicates whether this job is picked up at the vehicle's start location.
-
Method Details
-
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. -
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
-