public final class ConflictBuilder extends Object
Copyright (c) 2013-2018 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 |
ConflictBuilder.FixedWidthGenerator
Generator with fixed width.
|
static class |
ConflictBuilder.RelativeWidthGenerator
Generator with width factor on actual lane width.
|
static interface |
ConflictBuilder.WidthGenerator
Generator for width.
|
| Modifier and Type | Field and Description |
|---|---|
static ConflictBuilder.WidthGenerator |
DEFAULT_WIDTH_GENERATOR
Default width generator for conflicts which uses 80% of the lane width.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
buildConflicts(Lane lane1,
org.opentrafficsim.core.gtu.GTUDirectionality dir1,
Lane lane2,
org.opentrafficsim.core.gtu.GTUDirectionality dir2,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator)
Build conflict on single lane pair.
|
static void |
buildConflicts(Lane lane1,
org.opentrafficsim.core.gtu.GTUDirectionality dir1,
Lane lane2,
org.opentrafficsim.core.gtu.GTUDirectionality dir2,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator,
boolean permitted)
Build conflict on single lane pair.
|
static void |
buildConflicts(List<Lane> lanes,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator)
Build conflicts on list of lanes.
|
static void |
buildConflicts(List<Lane> lanes,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator,
LaneCombinationList ignoreList,
LaneCombinationList permittedList)
Build conflicts on list of lanes.
|
static void |
buildConflicts(org.opentrafficsim.core.network.OTSNetwork network,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator)
Build conflicts on network.
|
static void |
buildConflicts(org.opentrafficsim.core.network.OTSNetwork network,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator,
LaneCombinationList ignoreList,
LaneCombinationList permittedList)
Build conflicts on network.
|
public static final ConflictBuilder.WidthGenerator DEFAULT_WIDTH_GENERATOR
public static void buildConflicts(org.opentrafficsim.core.network.OTSNetwork network,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator)
throws org.opentrafficsim.core.geometry.OTSGeometryException
network - networkgtuType - gtu typesimulator - simulatorwidthGenerator - width generatororg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionpublic static void buildConflicts(org.opentrafficsim.core.network.OTSNetwork network,
org.opentrafficsim.core.gtu.GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
ConflictBuilder.WidthGenerator widthGenerator,
LaneCombinationList ignoreList,
LaneCombinationList permittedList)
throws org.opentrafficsim.core.geometry.OTSGeometryException
network - networkgtuType - gtu typesimulator - simulatorwidthGenerator - width generatorignoreList - lane combinations to ignorepermittedList - lane combinations that are permitted by traffic controlorg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionpublic static void buildConflicts(List<Lane> lanes, org.opentrafficsim.core.gtu.GTUType gtuType, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator) throws org.opentrafficsim.core.geometry.OTSGeometryException
lanes - lanesgtuType - gtu typesimulator - simulatorwidthGenerator - width generatororg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionpublic static void buildConflicts(List<Lane> lanes, org.opentrafficsim.core.gtu.GTUType gtuType, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) throws org.opentrafficsim.core.geometry.OTSGeometryException
lanes - List<Lane>; list of LanesgtuType - GTUType; the GTU typesimulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulatorwidthGenerator - WidthGenerator; the width generatorignoreList - lane combinations to ignorepermittedList - LaneCombinationList; lane combinations that are permitted by traffic controlorg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionpublic static void buildConflicts(Lane lane1, org.opentrafficsim.core.gtu.GTUDirectionality dir1, Lane lane2, org.opentrafficsim.core.gtu.GTUDirectionality dir2, org.opentrafficsim.core.gtu.GTUType gtuType, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator) throws org.opentrafficsim.core.geometry.OTSGeometryException
lane1 - lane 1dir1 - gtu direction 1lane2 - lane 2dir2 - gtu direction 2gtuType - gtu typesimulator - simulatorwidthGenerator - width generatororg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionpublic static void buildConflicts(Lane lane1, org.opentrafficsim.core.gtu.GTUDirectionality dir1, Lane lane2, org.opentrafficsim.core.gtu.GTUDirectionality dir2, org.opentrafficsim.core.gtu.GTUType gtuType, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, boolean permitted) throws org.opentrafficsim.core.geometry.OTSGeometryException
lane1 - lane 1dir1 - gtu direction 1lane2 - lane 2dir2 - gtu direction 2gtuType - gtu typesimulator - simulatorwidthGenerator - width generatorpermitted - conflict permitted by traffic controlorg.opentrafficsim.core.geometry.OTSGeometryException - in case of geometry exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.