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 protected
ConjugateNodeFactoryImpl(IdGroupingToken groupId, ConjugateNodes container)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateNode
createNew(Link originalLink)
Create a new conjugate node (without registering)ConjugateNode
registerNew(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:
createNew
in 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:
registerNew
in interfaceConjugateNodeFactory
- Parameters:
originalLink
- this node is the conjugate of- Returns:
- new node created
-
-