Class DirectedEdgeFactoryImpl

    • Constructor Detail

      • DirectedEdgeFactoryImpl

        protected DirectedEdgeFactoryImpl​(IdGroupingToken groupId,
                                          DirectedEdges directedEdges)
        Constructor
        Parameters:
        groupId - to use
        directedEdges - to use
    • Method Detail

      • registerNew

        public DirectedEdge registerNew​(DirectedVertex vertexA,
                                        DirectedVertex vertexB,
                                        boolean registerOnVertices)
                                 throws PlanItException
        Create new edge to network identified via its id, allow to be registered on vertices if indicated)
        Specified by:
        registerNew in interface DirectedEdgeFactory
        Parameters:
        vertexA - the first vertex in this edge
        vertexB - the second vertex in this edge
        registerOnVertices - choice to register new edge on the vertices or not
        Returns:
        the created edge
        Throws:
        PlanItException - thrown if there is an error