|
MATSIM
|
Static Public Member Functions | |
| static Lanes | createLanesContainer () |
| static void | createAndAddLane (LanesToLinkAssignment l2l, LanesFactory factory, Id< Lane > laneId, double capacity, double startsAtMeterFromLinkEnd, int alignment, int numberOfRepresentedLanes, List< Id< Link >> toLinkIds, List< Id< Lane >> toLaneIds) |
| static void | createOriginalLanesAndSetLaneCapacities (Network network, Lanes lanes) |
| static List< ModelLane > | createLanes (Link link, LanesToLinkAssignment lanesToLinkAssignment) |
| static void | calculateAndSetCapacity (Lane lane, boolean isLaneAtLinkEnd, Link link, Network network) |
| static void | calculateMissingCapacitiesForLanes20 (String networkInputFilename, String lanes20InputFilename, String lanes20OutputFilename) |
| static void | overwriteLaneCapacitiesByNetworkCapacities (Network net, Lanes lanes) |
Definition at line 37 of file LanesUtils.java.
|
static |
Definition at line 39 of file LanesUtils.java.
|
static |
Convenience method to create a lane with the given Id, the given length, the given capacity, the given number of represented lanes, the given alignment and the given Ids of the downstream links or lanes, respectively, the lane leads to. The lane is added to the LanesToLinkAssignment given as parameter.
| l2l | the LanesToLinkAssignment to that the created lane is added |
| factory | a LaneDefinitionsFactory to create the lane |
| laneId | |
| capacity | |
| startsAtMeterFromLinkEnd | |
| alignment | |
| numberOfRepresentedLanes | |
| toLinkIds | |
| toLaneIds |
Definition at line 62 of file LanesUtils.java.
References org.matsim.lanes.LanesToLinkAssignment.addLane(), org.matsim.lanes.Lane.addToLaneId(), org.matsim.lanes.Lane.addToLinkId(), org.matsim.lanes.LanesFactory.createLane(), org.matsim.lanes.Lane.setAlignment(), org.matsim.lanes.Lane.setCapacityVehiclesPerHour(), org.matsim.lanes.Lane.setNumberOfRepresentedLanes(), and org.matsim.lanes.Lane.setStartsAtMeterFromLinkEnd().

|
static |
Replaces the method that converted a lane from format 11 to format 20. Use this when you have not defined an original lane of the link and when you have not set lane capacities yet.
Definition at line 89 of file LanesUtils.java.
References org.matsim.lanes.Lane.addToLaneId(), org.matsim.lanes.LanesUtils.calculateAndSetCapacity(), org.matsim.api.core.v01.Id< T >.create(), org.matsim.lanes.LanesFactory.createLane(), org.matsim.lanes.Lanes.getFactory(), org.matsim.lanes.Lanes.getLanesToLinkAssignments(), org.matsim.api.core.v01.network.Link.getLength(), org.matsim.api.core.v01.network.Network.getLinks(), org.matsim.api.core.v01.network.Link.getNumberOfLanes(), org.matsim.lanes.Lane.setNumberOfRepresentedLanes(), and org.matsim.lanes.Lane.setStartsAtMeterFromLinkEnd().

|
static |
Creates a sorted list of lanes for a link.
| link | |
| lanesToLinkAssignment |
Definition at line 113 of file LanesUtils.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.lanes.ModelLane.getLaneData(), org.matsim.lanes.LanesToLinkAssignment.getLanes(), org.matsim.api.core.v01.network.Link.getLength(), org.matsim.lanes.Lane.getStartsAtMeterFromLinkEnd(), org.matsim.lanes.Lane.getToLaneIds(), org.matsim.lanes.ModelLane.getToLanes(), and org.matsim.lanes.Lane.getToLinkIds().
Referenced by org.matsim.core.mobsim.qsim.qnetsimengine.QLanesNetworkFactory.createNetsimLink().

|
static |
Calculate capacity by formular from Neumann2008DA:
Flow of a Lane is given by the flow of the link divided by the number of lanes represented by the link.
A Lane may represent one or more lanes in reality. This is given by the attribute numberOfRepresentedLanes of the Lane definition. The flow of a lane is scaled by this number.
Definition at line 210 of file LanesUtils.java.
References org.matsim.api.core.v01.network.Link.getCapacity(), org.matsim.api.core.v01.network.Network.getCapacityPeriod(), org.matsim.api.core.v01.network.Link.getNumberOfLanes(), org.matsim.lanes.Lane.getNumberOfRepresentedLanes(), and org.matsim.lanes.Lane.setCapacityVehiclesPerHour().
Referenced by org.matsim.lanes.LanesUtils.calculateMissingCapacitiesForLanes20(), and org.matsim.lanes.LanesUtils.createOriginalLanesAndSetLaneCapacities().

|
static |
Definition at line 225 of file LanesUtils.java.
References org.matsim.lanes.LanesUtils.calculateAndSetCapacity(), org.matsim.core.config.ConfigUtils.createConfig(), org.matsim.api.core.v01.Scenario.getLanes(), org.matsim.lanes.Lanes.getLanesToLinkAssignments(), org.matsim.api.core.v01.network.Network.getLinks(), org.matsim.api.core.v01.Scenario.getNetwork(), org.matsim.core.scenario.ScenarioUtils.loadScenario(), org.matsim.core.config.Config.network(), org.matsim.core.config.Config.qsim(), org.matsim.core.config.groups.NetworkConfigGroup.setInputFile(), org.matsim.core.config.groups.NetworkConfigGroup.setLaneDefinitionsFile(), org.matsim.core.config.groups.QSimConfigGroup.setUseLanes(), and org.matsim.lanes.LanesWriter.write().

|
static |
Definition at line 248 of file LanesUtils.java.
References org.matsim.lanes.Lanes.getLanesToLinkAssignments(), and org.matsim.api.core.v01.network.Network.getLinks().

1.8.13