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, setId
protected 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 Standstill
public void setNextCustomer(Customer nextCustomer)
setNextCustomer
in interface Standstill
public Vehicle getVehicle()
getVehicle
in interface Standstill
public Location getLocation()
getLocation
in interface Standstill
public long getDistanceTo(Standstill standstill)
standstill
- never nullpublic String toString()
toString
in class AbstractPersistable
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.