Package org.goplanit.graph.directed
Class DirectedVertexFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<DirectedVertex>
-
- org.goplanit.graph.directed.DirectedVertexFactoryImpl
-
- All Implemented Interfaces:
DirectedVertexFactory
,GraphEntityFactory<DirectedVertex>
,ManagedIdEntityFactory<DirectedVertex>
public class DirectedVertexFactoryImpl extends GraphEntityFactoryImpl<DirectedVertex> implements DirectedVertexFactory
Factory for creating vertices on vertices container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DirectedVertexFactoryImpl(IdGroupingToken groupId, DirectedVertices vertices)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedVertex
createNew()
Create a new directed vertex (without registering on this class)DirectedVertex
registerNew()
Create and register new directed vertex-
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
-
DirectedVertexFactoryImpl
protected DirectedVertexFactoryImpl(IdGroupingToken groupId, DirectedVertices vertices)
Constructor- Parameters:
groupId
- to usevertices
- to use
-
-
Method Detail
-
createNew
public DirectedVertex createNew()
Create a new directed vertex (without registering on this class)- Specified by:
createNew
in interfaceDirectedVertexFactory
- Returns:
- created vertex
-
registerNew
public DirectedVertex registerNew()
Create and register new directed vertex- Specified by:
registerNew
in interfaceDirectedVertexFactory
- Returns:
- new node created
-
-