util
Class NeighborhoodImpl

java.lang.Object
  extended by util.NeighborhoodImpl
All Implemented Interfaces:
Neighborhood

public class NeighborhoodImpl
extends java.lang.Object
implements Neighborhood


Constructor Summary
NeighborhoodImpl(java.util.Collection<Vehicle> vehicles, java.util.Collection<Service> services)
           
 
Method Summary
 boolean areNeighbors(java.lang.String location1, java.lang.String location2)
           
 void initialise()
           
 void setThreshold(double threshold)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeighborhoodImpl

public NeighborhoodImpl(java.util.Collection<Vehicle> vehicles,
                        java.util.Collection<Service> services)
Method Detail

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