org.drools.planner.examples.vehiclerouting.domain
Class VrpCustomer
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.vehiclerouting.domain.VrpCustomer
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, VrpAppearance
public class VrpCustomer
- extends AbstractPersistable
- implements VrpAppearance
- See Also:
- Serialized Form
VrpCustomer
public VrpCustomer()
getLocation
public VrpLocation getLocation()
- Specified by:
getLocation
in interface VrpAppearance
- Returns:
- never null
setLocation
public void setLocation(VrpLocation location)
getDemand
public int getDemand()
setDemand
public void setDemand(int demand)
getPreviousAppearance
public VrpAppearance getPreviousAppearance()
setPreviousAppearance
public void setPreviousAppearance(VrpAppearance previousAppearance)
getVehicle
public VrpVehicle getVehicle()
getDistanceToPreviousAppearance
public int getDistanceToPreviousAppearance()
getDistanceTo
public int getDistanceTo(VrpAppearance appearance)
solutionEquals
public 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).
- See Also:
solutionHashCode()
solutionHashCode
public 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).
- See Also:
solutionEquals(Object)
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.