Class Vehicle
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Vehicle
- All Implemented Interfaces:
LocationAware
-
Field Summary
FieldsFields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDepot()voidsetCapacity(int capacity) voidsetCustomers(List<Customer> customers) voidtoString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Field Details
-
capacity
protected int capacity -
depot
-
customers
-
-
Constructor Details
-
Vehicle
public Vehicle() -
Vehicle
-
-
Method Details
-
getCapacity
public int getCapacity() -
setCapacity
public void setCapacity(int capacity) -
getDepot
-
setDepot
-
getCustomers
-
setCustomers
-
getLocation
- Specified by:
getLocationin interfaceLocationAware
-
toString
- Overrides:
toStringin classAbstractPersistable
-