public class Service extends AbstractJob
A service distinguishes itself from a shipment such that it has only one location. Thus a service is a single point in space (where a service-activity occurs).
Note that two services are equal if they have the same id.
| Modifier and Type | Class and Description |
|---|---|
static class |
Service.Builder<T extends Service>
Builder that builds a service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two services are equal if they have the same id.
|
String |
getId()
Returns the unique identifier (id) of a job.
|
Location |
getLocation()
Returns location.
|
String |
getName()
Returns name.
|
int |
getPriority()
Get priority of service.
|
Skills |
getRequiredSkills() |
double |
getServiceDuration()
Returns the service-time/duration a service takes at service-location.
|
Capacity |
getSize()
Returns size, i.e.
|
TimeWindow |
getTimeWindow()
Returns the time-window a service(-operation) is allowed to start.
|
Collection<TimeWindow> |
getTimeWindows() |
String |
getType() |
int |
hashCode() |
String |
toString()
Returns a string with the service's attributes.
|
getIndex, setIndexpublic Collection<TimeWindow> getTimeWindows()
public String getId()
Jobpublic Location getLocation()
public double getServiceDuration()
public TimeWindow getTimeWindow()
public String getType()
public String toString()
String is built as follows: [attr1=val1][attr2=val2]...
public boolean equals(Object obj)
public Capacity getSize()
Jobpublic Skills getRequiredSkills()
public int getPriority()
Default is 2 = medium.
Copyright © 2013–2016. All rights reserved.