org.optaplanner.examples.vehiclerouting.domain
public class VrpVehicle extends AbstractPersistable implements VrpStandstill
Modifier and Type | Field and Description |
---|---|
protected int |
capacity |
protected VrpDepot |
depot |
protected VrpCustomer |
nextCustomer |
id
Constructor and Description |
---|
VrpVehicle() |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity() |
VrpDepot |
getDepot() |
VrpLocation |
getLocation() |
VrpCustomer |
getNextCustomer() |
VrpVehicle |
getVehicle() |
void |
setCapacity(int capacity) |
void |
setDepot(VrpDepot depot) |
void |
setNextCustomer(VrpCustomer nextCustomer) |
String |
toString() |
compareTo, getId, setId
protected int capacity
protected VrpDepot depot
protected VrpCustomer nextCustomer
public int getCapacity()
public void setCapacity(int capacity)
public VrpDepot getDepot()
public void setDepot(VrpDepot depot)
public VrpCustomer getNextCustomer()
getNextCustomer
in interface VrpStandstill
public void setNextCustomer(VrpCustomer nextCustomer)
setNextCustomer
in interface VrpStandstill
public VrpVehicle getVehicle()
getVehicle
in interface VrpStandstill
public VrpLocation getLocation()
getLocation
in interface VrpStandstill
public String toString()
toString
in class AbstractPersistable
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.