Package org.goplanit.graph
Class VertexFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<Vertex>
-
- org.goplanit.graph.VertexFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<Vertex>
,VertexFactory
,ManagedIdEntityFactory<Vertex>
public class VertexFactoryImpl extends GraphEntityFactoryImpl<Vertex> implements VertexFactory
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
VertexFactoryImpl(IdGroupingToken groupId, Vertices vertices)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vertex
createNew()
Create a new vertex (without registering on this class)Vertex
registerNew()
Create and register new entity-
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
-
VertexFactoryImpl
protected VertexFactoryImpl(IdGroupingToken groupId, Vertices vertices)
Constructor- Parameters:
groupId
- to usevertices
- to use
-
-
Method Detail
-
createNew
public Vertex createNew()
Create a new vertex (without registering on this class)- Specified by:
createNew
in interfaceVertexFactory
- Returns:
- created vertex
-
registerNew
public Vertex registerNew()
Create and register new entity- Specified by:
registerNew
in interfaceVertexFactory
- Returns:
- new node created
-
-