Class CoordinatesPath
java.lang.Object
overit.geocallapp.wfm.scheduling.bl.CoordinatesPath
- All Implemented Interfaces:
Serializable
Object bean that represents the time and the distance between the two coordinates.
- Since:
- 17.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the distance in kilometers between the two coordinates.org.locationtech.jts.geom.CoordinateReturns the end point coordinate.org.locationtech.jts.geom.CoordinateReturns the start point coordinate.getTime()Returns the travel time between the two coordinates.voidsetDistance(Double distance) Sets the distance in kilometers between the two coordinates.voidsetEndPoint(org.locationtech.jts.geom.Coordinate arrivalPoint) Sets the end point coordinate.voidsetStartPoint(org.locationtech.jts.geom.Coordinate startPoint) Sets the start point coordinate.voidSets the travel time between the two coordinates.
-
Field Details
-
startPoint
protected org.locationtech.jts.geom.Coordinate startPoint -
endPoint
protected org.locationtech.jts.geom.Coordinate endPoint -
time
-
distance
-
-
Constructor Details
-
CoordinatesPath
public CoordinatesPath()
-
-
Method Details
-
getTime
Returns the travel time between the two coordinates.- Returns:
- the travel time
-
setTime
Sets the travel time between the two coordinates.- Parameters:
time- the travel time
-
getDistance
Returns the distance in kilometers between the two coordinates.- Returns:
- the distance in km
-
setDistance
Sets the distance in kilometers between the two coordinates.- Parameters:
distance- the distance in km
-
getStartPoint
public org.locationtech.jts.geom.Coordinate getStartPoint()Returns the start point coordinate.- Returns:
- the start point coordinate
-
setStartPoint
public void setStartPoint(org.locationtech.jts.geom.Coordinate startPoint) Sets the start point coordinate.- Parameters:
startPoint- the start point coordinate
-
getEndPoint
public org.locationtech.jts.geom.Coordinate getEndPoint()Returns the end point coordinate.- Returns:
- the end point coordinate
-
setEndPoint
public void setEndPoint(org.locationtech.jts.geom.Coordinate arrivalPoint) Sets the end point coordinate.- Parameters:
arrivalPoint- the end point coordinate
-