org.optaplanner.examples.vehiclerouting.domain
public class VrpCustomer extends AbstractPersistable implements VrpStandstill
Modifier and Type | Field and Description |
---|---|
protected int |
demand |
protected VrpLocation |
location |
protected VrpCustomer |
nextCustomer |
protected VrpStandstill |
previousStandstill |
protected VrpVehicle |
vehicle |
id
Constructor and Description |
---|
VrpCustomer() |
Modifier and Type | Method and Description |
---|---|
int |
getDemand() |
int |
getDistanceTo(VrpStandstill standstill) |
int |
getDistanceToPreviousStandstill() |
VrpLocation |
getLocation() |
VrpCustomer |
getNextCustomer() |
VrpStandstill |
getPreviousStandstill() |
VrpVehicle |
getVehicle() |
void |
setDemand(int demand) |
void |
setLocation(VrpLocation location) |
void |
setNextCustomer(VrpCustomer nextCustomer) |
void |
setPreviousStandstill(VrpStandstill previousStandstill) |
void |
setVehicle(VrpVehicle 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 VrpLocation location
protected int demand
protected VrpStandstill previousStandstill
protected VrpCustomer nextCustomer
protected VrpVehicle vehicle
public VrpLocation getLocation()
getLocation
in interface VrpStandstill
public void setLocation(VrpLocation location)
public int getDemand()
public void setDemand(int demand)
public VrpStandstill getPreviousStandstill()
public void setPreviousStandstill(VrpStandstill previousStandstill)
public VrpCustomer getNextCustomer()
getNextCustomer
in interface VrpStandstill
public void setNextCustomer(VrpCustomer nextCustomer)
setNextCustomer
in interface VrpStandstill
public VrpVehicle getVehicle()
getVehicle
in interface VrpStandstill
public void setVehicle(VrpVehicle vehicle)
public int getDistanceToPreviousStandstill()
public int getDistanceTo(VrpStandstill standstill)
public 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-2013 JBoss by Red Hat. All Rights Reserved.