Class PlanningVehicle
- java.lang.Object
-
- org.optaweb.vehiclerouting.plugin.planner.domain.PlanningVehicle
-
- All Implemented Interfaces:
Standstill
public class PlanningVehicle extends Object implements Standstill
-
-
Constructor Summary
Constructors Constructor Description PlanningVehicle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCapacity()PlanningDepotgetDepot()Iterable<PlanningVisit>getFutureVisits()longgetId()PlanningLocationgetLocation()The standstill's location.PlanningVisitgetNextVisit()The next visit after this standstill.voidsetCapacity(int capacity)voidsetDepot(PlanningDepot depot)voidsetId(long id)voidsetNextVisit(PlanningVisit nextVisit)StringtoString()
-
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getCapacity
public int getCapacity()
-
setCapacity
public void setCapacity(int capacity)
-
getDepot
public PlanningDepot getDepot()
-
setDepot
public void setDepot(PlanningDepot depot)
-
getNextVisit
public PlanningVisit getNextVisit()
Description copied from interface:StandstillThe next visit after this standstill.- Specified by:
getNextVisitin interfaceStandstill- Returns:
- sometimes
null
-
setNextVisit
public void setNextVisit(PlanningVisit nextVisit)
- Specified by:
setNextVisitin interfaceStandstill
-
getFutureVisits
public Iterable<PlanningVisit> getFutureVisits()
-
getLocation
public PlanningLocation getLocation()
Description copied from interface:StandstillThe standstill's location.- Specified by:
getLocationin interfaceStandstill- Returns:
- never
null
-
-