Class ConjugateLinkFactoryImpl

    • Constructor Detail

      • ConjugateLinkFactoryImpl

        public ConjugateLinkFactoryImpl​(IdGroupingToken groupIdToken,
                                        GraphEntities<ConjugateLink> container)
        Constructor
        Parameters:
        groupIdToken - to use for creating element ids
        container - to register the created instances on
    • Method Detail

      • registerNew

        public ConjugateLink registerNew​(ConjugateDirectedVertex nodeA,
                                         ConjugateDirectedVertex nodeB,
                                         boolean registerOnNodes,
                                         Link originalLink1,
                                         Link originalLink2)
        Create new conjugate link on conjugate links container, allow to be registered on conjugate nodes if indicated)
        Specified by:
        registerNew in interface ConjugateLinkFactory
        Parameters:
        nodeA - the first conjugate node on this undirected turn (conjugate directed edge)
        nodeB - the second conjugate node on this undirected turn (conjugate directed edge)
        registerOnNodes - choice to register new edge on the conjugate nodes or not
        originalLink1 - first of two links this conjugate link represents
        originalLink2 - second of two links this conjugate link represents
        Returns:
        the created undirected turn, i.e. conjugated directed edge