MATSIM
core
population
routes
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
;
26
import
org
.
matsim
.
api
.
core
.
v01
.
network
.
Link
;
27
import
org
.
matsim
.
api
.
core
.
v01
.
population
.
Route
;
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
}
org.matsim.api.core.v01.network
Definition:
Link.java:20
org.matsim.api.core.v01.Id
Definition:
Id.java:44
org.matsim.core.population.routes.NetworkRoute
Definition:
NetworkRoute.java:37
org.matsim.api.core.v01.population
Definition:
Activity.java:21
org
org.matsim.core.population.routes.NetworkRoute.setTravelCost
void setTravelCost(final double travelCost)
org.matsim.api.core.v01.population.Route
Definition:
Route.java:30
org.matsim.api
org.matsim.core.population.routes.NetworkRoute.getSubRoute
NetworkRoute getSubRoute(final Id< Link > fromLinkId, final Id< Link > toLinkId)
org.matsim.core.population.routes.NetworkRoute.getTravelCost
double getTravelCost()
org.matsim.core.population.routes.NetworkRoute.getLinkIds
List< Id< Link > > getLinkIds()
org.matsim.vehicles.Vehicle
Definition:
Vehicle.java:28
org.matsim.core.population.routes.NetworkRoute.clone
NetworkRoute clone()
org.matsim.vehicles
Definition:
CostInformation.java:19
org.matsim.core.population.routes.NetworkRoute.setVehicleId
abstract void setVehicleId(final Id< Vehicle > vehicleId)
org.matsim.core.population.routes.NetworkRoute.getVehicleId
abstract Id< Vehicle > getVehicleId()
org.matsim.api.core
org.matsim
org.matsim.api.core.v01.network.Link
Definition:
Link.java:34
org.matsim.core.population.routes.NetworkRoute.setLinkIds
void setLinkIds(final Id< Link > startLinkId, final List< Id< Link >> linkIds, final Id< Link > endLinkId)
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
Generated by
1.8.13