util
Class NeighborhoodImpl
java.lang.Object
util.NeighborhoodImpl
- All Implemented Interfaces:
- Neighborhood
public class NeighborhoodImpl
- extends java.lang.Object
- implements Neighborhood
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NeighborhoodImpl
public NeighborhoodImpl(java.util.Collection<Vehicle> vehicles,
java.util.Collection<Service> services)
setThreshold
public void setThreshold(double threshold)
initialise
public void initialise()
areNeighbors
public boolean areNeighbors(java.lang.String location1,
java.lang.String location2)
- Specified by:
areNeighbors in interface Neighborhood
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object