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 protectedConnectoidEdgeFactoryImpl(IdGroupingToken groupId, GraphEntities<ConnectoidEdge> connectoidEdges)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectoidEdgeregisterNew(CentroidVertex centroidVertex, DirectedVertex nonCentroidVertex, double lengthKm)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, 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
-
ConnectoidEdgeFactoryImpl
protected ConnectoidEdgeFactoryImpl(IdGroupingToken groupId, GraphEntities<ConnectoidEdge> connectoidEdges)
Constructor- Parameters:
groupId- to useconnectoidEdges- to use
-
-
Method Detail
-
registerNew
public ConnectoidEdge registerNew(CentroidVertex centroidVertex, DirectedVertex nonCentroidVertex, double lengthKm)
Create new connectoid edges from a specified connectoid to all centroids of the zones this connectoid has registered as access zone.- Specified by:
registerNewin interfaceConnectoidEdgeFactory- Parameters:
centroidVertex- the centroidVertex connecting to the centroid, i.e., zonenonCentroidVertex- the other vertex connecting to the (physical) layerlengthKm- length in km to set- Returns:
- newly created connectoid edge (reference vertices not yet aware of connection these have to be added afterwards)
-
-