org.drools.planner.examples.tsp.domain
Class City

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

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
City()
           
 
Method Summary
 int compareTo(City other)
           
 double getDistance(City city)
           
 double getX()
           
 double getY()
           
 void setX(double x)
           
 void setY(double y)
           
 String toString()
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

City

public City()
Method Detail

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getDistance

public double 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-2011 JBoss Inc.. All Rights Reserved.