public final class ODApplier extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
ODApplier.GeneratorObjects
Class to contain created generator objects.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,ODApplier.GeneratorObjects> |
applyOD(OTSNetwork network,
ODMatrix od,
OTSSimulatorInterface simulator,
ODOptions odOptions)
Applies the OD to the network by creating vehicle generators.
|
public static Map<String,ODApplier.GeneratorObjects> applyOD(OTSNetwork network, ODMatrix od, OTSSimulatorInterface simulator, ODOptions odOptions) throws ParameterException, SimRuntimeException
GeneratorObjects
and mapped to the vehicle generator id. Vehicle generator id
is equal to the origin node id. For lane-based generators the id's are appended with an ordered number (e.g. A1), where
the ordering is first by link id, and then right to left concerning the lateral lane position at the start of the lane.
For node "A" this would for example be:Generator id | Link | Lateral start offset |
---|---|---|
A1 | AB | -1.75m |
A2 | AB | 1.75m |
A3 | AC | -3.5m |
A4 | AC | 0.0m |
network
- OTSNetwork; networkod
- ODMatrix; OD matrixsimulator
- OTSSimulatorInterface; simulatorodOptions
- ODOptions; options for vehicle generationParameterException
- if a parameter is missingSimRuntimeException
- if this method is called after simulation time 0Copyright © 2014–2019 Delft University of Technology. All rights reserved.