public class SemiPermanentPartialStreetEdge extends PartialStreetEdge
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 |
---|
SemiPermanentPartialStreetEdge(StreetEdge streetEdge,
StreetVertex v1,
StreetVertex v2,
org.locationtech.jts.geom.LineString geometry,
I18NString name) |
Modifier and Type | Method and Description |
---|---|
void |
setBikeRentalOptionRequired()
Marks the edge as only traversable if a request is made that allows bike rentals
|
void |
setCarRentalOptionRequired()
Marks the edge as only traversable if a request is made that allows car rentals
|
void |
setVehicleRentalOptionRequired()
Marks the edge as only traversable if a request is made that allows vehicle rentals
|
P2<StreetEdge> |
split(SplitterVertex splitterVertex,
boolean destructive,
boolean createSemiPermanentEdges)
Make sure that the only way to split a SemiPermanentPartialStreetEdge is with a TemporarySplitterVertex.
|
String |
toString() |
State |
traverse(State s0)
There can often times be requests that do not need to traverse this edge, such as requests that don't want to
use a bike rental.
|
getId, getInAngle, getOutAngle, getParentEdge, getTurnRestrictions, isEquivalentTo, isPartial, isReverseOf, isRoundabout, isTrivial
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, timeLowerBound, weightLowerBound
getAzimuth, getDirection, getDisplayGeometry, getFromVertex, getToVertex, getTrip, getValidVertexTypes, hashCode, optimisticTraverse, vertexTypesValid
public SemiPermanentPartialStreetEdge(StreetEdge streetEdge, StreetVertex v1, StreetVertex v2, org.locationtech.jts.geom.LineString geometry, I18NString name)
public State traverse(State s0)
traverse
in class StreetEdge
s0
- The State coming into the edge.public String toString()
toString
in class PartialStreetEdge
public void setBikeRentalOptionRequired()
public void setCarRentalOptionRequired()
public void setVehicleRentalOptionRequired()
public P2<StreetEdge> split(SplitterVertex splitterVertex, boolean destructive, boolean createSemiPermanentEdges)
split
in class StreetEdge
splitterVertex
- The new vertex that the newly split edge(s) will become connected to.destructive
- Whether or not the split should be permanent and result in the old edge no longer existing
within the graph.createSemiPermanentEdges
- Whether or not the split should result in the creation of semi-permanent edges
or temporary edges.Copyright © 2020. All rights reserved.