org.optaplanner.examples.vehiclerouting.domain
Class Depot
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Depot
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>
- Direct Known Subclasses:
- TimeWindowedDepot
public class Depot
- extends AbstractPersistable
- See Also:
- Serialized Form
Constructor Summary |
Depot()
|
location
protected Location location
Depot
public Depot()
getLocation
public Location getLocation()
setLocation
public void setLocation(Location location)
getDistanceTo
public int getDistanceTo(Standstill standstill)
- Parameters:
standstill
- never null
- Returns:
- a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.