-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
10,274 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.matsim.prepare.network; | ||
|
||
import org.matsim.application.prepare.network.opt.FeatureRegressor; | ||
import org.matsim.application.prepare.network.opt.NetworkModel; | ||
|
||
public class BerlinNetworkParams implements NetworkModel { | ||
@Override | ||
public FeatureRegressor capacity(String junctionType) { | ||
return switch (junctionType) { | ||
case "traffic_light" -> BerlinNetworkParams_capacity_traffic_light.INSTANCE; | ||
case "right_before_left" -> BerlinNetworkParams_capacity_right_before_left.INSTANCE; | ||
case "priority" -> BerlinNetworkParams_capacity_priority.INSTANCE; | ||
default -> throw new IllegalArgumentException("Unknown type: " + junctionType); | ||
}; | ||
} | ||
|
||
@Override | ||
public FeatureRegressor speedFactor(String junctionType) { | ||
return switch (junctionType) { | ||
case "traffic_light" -> BerlinNetworkParams_speedRelative_traffic_light.INSTANCE; | ||
case "right_before_left" -> BerlinNetworkParams_speedRelative_right_before_left.INSTANCE; | ||
case "priority" -> BerlinNetworkParams_speedRelative_priority.INSTANCE; | ||
default -> throw new IllegalArgumentException("Unknown type: " + junctionType); | ||
}; | ||
} | ||
} |
3,831 changes: 3,831 additions & 0 deletions
3,831
src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.