org.drools.planner.examples.tsp.domain
Class City
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.tsp.domain.City
- All Implemented Interfaces:
- Serializable, Comparable<City>
public class City
- extends AbstractPersistable
- implements Comparable<City>
- See Also:
- Serialized Form
|
Constructor Summary |
City()
|
City
public City()
getLatitude
public double getLatitude()
setLatitude
public void setLatitude(double latitude)
getLongitude
public double getLongitude()
setLongitude
public void setLongitude(double longitude)
getDistance
public int getDistance(City city)
compareTo
public int compareTo(City other)
- Specified by:
compareTo in interface Comparable<City>
toString
public String toString()
- Overrides:
toString in class AbstractPersistable
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.