public class Vehicle extends AbstractPersistable implements Standstill
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
protected Depot |
depot |
protected Customer |
nextCustomer |
id| Constructor and Description |
|---|
Vehicle() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity() |
Depot |
getDepot() |
long |
getDistanceTo(Standstill standstill) |
Location |
getLocation() |
Customer |
getNextCustomer() |
Vehicle |
getVehicle() |
void |
setCapacity(int capacity) |
void |
setDepot(Depot depot) |
void |
setNextCustomer(Customer nextCustomer) |
String |
toString() |
compareTo, getId, setIdprotected int capacity
protected Depot depot
protected Customer nextCustomer
public int getCapacity()
public void setCapacity(int capacity)
public Depot getDepot()
public void setDepot(Depot depot)
public Customer getNextCustomer()
getNextCustomer in interface Standstillpublic void setNextCustomer(Customer nextCustomer)
setNextCustomer in interface Standstillpublic Vehicle getVehicle()
getVehicle in interface Standstillpublic Location getLocation()
getLocation in interface Standstillpublic long getDistanceTo(Standstill standstill)
standstill - never nullpublic String toString()
toString in class AbstractPersistableCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.