OptaPlanner distribution 6.2.1-SNAPSHOT

org.optaplanner.examples.vehiclerouting.domain
Class Depot

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
      extended by 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

Field Summary
protected  Location location
           
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Depot()
           
 
Method Summary
 int getDistanceTo(Standstill standstill)
           
 Location getLocation()
           
 void setLocation(Location location)
           
 
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
compareTo, getId, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

location

protected Location location
Constructor Detail

Depot

public Depot()
Method Detail

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

OptaPlanner distribution 6.2.1-SNAPSHOT

Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.