public class PartialStreetEdge extends StreetWithElevationEdge
Edge.ValidVertexTypesANY_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, setElevationProfilecalculateLengthFromGeometry, 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, weightLowerBoundgetAzimuth, getDirection, getFromVertex, getToVertex, getTrip, getValidVertexTypes, hashCode, optimisticTraverse, vertexTypesValidpublic 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 StreetEdgepublic int getOutAngle()
getOutAngle in class StreetEdgeprotected List<TurnRestriction> getTurnRestrictions(Graph graph)
getTurnRestrictions in class StreetEdgepublic boolean isEquivalentTo(Edge e)
isEquivalentTo in class Edgepublic boolean isReverseOf(Edge e)
EdgeisReverseOf in class Edgepublic boolean isRoundabout()
EdgeisRoundabout in class StreetEdgepublic boolean isTrivial()
public StreetEdge getParentEdge()
public String toString()
toString in class StreetWithElevationEdgeCopyright © 2018. All rights reserved.