public class DeviatedRouteGraphModifier extends GtfsFlexGraphModifier
graph| Constructor and Description |
|---|
DeviatedRouteGraphModifier(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkHopAllowsBoardAlight(State s,
FlexPatternHop hop,
boolean boarding)
Returns true if the given hop can be boarded/alighted.
|
StreetVertex |
getLocationForTemporaryStop(State s,
FlexPatternHop hop)
Subclasses can specify where the new temporary stop should be created, given a nearby
PatternHop.
|
TraverseMode |
getMode()
Return the mode that the graph search should be in.
|
SearchTerminationStrategy |
getSearchTerminationStrategy()
Return the termination strategy which should be used during the graph search.
|
TemporaryPartialPatternHop |
makeHopNewFrom(RoutingRequest opt,
State state,
FlexPatternHop hop,
PatternDepartVertex from,
Stop fromStop)
Create a new
FlexPatternHop with a new "from" location (from a new destination to the route). |
TemporaryPartialPatternHop |
makeHopNewTo(RoutingRequest opt,
State state,
FlexPatternHop hop,
PatternArriveVertex to,
Stop toStop)
Create a new
FlexPatternHop with a new "to" location (from the route to a new destination). |
TemporaryPartialPatternHop |
shortenEnd(RoutingRequest opt,
State state,
TemporaryPartialPatternHop hop,
PatternStopVertex to,
Stop toStop)
From an existing TemporaryPartialPatternHop which has a new "from" location, create a new
TemporaryPartialPatternHop with the same "from" location and a new "to" location.
|
protected void |
streetSearch(RoutingRequest rr) |
void |
vertexVisitor(State state) |
createBackwardHops, createDirectHop, createForwardHops, getTemporaryStop, getTemporaryStoppublic DeviatedRouteGraphModifier(Graph graph)
public TraverseMode getMode()
GtfsFlexGraphModifiergetMode in class GtfsFlexGraphModifierpublic SearchTerminationStrategy getSearchTerminationStrategy()
GtfsFlexGraphModifiergetSearchTerminationStrategy in class GtfsFlexGraphModifierpublic TemporaryPartialPatternHop makeHopNewTo(RoutingRequest opt, State state, FlexPatternHop hop, PatternArriveVertex to, Stop toStop)
GtfsFlexGraphModifierFlexPatternHop with a new "to" location (from the route to a new destination).makeHopNewTo in class GtfsFlexGraphModifieropt - Options for the graph searchstate - State at which the original FlexPatternHop was found during the graph searchhop - Original pattern hop to modifyto - New "to" locationtoStop - Stop for new "to" locationpublic TemporaryPartialPatternHop makeHopNewFrom(RoutingRequest opt, State state, FlexPatternHop hop, PatternDepartVertex from, Stop fromStop)
GtfsFlexGraphModifierFlexPatternHop with a new "from" location (from a new destination to the route).makeHopNewFrom in class GtfsFlexGraphModifieropt - Options for the graph searchstate - Options for the graph searchhop - Original pattern hop to modifyfrom - New "from" locationfromStop - Stop for new "from" locationpublic TemporaryPartialPatternHop shortenEnd(RoutingRequest opt, State state, TemporaryPartialPatternHop hop, PatternStopVertex to, Stop toStop)
GtfsFlexGraphModifiershortenEnd in class GtfsFlexGraphModifieropt - Options for the graph searchstate - ptions for the graph searchhop - Temporary pattern hop to modifyto - New "to" locationtoStop - Stop for new "to" locationpublic boolean checkHopAllowsBoardAlight(State s, FlexPatternHop hop, boolean boarding)
GtfsFlexGraphModifiercheckHopAllowsBoardAlight in class GtfsFlexGraphModifierpublic void vertexVisitor(State state)
vertexVisitor in class GtfsFlexGraphModifierprotected void streetSearch(RoutingRequest rr)
streetSearch in class GtfsFlexGraphModifierpublic StreetVertex getLocationForTemporaryStop(State s, FlexPatternHop hop)
GtfsFlexGraphModifiergetLocationForTemporaryStop in class GtfsFlexGraphModifiers - State at which PatternHop was foundhop - PatternHop found during graph searchCopyright © 2019. All rights reserved.