public class Customer extends AbstractPersistable implements Standstill
Modifier and Type | Field and Description |
---|---|
protected int |
demand |
protected Location |
location |
protected Customer |
nextCustomer |
protected Standstill |
previousStandstill |
protected Vehicle |
vehicle |
id
Constructor and Description |
---|
Customer() |
Modifier and Type | Method and Description |
---|---|
int |
getDemand() |
long |
getDistanceFrom(Standstill standstill) |
long |
getDistanceFromPreviousStandstill() |
long |
getDistanceTo(Standstill standstill) |
Location |
getLocation() |
Customer |
getNextCustomer() |
Standstill |
getPreviousStandstill() |
Vehicle |
getVehicle() |
void |
setDemand(int demand) |
void |
setLocation(Location location) |
void |
setNextCustomer(Customer nextCustomer) |
void |
setPreviousStandstill(Standstill previousStandstill) |
void |
setVehicle(Vehicle vehicle) |
String |
toString() |
compareTo, getId, setId
protected Location location
protected int demand
protected Standstill previousStandstill
protected Customer nextCustomer
protected Vehicle vehicle
public Location getLocation()
getLocation
in interface Standstill
public void setLocation(Location location)
public int getDemand()
public void setDemand(int demand)
public Standstill getPreviousStandstill()
public void setPreviousStandstill(Standstill previousStandstill)
public Customer getNextCustomer()
getNextCustomer
in interface Standstill
public void setNextCustomer(Customer nextCustomer)
setNextCustomer
in interface Standstill
public Vehicle getVehicle()
getVehicle
in interface Standstill
public void setVehicle(Vehicle vehicle)
public long getDistanceFromPreviousStandstill()
public long getDistanceFrom(Standstill standstill)
standstill
- never nullpublic long getDistanceTo(Standstill standstill)
standstill
- never nullpublic String toString()
toString
in class AbstractPersistable
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.