org.drools.planner.examples.vehiclerouting.domain
Class VrpLocation
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.vehiclerouting.domain.VrpLocation
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>
public class VrpLocation
- extends AbstractPersistable
- See Also:
- Serialized Form
VrpLocation
public VrpLocation()
getName
public String getName()
setName
public void setName(String name)
getLatitude
public double getLatitude()
setLatitude
public void setLatitude(double latitude)
getLongitude
public double getLongitude()
setLongitude
public void setLongitude(double longitude)
getDistance
public int getDistance(VrpLocation location)
- The distance is not in miles or km, but in the TSPLIB's unit of measurement.
- Parameters:
location
- never null
- Returns:
- a positive number
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
getSafeName
public String getSafeName()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.