UrbanizationsTreatmentService
, UrbanizationsTreatmentSimulatedService
public 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, wait
createUrbanizationsData
public UrbanizationsTreatmentSimulatedServiceImpl(Integer size)
size
- of the x-axis and y-axis of the simulated array.public String getCenterOfArray()
UrbanizationsTreatmentSimulatedService
getCenterOfArray
in interface UrbanizationsTreatmentSimulatedService
UrbanizationsTreatmentSimulatedService.getCenterOfArray()
public String getPositionByCoordinate(Double coordinateX, Double coordinateY)
UrbanizationsTreatmentService
getPositionByCoordinate
in interface UrbanizationsTreatmentService
coordinateX
- axis coordinatecoordinateY
- axis coordinateUrbanizationsTreatmentService.getPositionByCoordinate(Double, Double)
public String getAdjacent(String urbanizationId, String direction)
UrbanizationsTreatmentService
getAdjacent
in interface UrbanizationsTreatmentService
urbanizationId
- urbanization identifierdirection
- address in which the adjacent urbanization is locatedUrbanizationsTreatmentService.getAdjacent(String, String)
public Integer getSize()
Copyright © 2018. All rights reserved.