MATSIM
utils
gis
matsim2esri
network
CapacityBasedWidthCalculator.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* CapacityBasedWidthCalculator.java
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2007 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.utils.gis.matsim2esri.network;
22
23
import
org
.
matsim
.
api
.
core
.
v01
.
network
.
Link
;
24
import
org
.
matsim
.
api
.
core
.
v01
.
network
.
Network
;
25
26
public
class
CapacityBasedWidthCalculator
implements
WidthCalculator
{
27
28
private
final
double
widthCoefficient
;
29
30
public
CapacityBasedWidthCalculator
(
final
Network
network,
final
Double coef) {
31
this.widthCoefficient = coef;
32
}
33
34
@Override
35
public
double
getWidth
(
final
Link
link) {
36
return
link.
getCapacity
() * this.
widthCoefficient
;
37
}
38
}
org.matsim.api.core.v01.network
Definition:
Link.java:20
org.matsim.utils.gis.matsim2esri.network.WidthCalculator
Definition:
WidthCalculator.java:25
org
org.matsim.utils.gis.matsim2esri.network.CapacityBasedWidthCalculator.widthCoefficient
final double widthCoefficient
Definition:
CapacityBasedWidthCalculator.java:28
org.matsim.api
org.matsim.api.core
org.matsim.api.core.v01.network.Network
Definition:
Network.java:32
org.matsim.utils.gis.matsim2esri.network.CapacityBasedWidthCalculator.CapacityBasedWidthCalculator
CapacityBasedWidthCalculator(final Network network, final Double coef)
Definition:
CapacityBasedWidthCalculator.java:30
org.matsim
org.matsim.api.core.v01.network.Link
Definition:
Link.java:34
org.matsim.utils.gis.matsim2esri.network.CapacityBasedWidthCalculator
Definition:
CapacityBasedWidthCalculator.java:26
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
org.matsim.utils.gis.matsim2esri.network.CapacityBasedWidthCalculator.getWidth
double getWidth(final Link link)
Definition:
CapacityBasedWidthCalculator.java:35
org.matsim.api.core.v01.network.Link.getCapacity
double getCapacity()
Generated by
1.8.13