Class ConjugateLinkFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConjugateLink>
-
- org.goplanit.network.layer.physical.ConjugateLinkFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ConjugateLink>
,ManagedIdEntityFactory<ConjugateLink>
,ConjugateLinkFactory
public class ConjugateLinkFactoryImpl extends GraphEntityFactoryImpl<ConjugateLink> implements ConjugateLinkFactory
Factory for creating conjugate links on conjugate links container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Constructor Description ConjugateLinkFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ConjugateLink> container)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)-
Methods inherited from class org.goplanit.graph.GraphEntityFactoryImpl
getGraphEntities, setGraphEntities
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
ConjugateLinkFactoryImpl
public ConjugateLinkFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<ConjugateLink> container)
Constructor- Parameters:
groupIdToken
- to use for creating element idscontainer
- 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 interfaceConjugateLinkFactory
- 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 notoriginalLink1
- first of two links this conjugate link representsoriginalLink2
- second of two links this conjugate link represents- Returns:
- the created undirected turn, i.e. conjugated directed edge
-
-