Class CoordinatesPath

java.lang.Object
overit.geocallapp.wfm.scheduling.bl.CoordinatesPath
All Implemented Interfaces:
Serializable

public class CoordinatesPath extends Object implements Serializable
Object bean that represents the time and the distance between the two coordinates.
Since:
17.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Double
     
    protected org.locationtech.jts.geom.Coordinate
     
    protected org.locationtech.jts.geom.Coordinate
     
    protected Double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the distance in kilometers between the two coordinates.
    org.locationtech.jts.geom.Coordinate
    Returns the end point coordinate.
    org.locationtech.jts.geom.Coordinate
    Returns the start point coordinate.
    Returns the travel time between the two coordinates.
    void
    setDistance(Double distance)
    Sets the distance in kilometers between the two coordinates.
    void
    setEndPoint(org.locationtech.jts.geom.Coordinate arrivalPoint)
    Sets the end point coordinate.
    void
    setStartPoint(org.locationtech.jts.geom.Coordinate startPoint)
    Sets the start point coordinate.
    void
    Sets the travel time between the two coordinates.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • startPoint

      protected org.locationtech.jts.geom.Coordinate startPoint
    • endPoint

      protected org.locationtech.jts.geom.Coordinate endPoint
    • time

      protected Double time
    • distance

      protected Double distance
  • Constructor Details

    • CoordinatesPath

      public CoordinatesPath()
  • Method Details

    • getTime

      public Double getTime()
      Returns the travel time between the two coordinates.
      Returns:
      the travel time
    • setTime

      public void setTime(Double time)
      Sets the travel time between the two coordinates.
      Parameters:
      time - the travel time
    • getDistance

      public Double getDistance()
      Returns the distance in kilometers between the two coordinates.
      Returns:
      the distance in km
    • setDistance

      public void setDistance(Double distance)
      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