Class Vehicle
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistableJackson
-
- org.optaplanner.examples.vehiclerouting.domain.Vehicle
-
public class Vehicle extends AbstractPersistableJackson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCapacity()List<Customer>getCustomers()DepotgetDepot()LocationgetLocation()voidsetCapacity(int capacity)voidsetCustomers(List<Customer> customers)voidsetDepot(Depot depot)StringtoString()-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistableJackson
getId
-
-
-
-
Constructor Detail
-
Vehicle
public Vehicle()
-
Vehicle
public Vehicle(long id, int capacity, Depot depot)
-
-
Method Detail
-
getCapacity
public int getCapacity()
-
setCapacity
public void setCapacity(int capacity)
-
getDepot
public Depot getDepot()
-
setDepot
public void setDepot(Depot depot)
-
getLocation
public Location getLocation()
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistableJackson
-
-