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_CLASSadditional 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 ConjugateConnectoidEdgedeepClone()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 ConjugateConnectoidSegmentgetEdgeSegment(boolean directionAb)Edge segment in the direction indicatedConjugateConnectoidSegmentgetEdgeSegmentAb()Edge segment in the direction from A to BConjugateConnectoidSegmentgetEdgeSegmentBa()Edge segment in the direction from B to Adefault Collection<? extends ConjugateConnectoidSegment>getEdgeSegments()collect all edge segments available on the edgeConjugateConnectoidNodegetVertexA()Vertex A of the edgeConjugateConnectoidNodegetVertexB()Vertex B of the edgeConjugateConnectoidSegmentregisterEdgeSegment(EdgeSegment edgeSegment, boolean directionAB, boolean force)Register EdgeSegment.ConjugateConnectoidSegmentremoveEdgeSegmentAb()Remove edge segmentAb from this edge.ConjugateConnectoidSegmentremoveEdgeSegmentBa()Remove edge segmentAb from this edge.ConjugateConnectoidEdgeshallowClone()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:
shallowClonein interfaceConjugateDirectedEdge- Specified by:
shallowClonein interfaceDirectedEdge- Specified by:
shallowClonein interfaceEdge- Specified by:
shallowClonein interfaceGraphEntity- Specified by:
shallowClonein interfaceIdAble- Returns:
- copy of this edge
-
deepClone
ConjugateConnectoidEdge deepClone()
Deep copy, non-owned members are reference copied- Specified by:
deepClonein interfaceConjugateDirectedEdge- Specified by:
deepClonein interfaceDirectedEdge- Specified by:
deepClonein interfaceEdge- Specified by:
deepClonein interfaceGraphEntity- Specified by:
deepClonein 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:
getVertexAin interfaceConjugateDirectedEdge- Specified by:
getVertexAin interfaceDirectedEdge- Specified by:
getVertexAin interfaceEdge- Returns:
- vertex A
-
getVertexB
ConjugateConnectoidNode getVertexB()
Vertex B of the edge- Specified by:
getVertexBin interfaceConjugateDirectedEdge- Specified by:
getVertexBin interfaceDirectedEdge- Specified by:
getVertexBin 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:
registerEdgeSegmentin interfaceConjugateDirectedEdge- Specified by:
registerEdgeSegmentin 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:
removeEdgeSegmentAbin interfaceConjugateDirectedEdge- Specified by:
removeEdgeSegmentAbin 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:
removeEdgeSegmentBain interfaceConjugateDirectedEdge- Specified by:
removeEdgeSegmentBain interfaceDirectedEdge- Returns:
- removed edge segment
-
getEdgeSegmentAb
ConjugateConnectoidSegment getEdgeSegmentAb()
Edge segment in the direction from A to B- Specified by:
getEdgeSegmentAbin interfaceConjugateDirectedEdge- Specified by:
getEdgeSegmentAbin interfaceDirectedEdge- Returns:
- edge segment AB
-
getEdgeSegmentBa
ConjugateConnectoidSegment getEdgeSegmentBa()
Edge segment in the direction from B to A- Specified by:
getEdgeSegmentBain interfaceConjugateDirectedEdge- Specified by:
getEdgeSegmentBain interfaceDirectedEdge- Returns:
- edge segment BA
-
getEdgeSegment
default ConjugateConnectoidSegment getEdgeSegment(boolean directionAb)
Edge segment in the direction indicated- Specified by:
getEdgeSegmentin interfaceConjugateDirectedEdge- Specified by:
getEdgeSegmentin 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:
getEdgeSegmentsin interfaceConjugateDirectedEdge- Specified by:
getEdgeSegmentsin interfaceDirectedEdge- Returns:
- available edge segments
-
-