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() |
Location |
getLocation() |
int |
getMilliDistanceTo(Standstill standstill) |
int |
getMilliDistanceToPreviousStandstill() |
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) |
boolean |
solutionEquals(Object o)
The normal methods
Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already
requires them (for performance in their original state). |
int |
solutionHashCode()
The normal methods
Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already
requires them (for performance in their original state). |
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 int getMilliDistanceToPreviousStandstill()
public int getMilliDistanceTo(Standstill standstill)
standstill
- never nullpublic boolean solutionEquals(Object o)
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).solutionHashCode()
public int solutionHashCode()
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).solutionEquals(Object)
public String toString()
toString
in class AbstractPersistable
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.