Class NFEConnectableEdge<V>

  • Type Parameters:
    V - The type of edge. Typically it would be a Line Feature Element or a Link.

    public class NFEConnectableEdge<V>
    extends java.lang.Object
    Represents an edge and the location (relative to the edge and as a point in space) where the connection must be performed.
    • Constructor Detail

      • NFEConnectableEdge

        public NFEConnectableEdge()
        Allocates an empty connectable edge
      • NFEConnectableEdge

        public NFEConnectableEdge​(V edge,
                                  java.awt.geom.Point2D connPoint,
                                  IntersectionLocation connInterLoc)
        Allocates a new connectable edge
        Parameters:
        edge - the edge to be connected
        connPoint - the point in the edge where the connection must be performed
        connInterLoc - the edge's connection location (as an enum value)
    • Method Detail

      • getEdge

        public V getEdge()
        Gets the edge to be connected
        Returns:
        an edge instance
      • setEdge

        public void setEdge​(V edge)
        Sets an edge to be connected
        Parameters:
        edge - an edge instance
      • getConnectableSpatialPoint

        public java.awt.geom.Point2D getConnectableSpatialPoint()
        Gets the edge's point that will be connected
        Returns:
        a java point that lying on the edge
      • setConnectableSpatialPoint

        public void setConnectableSpatialPoint​(java.awt.geom.Point2D connectableSpatialPoint)
        Sets the edge's point that will be connected
        Parameters:
        connectableSpatialPoint - a java point lying on the edge
      • getConnectableIntersectionLocation

        public IntersectionLocation getConnectableIntersectionLocation()
        Gets the location of edge where the connection will be performed.
        Returns:
        an edge's location
      • setConnectableIntersectionLocation

        public void setConnectableIntersectionLocation​(IntersectionLocation connectableIntersectionLocation)
        Sets the location (as a fixed value) of edge where the connection will be performed.
        Parameters:
        connectableIntersectionLocation - an edge's location
      • getConnectingLinePointRuleId

        public long getConnectingLinePointRuleId()
        Gets the line point rule ID that will connect the edge
        Returns:
        a line point rule ID
      • setConnectingLinePointRuleId

        public void setConnectingLinePointRuleId​(long connLPRuleId)
        Sets the line point rule ID that will connect the edge
        Parameters:
        connLPRuleId - a line point rule ID