Class AbstractWrapRoadConnection

    • Constructor Detail

      • AbstractWrapRoadConnection

        public AbstractWrapRoadConnection​(RoadConnection con)
        Constructor.
        Parameters:
        con - is the wrapped connection.
    • Method Detail

      • hashCode

        @Pure
        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        @Pure
        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • getWrappedRoadConnection

        @Pure
        public final RoadConnection getWrappedRoadConnection()
        Description copied from interface: RoadConnection
        Replies the wrapped road connection if this object is a wrapper to another road connection. If this object is not a wrapper to another road connection, relies this object iteself.
        Specified by:
        getWrappedRoadConnection in interface RoadConnection
        Returns:
        the wrapped road connection or this road connection itself.
      • getPoint

        @Pure
        public final Point2d getPoint()
        Description copied from interface: RoadConnection
        Replies the coordinates of this road connection.
        Specified by:
        getPoint in interface RoadConnection
        Returns:
        the coordinates of this road connection.
      • getGeoLocation

        @Pure
        public final GeoLocationPoint getGeoLocation()
        Description copied from interface: RoadConnection
        Replies the geographic coordinates of this road connection.
        Specified by:
        getGeoLocation in interface RoadConnection
        Returns:
        the geographic coordinates of this road connection.
      • getUUID

        @Pure
        public final UUID getUUID()
        Description copied from interface: RoadConnection
        Replies an unique identifier for element.

        A Unique IDentifier (UID) must be unique for all the object instances.

        Specified by:
        getUUID in interface RoadConnection
        Returns:
        the identifier
      • isNearPoint

        @Pure
        public final boolean isNearPoint​(Point2D<?,​?> point)
        Description copied from interface: RoadConnection
        Replies if the specified point is near this connection point.
        Specified by:
        isNearPoint in interface RoadConnection
        Parameters:
        point - is the point to test
        Returns:
        true if the point is near this connection, otherwise false.
      • compareTo

        @Pure
        public final int compareTo​(Point2D<?,​?> pts)
        Description copied from interface: RoadConnection
        Compares this object with the specified point for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified point.
        Specified by:
        compareTo in interface RoadConnection
        Parameters:
        pts - is the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified point.
      • isEmpty

        @Pure
        public final boolean isEmpty()
        Description copied from interface: RoadConnection
        Replies if this connection has no connected segment.
        Specified by:
        isEmpty in interface RoadConnection
        Returns:
        true if this object has no connected segment, otherwise false