Class EdgeSegmentFactoryImpl

    • Constructor Detail

      • EdgeSegmentFactoryImpl

        protected EdgeSegmentFactoryImpl​(IdGroupingToken groupId,
                                         EdgeSegments edgeSegments)
        Constructor
        Parameters:
        groupId - to use
        edgeSegments - to use
    • Method Detail

      • create

        public EdgeSegment create​(DirectedEdge parentEdge,
                                  boolean directionAB)
        Create edge segment
        Specified by:
        create in interface EdgeSegmentFactory
        Parameters:
        parentEdge - the parent edge of this edge segment
        directionAB - direction of travel
        Returns:
        the created edge segment
      • registerNew

        public EdgeSegment registerNew​(DirectedEdge parentEdge,
                                       boolean directionAb,
                                       boolean registerOnVertexAndEdge)
        Create directional edge segment and register it
        Specified by:
        registerNew in interface EdgeSegmentFactory
        Parameters:
        parentEdge - the parent edge of this edge segment
        directionAb - direction of travel
        registerOnVertexAndEdge - option to register the new edge segment on the underlying edge and its vertices
        Returns:
        the created edge segment