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 protectedVertexFactoryImpl(IdGroupingToken groupId, Vertices vertices)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexcreateNew()Create a new vertex (without registering on this class)VertexregisterNew()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:
createNewin interfaceVertexFactory- Returns:
- created vertex
-
registerNew
public Vertex registerNew()
Create and register new entity- Specified by:
registerNewin interfaceVertexFactory- Returns:
- new node created
-
-