public final class ConflictBuilder 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 |
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.
|
public static final ConflictBuilder.WidthGenerator DEFAULT_WIDTH_GENERATOR
public static void buildConflicts(OTSNetwork network, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator) throws OTSGeometryException
network
- OTSNetwork; networkgtuType
- GTUType; gtu typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator
- WidthGenerator; width generatorOTSGeometryException
- in case of geometry exceptionpublic static void buildConflicts(OTSNetwork network, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) throws OTSGeometryException
network
- OTSNetwork; networkgtuType
- GTUType; gtu typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator
- WidthGenerator; width generatorignoreList
- LaneCombinationList; lane combinations to ignorepermittedList
- LaneCombinationList; lane combinations that are permitted by traffic controlOTSGeometryException
- in case of geometry exceptionpublic static void buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator) throws OTSGeometryException
lanes
- List<Lane>; lanesgtuType
- GTUType; gtu typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator
- WidthGenerator; width generatorOTSGeometryException
- in case of geometry exceptionpublic static void buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) throws OTSGeometryException
lanes
- List<Lane>; list of LanesgtuType
- GTUType; the GTU typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; the simulatorwidthGenerator
- WidthGenerator; the width generatorignoreList
- LaneCombinationList; lane combinations to ignorepermittedList
- LaneCombinationList; lane combinations that are permitted by traffic controlOTSGeometryException
- in case of geometry exceptionpublic static void buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator) throws OTSGeometryException
lane1
- Lane; lane 1dir1
- GTUDirectionality; gtu direction 1lane2
- Lane; lane 2dir2
- GTUDirectionality; gtu direction 2gtuType
- GTUType; gtu typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator
- WidthGenerator; width generatorOTSGeometryException
- in case of geometry exceptionpublic static void buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, boolean permitted) throws OTSGeometryException
lane1
- Lane; lane 1dir1
- GTUDirectionality; gtu direction 1lane2
- Lane; lane 2dir2
- GTUDirectionality; gtu direction 2gtuType
- GTUType; gtu typesimulator
- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator
- WidthGenerator; width generatorpermitted
- boolean; conflict permitted by traffic controlOTSGeometryException
- in case of geometry exceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.