public class ODOptions 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 | Field and Description |
---|---|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<IdGenerator> |
GTU_ID
ID generator option.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<GTUCharacteristicsGeneratorOD> |
GTU_TYPE
GTU characteristics generator option.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<ArrivalsHeadwayGenerator.HeadwayDistribution> |
HEADWAY_DIST
Headway randomization option.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<GeneratorPositions.LaneBiases> |
LANE_BIAS
Lane bias.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<MarkovCorrelation<GTUType,Frequency>> |
MARKOV
Markov chain for GTU type option.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<Length> |
NO_LC_DIST
Initial distance over which lane changes shouldn't be performed option.
|
static org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<LaneBasedGTUGenerator.RoomChecker> |
ROOM_CHECKER
Room checker option.
|
Constructor and Description |
---|
ODOptions() |
Modifier and Type | Method and Description |
---|---|
<K> K |
get(org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option,
Lane lane,
Node node,
LinkType linkType)
Get option value.
|
<K> ODOptions |
set(Lane lane,
org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option,
K value)
Set option value for lane.
|
<K> ODOptions |
set(LinkType linkType,
org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option,
K value)
Set option value for link type.
|
<K> ODOptions |
set(Node node,
org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option,
K value)
Set option value for node.
|
<K> ODOptions |
set(org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option,
K value)
Set option value.
|
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<ArrivalsHeadwayGenerator.HeadwayDistribution> HEADWAY_DIST
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<IdGenerator> GTU_ID
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<GTUCharacteristicsGeneratorOD> GTU_TYPE
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<LaneBasedGTUGenerator.RoomChecker> ROOM_CHECKER
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<MarkovCorrelation<GTUType,Frequency>> MARKOV
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<GeneratorPositions.LaneBiases> LANE_BIAS
public static final org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<Length> NO_LC_DIST
public final <K> ODOptions set(org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option, K value)
K
- value typeoption
- Option<K>; optionvalue
- K; option valuepublic final <K> ODOptions set(Lane lane, org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option, K value)
K
- value typelane
- Lane; laneoption
- Option<K>; optionvalue
- K; option valuepublic final <K> ODOptions set(Node node, org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option, K value)
K
- value typenode
- Node; nodeoption
- Option<K>; optionvalue
- K; option valuepublic final <K> ODOptions set(LinkType linkType, org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option, K value)
K
- value typelinkType
- LinkType; link typeoption
- Option<K>; optionvalue
- K; option valuepublic final <K> K get(org.opentrafficsim.road.gtu.generator.od.ODOptions.Option<K> option, Lane lane, Node node, LinkType linkType)
Lane
Node
(origin)LinkType
K
- value typeoption
- Option<K>; optionlane
- Lane; lane to obtain specific option value, may be nullnode
- Node; node to obtain specific option value, may be nulllinkType
- LinkType; link type to obtain specific option value, may be nullCopyright © 2014–2019 Delft University of Technology. All rights reserved.