public final class SegmentReset extends Object implements Reset
| Modifier and Type | Method and Description |
|---|---|
static SegmentReset |
buildSegmentExcludeReset(String segmentId)
This method can be used to create a segment reset which will revert the segment exclude
and will include it in Route calculation.
|
static SegmentReset |
buildSegmentRoadTypeReset(String segmentId)
|
static SegmentReset |
buildSegmentSpeedReset(String segmentId)
This method can be used to create a segment speed reset which will revert the all
speed updates applied on the segment.
|
String |
getSegmentId()
Returns the segment Id for which the reset was created.
|
boolean |
isExcludeReset()
Check if the reset is for segment exclude.
|
boolean |
isRoadTypeReset()
Check if the reset is for segment RoadType.
|
boolean |
isSpeedReset()
Check if the reset is for segment speed.
|
public static SegmentReset buildSegmentSpeedReset(String segmentId) throws RoutingException
segmentId - SegmentResetRoutingExceptionpublic static SegmentReset buildSegmentExcludeReset(String segmentId) throws RoutingException
segmentId - SegmentResetRoutingExceptionpublic static SegmentReset buildSegmentRoadTypeReset(String segmentId) throws RoutingException
RoadType reset which will revert the all
RoadType update applied on the segment.segmentId - SegmentResetRoutingExceptionpublic String getSegmentId()
public boolean isExcludeReset()
true or falsepublic boolean isSpeedReset()
true or falsepublic boolean isRoadTypeReset()
true or false