org.optaplanner.examples.tsp.domain
Class Domicile
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.tsp.domain.Domicile
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, Standstill
public class Domicile
- extends AbstractPersistable
- implements Standstill
- See Also:
- Serialized Form
Domicile
public Domicile()
getLocation
public Location getLocation()
- Specified by:
getLocation
in interface Standstill
- Returns:
- never null
setLocation
public void setLocation(Location location)
getDistanceTo
public long getDistanceTo(Standstill standstill)
- Specified by:
getDistanceTo
in interface Standstill
- Parameters:
standstill
- never null
- Returns:
- a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.