Class RouteMatchingPoint

java.lang.Object
com.massifmaps.routing.RouteMatchingPoint

public class RouteMatchingPoint extends Object
A class that defines a route matching result point.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new RouteMatchingPoint with default values.
    RouteMatchingPoint(MapPos pos, int type, int edgeIndex)
    Constructs a new RouteMatchingPoint from position, type and edge index.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this object is equal to the specified object.
    int
    Returns the corresponding matching edge index in the matching result.
    Returns the position of the matching point.
    int
    Returns the type of the matching point.
    int
    Returns the hash value of this object.
    Creates a string representation of this object, useful for logging.

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RouteMatchingPoint

      public RouteMatchingPoint()
      Constructs a new RouteMatchingPoint with default values.
    • RouteMatchingPoint

      public RouteMatchingPoint(MapPos pos, int type, int edgeIndex)
      Constructs a new RouteMatchingPoint from position, type and edge index.
      Parameters:
      pos - The position of the point.
      type - The type of the matching point.
      edgeIndex - The index of the corresponding RouteMatchingEdge instance.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getPos

      public MapPos getPos()
      Returns the position of the matching point.
      Returns:
      The position of the matching point.
    • getType

      public int getType()
      Returns the type of the matching point.
      Returns:
      The type of the matching point.
    • getEdgeIndex

      public int getEdgeIndex()
      Returns the corresponding matching edge index in the matching result.
      Returns:
      The corresponding matching edge index in the matching result.
    • toString

      public String toString()
      Creates a string representation of this object, useful for logging.
      Overrides:
      toString in class Object
      Returns:
      The string representation of this object.