public class PartialStreetEdge extends StreetWithElevationEdge
Edge.ValidVertexTypes
ANY_PLATFORM_MASK, bicycleSafetyFactor, CLASS_CROSSING, CLASS_LINK, CLASS_OTHER_PLATFORM, CLASS_OTHERPATH, CLASS_STREET, CLASS_TRAIN_PLATFORM, CROSSING_CLASS_MASK, DEFAULT_CAR_SPEED, wayId
Constructor and Description |
---|
PartialStreetEdge(StreetEdge parentEdge,
StreetVertex v1,
StreetVertex v2,
com.vividsolutions.jts.geom.LineString geometry,
I18NString name,
double length) |
PartialStreetEdge(StreetEdge parentEdge,
StreetVertex v1,
StreetVertex v2,
com.vividsolutions.jts.geom.LineString geometry,
String 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() |
clone, getElevationProfile, getMaxSlope, getSlopeSpeedEffectiveLength, getSlopeWorkCostEffectiveLength, isElevationFlattened, setElevationProfile
calculateLengthFromGeometry, calculateSpeed, canTraverse, canTraverseIncludingBarrier, canTurnOnto, getBicycleSafetyFactor, getCarSpeed, getDistance, getEndOsmNodeId, getGeometry, getName, getName, getPermission, getRawName, getStartOsmNodeId, getStreetClass, hasBogusName, isBack, isNoThruTraffic, isSlopeOverride, isStairs, isWheelchairAccessible, setBack, setBicycleSafetyFactor, setCarSpeed, setHasBogusName, setName, setNoThruTraffic, setPermission, setRoundabout, setSlopeOverride, setStairs, setStreetClass, setWheelchairAccessible, shareData, split, timeLowerBound, traverse, weightLowerBound
getAzimuth, getDirection, getFromVertex, getToVertex, getTrip, getValidVertexTypes, hashCode, optimisticTraverse, vertexTypesValid
public PartialStreetEdge(StreetEdge parentEdge, StreetVertex v1, StreetVertex v2, com.vividsolutions.jts.geom.LineString geometry, I18NString name, double length)
public PartialStreetEdge(StreetEdge parentEdge, StreetVertex v1, StreetVertex v2, com.vividsolutions.jts.geom.LineString geometry, String 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 © 2018. All rights reserved.