public class TemporaryPartialStreetEdge extends PartialStreetEdge implements TemporaryEdge
Edge.ValidVertexTypes
parentEdge
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 |
---|
TemporaryPartialStreetEdge(StreetEdge parentEdge,
StreetVertex v1,
StreetVertex v2,
org.locationtech.jts.geom.LineString geometry,
I18NString name,
double length) |
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
public TemporaryPartialStreetEdge(StreetEdge parentEdge, StreetVertex v1, StreetVertex v2, org.locationtech.jts.geom.LineString geometry, I18NString name, double length)
public boolean isPartial()
isPartial
in class PartialStreetEdge
public int getId()
getId
in class PartialStreetEdge
public int getInAngle()
getInAngle
in class PartialStreetEdge
public int getOutAngle()
getOutAngle
in class PartialStreetEdge
protected List<TurnRestriction> getTurnRestrictions(Graph graph)
getTurnRestrictions
in class PartialStreetEdge
public boolean isEquivalentTo(Edge e)
isEquivalentTo
in class PartialStreetEdge
public boolean isReverseOf(Edge e)
Edge
isReverseOf
in class PartialStreetEdge
public boolean isRoundabout()
Edge
isRoundabout
in class PartialStreetEdge
public boolean isTrivial()
isTrivial
in class PartialStreetEdge
public StreetEdge getParentEdge()
getParentEdge
in class PartialStreetEdge
public String toString()
toString
in class PartialStreetEdge
Copyright © 2020. All rights reserved.