Class Customer
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Customer
- All Implemented Interfaces:
LocationAware
- Direct Known Subclasses:
TimeWindowedCustomer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Locationprotected Customerprotected Customerprotected VehicleFields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlonglongvoidsetDemand(int demand) voidsetLocation(Location location) voidsetNextCustomer(Customer nextCustomer) voidsetPreviousCustomer(Customer previousCustomer) voidsetVehicle(Vehicle vehicle) toString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Field Details
-
location
-
demand
protected int demand -
vehicle
-
previousCustomer
-
nextCustomer
-
-
Constructor Details
-
Customer
public Customer() -
Customer
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceLocationAware
-
setLocation
-
getDemand
public int getDemand() -
setDemand
public void setDemand(int demand) -
getVehicle
-
setVehicle
-
getPreviousCustomer
-
setPreviousCustomer
-
getNextCustomer
-
setNextCustomer
-
getDistanceFromPreviousStandstill
public long getDistanceFromPreviousStandstill() -
getDistanceToDepot
public long getDistanceToDepot() -
toString
- Overrides:
toStringin classAbstractPersistable
-