Package org.goplanit.graph
Class EdgeFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<Edge>
-
- org.goplanit.graph.EdgeFactoryImpl
-
- All Implemented Interfaces:
EdgeFactory
,GraphEntityFactory<Edge>
,ManagedIdEntityFactory<Edge>
public class EdgeFactoryImpl extends GraphEntityFactoryImpl<Edge> implements EdgeFactory
Factory for creating edges on edges container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EdgeFactoryImpl(IdGroupingToken groupId, Edges edges)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)-
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.graph.EdgeFactory
registerNew
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
EdgeFactoryImpl
protected EdgeFactoryImpl(IdGroupingToken groupId, Edges edges)
Constructor- Parameters:
groupId
- to useedges
- to use
-
-
Method Detail
-
registerNew
public Edge registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices) throws PlanItException
Create new edge to network identified via its id, allow to be registered on vertices if indicated)- Specified by:
registerNew
in interfaceEdgeFactory
- Parameters:
vertexA
- the first vertex in this edgevertexB
- the second vertex in this edgeregisterOnVertices
- choice to register new edge on the vertices or not- Returns:
- the created edge
- Throws:
PlanItException
- thrown if there is an error
-
-