Class Domicile
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.tsp.domain.Domicile
- All Implemented Interfaces:
Standstill
-
Field Summary
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetDistanceTo(Standstill standstill) voidsetLocation(Location location) toString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Constructor Details
-
Domicile
public Domicile() -
Domicile
public Domicile(long id) -
Domicile
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceStandstill- Returns:
- never null
-
setLocation
-
getDistanceTo
- Specified by:
getDistanceToin interfaceStandstill- Parameters:
standstill- never null- Returns:
- a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
-
toString
- Overrides:
toStringin classAbstractPersistable
-