UrbanizationsTreatmentService, UrbanizationsTreatmentSimulatedServicepublic class UrbanizationsTreatmentSimulatedServiceImpl extends Object implements UrbanizationsTreatmentService, UrbanizationsTreatmentSimulatedService
| Constructor | Description |
|---|---|
UrbanizationsTreatmentSimulatedServiceImpl(Integer size) |
Class constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getAdjacent(String urbanizationId,
String direction) |
Given an identifier and adjacency address returns the identifier of the adjacent urbanization.
|
String |
getCenterOfArray() |
Returns the center of the bidemensional array in case the size is odd.
|
String |
getPositionByCoordinate(Double coordinateX,
Double coordinateY) |
Simulates a call by which a position is obtained based on coordinates.
|
Integer |
getSize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateUrbanizationsDatapublic UrbanizationsTreatmentSimulatedServiceImpl(Integer size)
size - of the x-axis and y-axis of the simulated array.public String getCenterOfArray()
UrbanizationsTreatmentSimulatedServicegetCenterOfArray in interface UrbanizationsTreatmentSimulatedServiceUrbanizationsTreatmentSimulatedService.getCenterOfArray()public String getPositionByCoordinate(Double coordinateX, Double coordinateY)
UrbanizationsTreatmentServicegetPositionByCoordinate in interface UrbanizationsTreatmentServicecoordinateX - axis coordinatecoordinateY - axis coordinateUrbanizationsTreatmentService.getPositionByCoordinate(Double, Double)public String getAdjacent(String urbanizationId, String direction)
UrbanizationsTreatmentServicegetAdjacent in interface UrbanizationsTreatmentServiceurbanizationId - urbanization identifierdirection - address in which the adjacent urbanization is locatedUrbanizationsTreatmentService.getAdjacent(String, String)public Integer getSize()
Copyright © 2018. All rights reserved.