Class ConflictBuilderParallel
- java.lang.Object
-
- org.opentrafficsim.road.network.lane.conflict.ConflictBuilderParallel
-
public final class ConflictBuilderParallel extends Object
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 11 dec. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConflictBuilderParallel.FixedWidthGeneratorGenerator with fixed width.static classConflictBuilderParallel.RelativeWidthGeneratorGenerator with width factor on actual lane width.static interfaceConflictBuilderParallel.WidthGeneratorGenerator for width.
-
Field Summary
Fields Modifier and Type Field Description static ConflictBuilderParallel.WidthGeneratorDEFAULT_WIDTH_GENERATORDefault width generator for conflicts which uses 80% of the lane width.
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_WIDTH_GENERATOR
public static final ConflictBuilderParallel.WidthGenerator DEFAULT_WIDTH_GENERATOR
Default width generator for conflicts which uses 80% of the lane width.
-
-
Method Detail
-
buildConflicts
public static void buildConflicts(OTSRoadNetwork network, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)
Build conflicts on network.- Parameters:
network- OTSRoadNetwork; networkgtuType- GTUType; gtu typesimulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator- WidthGenerator; width generator
-
buildConflicts
public static void buildConflicts(OTSRoadNetwork network, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on network.- Parameters:
network- OTSRoadNetwork; networkgtuType- GTUType; gtu typesimulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator- WidthGenerator; width generatorignoreList- LaneCombinationList; lane combinations to ignorepermittedList- LaneCombinationList; lane combinations that are permitted by traffic control
-
buildConflicts
public static void buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)
Build conflicts on list of lanes.- Parameters:
lanes- List<Lane>; lanesgtuType- GTUType; gtu typesimulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator- WidthGenerator; width generator
-
buildConflictsParallelSmall
public static void buildConflictsParallelSmall(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on list of lanes. Small jobs for parallelization.- Parameters:
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 control
-
buildConflictsParallelBig
public static void buildConflictsParallelBig(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on list of lanes. Parallelize bigger jobs- Parameters:
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 control
-
buildConflicts
public static void buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)
Build conflict on single lane pair. Connecting lanes are determined.- Parameters:
lane1- Lane; lane 1dir1- GTUDirectionality; gtu direction 1lane2- Lane; lane 2dir2- GTUDirectionality; gtu direction 2gtuType- GTUType; gtu typesimulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorwidthGenerator- WidthGenerator; width generator
-
buildConflicts
public static void buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, boolean permitted)
Build conflict on single lane pair. Connecting lanes are determined.- Parameters:
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 control
-
-