Class ConjugateNodeFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConjugateNode>
-
- org.goplanit.network.layer.physical.ConjugateNodeFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ConjugateNode>,ManagedIdEntityFactory<ConjugateNode>,ConjugateNodeFactory
public class ConjugateNodeFactoryImpl extends GraphEntityFactoryImpl<ConjugateNode> implements ConjugateNodeFactory
Factory for creating nodes on conjugate nodes container.- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjugateNodeFactoryImpl(IdGroupingToken groupId, ConjugateNodes container)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateNodecreateNew(Link originalLink)Create a new conjugate node (without registering)ConjugateNoderegisterNew(Link originalLink)Create and register new conjugate node-
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
-
ConjugateNodeFactoryImpl
protected ConjugateNodeFactoryImpl(IdGroupingToken groupId, ConjugateNodes container)
Constructor- Parameters:
groupId- to usecontainer- to use
-
-
Method Detail
-
createNew
public ConjugateNode createNew(Link originalLink)
Create a new conjugate node (without registering)- Specified by:
createNewin interfaceConjugateNodeFactory- Parameters:
originalLink- this node is the conjugate of- Returns:
- created conjugate node
-
registerNew
public ConjugateNode registerNew(Link originalLink)
Create and register new conjugate node- Specified by:
registerNewin interfaceConjugateNodeFactory- Parameters:
originalLink- this node is the conjugate of- Returns:
- new node created
-
-