Interface ConnectoidEdge
-
- All Superinterfaces:
Comparable<IdAble>
,DirectedEdge
,Edge
,ExternalIdAble
,GraphEntity
,IdAble
,ManagedId
,Serializable
- All Known Implementing Classes:
ConnectoidEdgeImpl
public interface ConnectoidEdge extends DirectedEdge
the connecting component between centroid and a first physical node in the network. Note that all connectoids are directed edges but not all edges are connectoids- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static Class<ConnectoidEdge>
CONNECTOID_EDGE_ID_CLASS
additional id class for generating connectoid edge ids-
Fields inherited from interface org.goplanit.utils.graph.Edge
EDGE_ID_CLASS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConnectoidEdge
deepClone()
Deep copy, non-owned members are reference copieddefault CentroidVertex
getCentroidVertex()
Collect the centroid vertex attached to the connectoid, which should always exist and only be a single onelong
getConnectoidEdgeId()
Return the unique id of this connectoid edgedefault Class<ConnectoidEdge>
getConnectoidEdgeIdClass()
Return class used to generate unique connectoid edge ids via the id generatordefault Vertex
getNonCentroidVertex()
Collect the non-centroid vertex attached to the connectoid, which should always exist and only be a single oneConnectoidSegment
registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)
Register connectoidSegment.ConnectoidEdge
shallowClone()
Shallow copy-
Methods inherited from interface org.goplanit.utils.graph.directed.DirectedEdge
forEachSegment, getEdgeSegment, getEdgeSegmentAb, getEdgeSegmentBa, getEdgeSegments, getVertexA, getVertexB, hasEdgeSegment, hasEdgeSegmentAb, hasEdgeSegmentBa, registerEdgeSegment, registerEdgeSegment, removeEdgeSegment, removeEdgeSegmentAb, removeEdgeSegmentBa, removeEdgeSegments, replace
-
Methods inherited from interface org.goplanit.utils.graph.Edge
addInputProperty, createEnvelope, getGeometry, getIdClass, getInputProperty, getLengthKm, getName, hasGeometry, hasName, hasVertex, hasVertexA, hasVertexB, hasVertices, isGeometryInAbDirection, isGeometryInAbDirection, isVertexA, populateBasicGeometry, removeVertex, replace, setGeometry, setLengthKm, setName, transformGeometry, updateGeometryInjectCoordinateAtProjectedLocation, validate
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
appendExternalId, appendExternalId, getExternalId, getIdsAsString, getSplitExternalId, getSplitExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities
-
-
-
-
Field Detail
-
CONNECTOID_EDGE_ID_CLASS
static final Class<ConnectoidEdge> CONNECTOID_EDGE_ID_CLASS
additional id class for generating connectoid edge ids
-
-
Method Detail
-
getConnectoidEdgeIdClass
default Class<ConnectoidEdge> getConnectoidEdgeIdClass()
Return class used to generate unique connectoid edge ids via the id generator- Returns:
- class type
-
shallowClone
ConnectoidEdge shallowClone()
Shallow copy- Specified by:
shallowClone
in interfaceDirectedEdge
- Specified by:
shallowClone
in interfaceEdge
- Specified by:
shallowClone
in interfaceGraphEntity
- Specified by:
shallowClone
in interfaceIdAble
- Returns:
- copy of this edge
-
deepClone
ConnectoidEdge deepClone()
Deep copy, non-owned members are reference copied- Specified by:
deepClone
in interfaceDirectedEdge
- Specified by:
deepClone
in interfaceEdge
- Specified by:
deepClone
in interfaceGraphEntity
- Specified by:
deepClone
in interfaceIdAble
- Returns:
- copy of this edge
-
registerConnectoidSegment
ConnectoidSegment registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)
Register connectoidSegment. If there already exists a connectoidSegment for that direction it is replaced and returned- Parameters:
connectoidSegment
- connectoid segment to be registereddirectionAB
- direction of travel- Returns:
- replaced ConnectoidSegment
-
getConnectoidEdgeId
long getConnectoidEdgeId()
Return the unique id of this connectoid edge- Returns:
- id of this connectoid edge
-
getNonCentroidVertex
default Vertex getNonCentroidVertex()
Collect the non-centroid vertex attached to the connectoid, which should always exist and only be a single one- Returns:
- non-centroid found, null if not found
-
getCentroidVertex
default CentroidVertex getCentroidVertex()
Collect the centroid vertex attached to the connectoid, which should always exist and only be a single one- Returns:
- centroid found, null if not found
-
-