org.optaplanner.examples.vehiclerouting.domain
Class VrpVehicle
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.VrpVehicle
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, VrpStandstill
public class VrpVehicle
- extends AbstractPersistable
- implements VrpStandstill
- See Also:
- Serialized Form
capacity
protected int capacity
depot
protected VrpDepot depot
nextCustomer
protected VrpCustomer nextCustomer
VrpVehicle
public VrpVehicle()
getCapacity
public int getCapacity()
setCapacity
public void setCapacity(int capacity)
getDepot
public VrpDepot getDepot()
setDepot
public void setDepot(VrpDepot depot)
getNextCustomer
public VrpCustomer getNextCustomer()
- Specified by:
getNextCustomer
in interface VrpStandstill
- Returns:
- sometimes null
setNextCustomer
public void setNextCustomer(VrpCustomer nextCustomer)
- Specified by:
setNextCustomer
in interface VrpStandstill
getVehicle
public VrpVehicle getVehicle()
- Specified by:
getVehicle
in interface VrpStandstill
- Returns:
- sometimes null
getLocation
public VrpLocation getLocation()
- Specified by:
getLocation
in interface VrpStandstill
- Returns:
- never null
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.