Class NetworkTeleatlasAddSpeedRestrictions
- java.lang.Object
-
- org.matsim.core.network.algorithms.NetworkTeleatlasAddSpeedRestrictions
-
- All Implemented Interfaces:
NetworkRunnable
public final class NetworkTeleatlasAddSpeedRestrictions extends Object implements NetworkRunnable
Adds additional speed restrictions to a MATSimnetwork
created byNetworkReaderTeleatlas
. The input speed restriction DBF file is based on Tele Atlas MultiNet Shapefile 4.3.2.1 Format Specifications document version Final v1.0, June 2007.- Author:
- balmermi
-
-
Constructor Summary
Constructors Constructor Description NetworkTeleatlasAddSpeedRestrictions(String srDbfFileName)
To add speed restrictions to a Tele Atlas MultiNetnetwork
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printInfo(String prefix)
prints the variable settings to the STDOUTvoid
run(Network network)
-
-
-
Constructor Detail
-
NetworkTeleatlasAddSpeedRestrictions
public NetworkTeleatlasAddSpeedRestrictions(String srDbfFileName)
To add speed restrictions to a Tele Atlas MultiNetnetwork
.- Parameters:
srDbfFileName
- Tele Atlas MultiNet speed restriction DBF file
-
-
Method Detail
-
run
public void run(Network network)
Reading and assigning speed restrictions to thelinks
of anetwork
.It uses the following attributes from the Tele Atlas MultiNet speed restriction DBF file:
SR_ID_NAME
(Feature Identification)SR_SPEED_NAME
(Speed Restriction)-
SR_VALDIR_NAME
(Validity Direction)- 1: Valid in Both Directions
- 2: Valid Only in Positive Direction
- 3: Valid Only in Negative Direction
-
SR_VERIFIED_NAME
(Verified)- 0: Not Verified (default)
- 1: Verified
Conversion rules:
- speed restrictions that are not verified will be ignored.
- speed restrictions will be assigned in given directions (
SR_VALDIR_NAME
) - speed restrictions will be ignored if the corresponding
link
is not found (produces a trace message). - speed restrictions will not be assigned to the
link
if it already contains a speed that is lower then the one from the speed restrictions file.
- Specified by:
run
in interfaceNetworkRunnable
- Parameters:
network
-- Throws:
RuntimeException
- with another Exception in it in the case something goes wrong
-
-