public class PartialStreetEdge extends StreetWithElevationEdge
Edge.ValidVertexTypes
Modifier and Type | Field and Description |
---|---|
protected StreetEdge |
parentEdge
The edge on which this lies.
|
ANY_PLATFORM_MASK, bicycleSafetyFactor, CLASS_CROSSING, CLASS_LINK, CLASS_OTHER_PLATFORM, CLASS_OTHERPATH, CLASS_STREET, CLASS_TRAIN_PLATFORM, CROSSING_CLASS_MASK, DEFAULT_CAR_SPEED, walkComfortScore, wayId
Constructor and Description |
---|
PartialStreetEdge(StreetEdge parentEdge,
StreetVertex v1,
StreetVertex v2,
org.locationtech.jts.geom.LineString geometry,
I18NString name,
double length)
Create a new partial street edge along the given 'parentEdge' from 'v1' to 'v2'.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Have the ID of their parent.
|
int |
getInAngle()
Have the inbound angle of their parent.
|
int |
getOutAngle()
Have the outbound angle of their parent.
|
StreetEdge |
getParentEdge() |
protected List<TurnRestriction> |
getTurnRestrictions(Graph graph)
Have the turn restrictions of their parent.
|
boolean |
isEquivalentTo(Edge e)
This implementation makes it so that TurnRestrictions on the parent edge are applied to this edge as well.
|
boolean |
isPartial()
Partial edges are always partial.
|
boolean |
isReverseOf(Edge e)
Returns true if this edge is the reverse of another.
|
boolean |
isRoundabout()
Edges are not roundabouts by default.
|
boolean |
isTrivial()
Returns true if this edge is trivial - beginning and ending at the same point.
|
String |
toString() |
calculateSpeed, clone, getElevationProfile, getMaxSlope, getSlopeSpeedEffectiveLength, getSlopeWalkSpeedEffectiveLength, getSlopeWorkCostEffectiveLength, hasPackedElevationProfile, isElevationFlattened, setElevationProfile
addCarNetwork, addVehicleNetwork, calculateLengthFromGeometry, calculateMicromobilitySpeed, canTraverse, canTraverseIncludingBarrier, canTurnOnto, containsCarNetwork, containsVehicleNetwork, getBicycleSafetyFactor, getCarNetworks, getCarSpeed, getDistance, getEndOsmNodeId, getFloatingCarDropoffSuitability, getFloatingVehicleDropoffSuitability, getGeometry, getName, getName, getOsmTags, getPermission, getRawName, getRollingResistanceCoefficient, getStartOsmNodeId, getStreetClass, getTNCStopSuitability, getVehicleNetworks, getWalkComfortScore, hasBogusName, isBack, isNoThruTraffic, isSlopeOverride, isStairs, isWheelchairAccessible, setBack, setBicycleSafetyFactor, setCarNetworks, setCarSpeed, setFloatingCarDropoffSuitability, setFloatingVehicleDropoffSuitability, setHasBogusName, setName, setNoThruTraffic, setOsmTags, setPermission, setRoundabout, setSlopeOverride, setStairs, setStreetClass, setTNCStopSuitability, setVehicleNetworks, setWalkComfortScore, setWheelchairAccessible, shareData, split, timeLowerBound, traverse, weightLowerBound
getAzimuth, getDirection, getDisplayGeometry, getFromVertex, getToVertex, getTrip, getValidVertexTypes, hashCode, optimisticTraverse, vertexTypesValid
protected StreetEdge parentEdge
public PartialStreetEdge(StreetEdge parentEdge, StreetVertex v1, StreetVertex v2, org.locationtech.jts.geom.LineString geometry, I18NString name, double length)
public boolean isPartial()
public int getInAngle()
getInAngle
in class StreetEdge
public int getOutAngle()
getOutAngle
in class StreetEdge
protected List<TurnRestriction> getTurnRestrictions(Graph graph)
getTurnRestrictions
in class StreetEdge
public boolean isEquivalentTo(Edge e)
isEquivalentTo
in class Edge
public boolean isReverseOf(Edge e)
Edge
isReverseOf
in class Edge
public boolean isRoundabout()
Edge
isRoundabout
in class StreetEdge
public boolean isTrivial()
public StreetEdge getParentEdge()
public String toString()
toString
in class StreetWithElevationEdge
Copyright © 2020. All rights reserved.