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() |
Vehicle(long id,
int capacity,
Depot depot) |
| 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() |
getId, setIdprotected int capacity
protected Depot depot
protected Customer nextCustomer
public Vehicle()
public Vehicle(long id,
int capacity,
Depot depot)
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–2021 JBoss by Red Hat. All rights reserved.