Package org.goplanit.network.virtual
Class CentroidVertexFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<CentroidVertex>
-
- org.goplanit.network.virtual.CentroidVertexFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<CentroidVertex>
,ManagedIdEntityFactory<CentroidVertex>
,CentroidVertexFactory
public class CentroidVertexFactoryImpl extends GraphEntityFactoryImpl<CentroidVertex> implements CentroidVertexFactory
Factory for creating nodes on nodes container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CentroidVertexFactoryImpl(IdGroupingToken groupId, CentroidVertices vertices)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CentroidVertex
createNew(Centroid parent)
Create a new CentroidVertex (without registering on this class)CentroidVertex
registerNew()
Create and register new entity (without setting its parent yet)CentroidVertex
registerNew(Centroid parent)
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
-
CentroidVertexFactoryImpl
protected CentroidVertexFactoryImpl(IdGroupingToken groupId, CentroidVertices vertices)
Constructor- Parameters:
groupId
- to usevertices
- to use
-
-
Method Detail
-
registerNew
public CentroidVertex registerNew()
Create and register new entity (without setting its parent yet)- Specified by:
registerNew
in interfaceCentroidVertexFactory
- Returns:
- new centroid vertex created
-
createNew
public CentroidVertex createNew(Centroid parent)
Create a new CentroidVertex (without registering on this class)- Specified by:
createNew
in interfaceCentroidVertexFactory
- Parameters:
parent
- centroid of the vertex- Returns:
- created vertex
-
registerNew
public CentroidVertex registerNew(Centroid parent)
Create and register new entity- Specified by:
registerNew
in interfaceCentroidVertexFactory
- Parameters:
parent
- to register on centroid- Returns:
- new centroid vertex created
-
-