19 package org.matsim.core.router;
21 import java.util.Arrays;
22 import java.util.List;
78 Leg newLeg = this.populationFactory.
createLeg( this.mode );
84 if ( fromLink==null ) {
98 if (toLink != fromLink) {
110 throw new RuntimeException(
"No route found from node " + startNode.
getId() +
" to node " + endNode.
getId() +
" by mode " + this.mode +
".");
129 return Arrays.asList( newLeg );
134 return "[NetworkRoutingModule: mode="+this.mode+
"]";
NetworkRoutingModule(final String mode, final PopulationFactory populationFactory, final Network network, final LeastCostPathCalculator routeAlgo)
void setDistance(final double distance)
final LeastCostPathCalculator routeAlgo
Leg createLeg(String legMode)
void setDepartureTime(final double seconds)
Path calcLeastCostPath(Node fromNode, Node toNode, double starttime, final Person person, final Vehicle vehicle)
List<? extends PlanElement > calcRoute(RoutingRequest request)
double getDepartureTime()
RouteFactories getRouteFactories()
static Link getNearestLink(Network network, final Coord coord)
void setRoute(Route route)
static void assertNotNull(Object obj)
static List< Id< Link > > getLinkIds(final String links)
static double calcDistance(final NetworkRoute networkRoute, final double relPosOnDepartureLink, final double relPosOnArrivalLink, final Network network)
Map< Id< Link >, ? extends Link > getLinks()
final PopulationFactory populationFactory
void setTravelTime(final double seconds)
void setTravelTime(final double travelTime)
Facility getFromFacility()