Constructor | Description |
---|---|
DriverImpl(UrbanizationsTreatmentService service) |
Driver class constructor
|
Modifier and Type | Method | Description |
---|---|---|
String |
getAdjacent(String urbanizationId,
Directions direction) |
Given an identifier and adjacency address returns the identifier of the adjacent urbanization.
|
String |
getUrbanizationId(Double coordinateX,
Double coordinateY) |
Given some coordinates, return the identifier of the urbanization in which they are enclosed coordinates.
|
getUrbanizations
public DriverImpl(UrbanizationsTreatmentService service)
service
- instance of the service to be used. It can be a simulated or real service.public String getUrbanizationId(Double coordinateX, Double coordinateY)
Driver
getUrbanizationId
in interface Driver
coordinateX
- coordinate on the x axiscoordinateY
- coordinate on the y axisDriver.getUrbanizationId(Double, Double)
public String getAdjacent(String urbanizationId, Directions direction)
Driver
getAdjacent
in interface Driver
urbanizationId
- urbanization identifierdirection
- address in which the adjacent urbanization is locatedDriver.getAdjacent(String, Directions)
Copyright © 2018. All rights reserved.