Package org.goplanit.graph.directed
Class DirectedEdgeFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<DirectedEdge>
-
- org.goplanit.graph.directed.DirectedEdgeFactoryImpl
-
- All Implemented Interfaces:
DirectedEdgeFactory
,GraphEntityFactory<DirectedEdge>
,ManagedIdEntityFactory<DirectedEdge>
public class DirectedEdgeFactoryImpl extends GraphEntityFactoryImpl<DirectedEdge> implements DirectedEdgeFactory
Factory for creating directed edges on directed edges container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DirectedEdgeFactoryImpl(IdGroupingToken groupId, DirectedEdges directedEdges)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedEdge
registerNew(DirectedVertex vertexA, DirectedVertex 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.directed.DirectedEdgeFactory
registerNew
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
DirectedEdgeFactoryImpl
protected DirectedEdgeFactoryImpl(IdGroupingToken groupId, DirectedEdges directedEdges)
Constructor- Parameters:
groupId
- to usedirectedEdges
- to use
-
-
Method Detail
-
registerNew
public DirectedEdge registerNew(DirectedVertex vertexA, DirectedVertex 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 interfaceDirectedEdgeFactory
- 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
-
-