Package org.goplanit.graph.directed
Class ConjugateDirectedEdgeFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConjugateDirectedEdge>
-
- org.goplanit.graph.directed.ConjugateDirectedEdgeFactoryImpl
-
- All Implemented Interfaces:
ConjugateDirectedEdgeFactory
,GraphEntityFactory<ConjugateDirectedEdge>
,ManagedIdEntityFactory<ConjugateDirectedEdge>
public class ConjugateDirectedEdgeFactoryImpl extends GraphEntityFactoryImpl<ConjugateDirectedEdge> implements ConjugateDirectedEdgeFactory
Factory for creating conjugate directed edges on conjugate directed edges container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConjugateDirectedEdgeFactoryImpl(IdGroupingToken groupId, ConjugateDirectedEdges conjugateDirectedEdges)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateDirectedEdge
registerNew(ConjugateDirectedVertex vertexA, ConjugateDirectedVertex vertexB, DirectedEdge originalEdge1, DirectedEdge originalEdge2, 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.ConjugateDirectedEdgeFactory
registerNew
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
ConjugateDirectedEdgeFactoryImpl
protected ConjugateDirectedEdgeFactoryImpl(IdGroupingToken groupId, ConjugateDirectedEdges conjugateDirectedEdges)
Constructor- Parameters:
groupId
- to useconjugateDirectedEdges
- to use
-
-
Method Detail
-
registerNew
public ConjugateDirectedEdge registerNew(ConjugateDirectedVertex vertexA, ConjugateDirectedVertex vertexB, DirectedEdge originalEdge1, DirectedEdge originalEdge2, 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 interfaceConjugateDirectedEdgeFactory
- Parameters:
vertexA
- the first vertex in this edgevertexB
- the second vertex in this edgeoriginalEdge1
- first of adjacent edges representing this conjugateoriginalEdge2
- second of adjacent edges representing this conjugateregisterOnVertices
- choice to register new edge on the vertices or not- Returns:
- the created edge
- Throws:
PlanItException
- thrown if there is an error
-
-