Package org.goplanit.network.virtual
Class ConnectoidEdgeFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<E>
-
- org.goplanit.graph.GraphEntityFactoryImpl<ConnectoidEdge>
-
- org.goplanit.network.virtual.ConnectoidEdgeFactoryImpl
-
- All Implemented Interfaces:
GraphEntityFactory<ConnectoidEdge>
,ManagedIdEntityFactory<ConnectoidEdge>
,ConnectoidEdgeFactory
public class ConnectoidEdgeFactoryImpl extends GraphEntityFactoryImpl<ConnectoidEdge> implements ConnectoidEdgeFactory
Factory for creating connectoid edges on connectoid edge container- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectoidEdgeFactoryImpl(IdGroupingToken groupId, GraphEntities<ConnectoidEdge> connectoidEdges)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ConnectoidEdge>
registerNew(Connectoid connectoid)
Create new connectoid edges from a specified connectoid to all centroids of the zones this connectoid has registered as access zone.-
Methods inherited from class org.goplanit.graph.GraphEntityFactoryImpl
getGraphEntities
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
createUniqueCopyOf, 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
createUniqueCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
ConnectoidEdgeFactoryImpl
protected ConnectoidEdgeFactoryImpl(IdGroupingToken groupId, GraphEntities<ConnectoidEdge> connectoidEdges)
Constructor- Parameters:
groupId
- to useconnectoidEdges
- to use
-
-
Method Detail
-
registerNew
public Collection<ConnectoidEdge> registerNew(Connectoid connectoid) throws PlanItException
Create new connectoid edges from a specified connectoid to all centroids of the zones this connectoid has registered as access zone.- Specified by:
registerNew
in interfaceConnectoidEdgeFactory
- Parameters:
connectoid
- extract information from connectoid to create virtual connectoid edge(s)- Returns:
- newly created connectoid edges (reference nodes not yet aware of connection these have to be added afterwards)
- Throws:
PlanItException
- thrown if there is an error
-
-