Interface ConjugateConnectoidEdge
-
- All Superinterfaces:
Comparable<IdAble>
,ConjugateDirectedEdge
,DirectedEdge
,Edge
,ExternalIdAble
,GraphEntity
,IdAble
,ManagedId
,Serializable
- All Known Implementing Classes:
ConjugateConnectoidEdgeImpl
public interface ConjugateConnectoidEdge extends ConjugateDirectedEdge
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<ConjugateConnectoidEdge>
CONJUGATE_CONNECTOID_EDGE_ID_CLASS
additional id class for generating conjugate 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 ConjugateConnectoidEdge
deepClone()
Deep copy, non-owned members are reference copieddefault Class<ConjugateConnectoidEdge>
getConnectoidEdgeIdClass()
Return class used to generate unique conjugate connectoid edge ids via the id generatordefault ConjugateConnectoidSegment
getEdgeSegment(boolean directionAb)
Edge segment in the direction indicatedConjugateConnectoidSegment
getEdgeSegmentAb()
Edge segment in the direction from A to BConjugateConnectoidSegment
getEdgeSegmentBa()
Edge segment in the direction from B to Adefault Collection<? extends ConjugateConnectoidSegment>
getEdgeSegments()
collect all edge segments available on the edgeConjugateConnectoidNode
getVertexA()
Vertex A of the edgeConjugateConnectoidNode
getVertexB()
Vertex B of the edgeConjugateConnectoidSegment
registerEdgeSegment(EdgeSegment edgeSegment, boolean directionAB, boolean force)
Register EdgeSegment.ConjugateConnectoidSegment
removeEdgeSegmentAb()
Remove edge segmentAb from this edge.ConjugateConnectoidSegment
removeEdgeSegmentBa()
Remove edge segmentAb from this edge.ConjugateConnectoidEdge
shallowClone()
Shallow copy-
Methods inherited from interface org.goplanit.utils.graph.directed.ConjugateDirectedEdge
getOriginalAdjacentEdges, getOriginalAdjacentEdgeSegments
-
Methods inherited from interface org.goplanit.utils.graph.directed.DirectedEdge
forEachSegment, hasEdgeSegment, hasEdgeSegmentAb, hasEdgeSegmentBa, registerEdgeSegment, removeEdgeSegment, 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
-
CONJUGATE_CONNECTOID_EDGE_ID_CLASS
static final Class<ConjugateConnectoidEdge> CONJUGATE_CONNECTOID_EDGE_ID_CLASS
additional id class for generating conjugate connectoid edge ids
-
-
Method Detail
-
shallowClone
ConjugateConnectoidEdge shallowClone()
Shallow copy- Specified by:
shallowClone
in interfaceConjugateDirectedEdge
- 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
ConjugateConnectoidEdge deepClone()
Deep copy, non-owned members are reference copied- Specified by:
deepClone
in interfaceConjugateDirectedEdge
- 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
-
getConnectoidEdgeIdClass
default Class<ConjugateConnectoidEdge> getConnectoidEdgeIdClass()
Return class used to generate unique conjugate connectoid edge ids via the id generator- Returns:
- class type
-
getVertexA
ConjugateConnectoidNode getVertexA()
Vertex A of the edge- Specified by:
getVertexA
in interfaceConjugateDirectedEdge
- Specified by:
getVertexA
in interfaceDirectedEdge
- Specified by:
getVertexA
in interfaceEdge
- Returns:
- vertex A
-
getVertexB
ConjugateConnectoidNode getVertexB()
Vertex B of the edge- Specified by:
getVertexB
in interfaceConjugateDirectedEdge
- Specified by:
getVertexB
in interfaceDirectedEdge
- Specified by:
getVertexB
in interfaceEdge
- Returns:
- vertex B
-
registerEdgeSegment
ConjugateConnectoidSegment registerEdgeSegment(EdgeSegment edgeSegment, boolean directionAB, boolean force)
Register EdgeSegment. If there already exists an edgeSegment for that direction it is replaced and returned. If the edge segment has no parent edge, this edge is set. If there is a discrepancy between the edge segment's parent edge and this edge a warning is issued and the edge segment is not registered- Specified by:
registerEdgeSegment
in interfaceConjugateDirectedEdge
- Specified by:
registerEdgeSegment
in interfaceDirectedEdge
- Parameters:
edgeSegment
- the edgeSegment to be registereddirectionAB
- direction of travelforce
- when true the provided edge segment is always set (even if null or inconsistent, without warning)- Returns:
- replaced egeSegment (if any)
-
removeEdgeSegmentAb
ConjugateConnectoidSegment removeEdgeSegmentAb()
Remove edge segmentAb from this edge. Be careful doing this as it because it might affect the contiguous ids if the edge segment is garbage collected- Specified by:
removeEdgeSegmentAb
in interfaceConjugateDirectedEdge
- Specified by:
removeEdgeSegmentAb
in interfaceDirectedEdge
- Returns:
- removed edge segment
-
removeEdgeSegmentBa
ConjugateConnectoidSegment removeEdgeSegmentBa()
Remove edge segmentAb from this edge. Be careful doing this as it because it might affect the contiguous ids if the edge segment is garbage collected- Specified by:
removeEdgeSegmentBa
in interfaceConjugateDirectedEdge
- Specified by:
removeEdgeSegmentBa
in interfaceDirectedEdge
- Returns:
- removed edge segment
-
getEdgeSegmentAb
ConjugateConnectoidSegment getEdgeSegmentAb()
Edge segment in the direction from A to B- Specified by:
getEdgeSegmentAb
in interfaceConjugateDirectedEdge
- Specified by:
getEdgeSegmentAb
in interfaceDirectedEdge
- Returns:
- edge segment AB
-
getEdgeSegmentBa
ConjugateConnectoidSegment getEdgeSegmentBa()
Edge segment in the direction from B to A- Specified by:
getEdgeSegmentBa
in interfaceConjugateDirectedEdge
- Specified by:
getEdgeSegmentBa
in interfaceDirectedEdge
- Returns:
- edge segment BA
-
getEdgeSegment
default ConjugateConnectoidSegment getEdgeSegment(boolean directionAb)
Edge segment in the direction indicated- Specified by:
getEdgeSegment
in interfaceConjugateDirectedEdge
- Specified by:
getEdgeSegment
in interfaceDirectedEdge
- Parameters:
directionAb
- direction of segment- Returns:
- edge segment if present
-
getEdgeSegments
default Collection<? extends ConjugateConnectoidSegment> getEdgeSegments()
collect all edge segments available on the edge- Specified by:
getEdgeSegments
in interfaceConjugateDirectedEdge
- Specified by:
getEdgeSegments
in interfaceDirectedEdge
- Returns:
- available edge segments
-
-