MATSIM
NetworkRoute.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * CarRoute.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2008 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.population.routes;
22 
23 import java.util.List;
24 
25 import org.matsim.api.core.v01.Id;
28 import org.matsim.vehicles.Vehicle;
29 
30 
37 public interface NetworkRoute extends Route {
38 
39  public void setLinkIds(final Id<Link> startLinkId, final List<Id<Link>> linkIds, final Id<Link> endLinkId);
40 
45  public void setTravelCost(final double travelCost);
46 
51  public double getTravelCost();
52 
59  public List<Id<Link>> getLinkIds();
60 
69  public NetworkRoute getSubRoute(final Id<Link> fromLinkId, final Id<Link> toLinkId);
70  // yyyy my intuition is that this should be removed from the API (and replaced by a static method in RouteUtils). kai, oct'17
71 
77  public abstract void setVehicleId(final Id<Vehicle> vehicleId);
78 
82  public abstract Id<Vehicle> getVehicleId();
83  // Does it really make sense to couple the vehicle to the route? I would have coupled it to the leg. kai, aug'10
84  // Well, I guess now it belongs to the route. :-) kai, aug'10
85 
86  @Override
87  public NetworkRoute clone();
88  // to get the correct interface type. kai, sep'17
89 
90 }
void setTravelCost(final double travelCost)
NetworkRoute getSubRoute(final Id< Link > fromLinkId, final Id< Link > toLinkId)
abstract void setVehicleId(final Id< Vehicle > vehicleId)
void setLinkIds(final Id< Link > startLinkId, final List< Id< Link >> linkIds, final Id< Link > endLinkId)