Uses of Class
org.opentrafficsim.road.network.RoadNetwork
Package
Description
Generate GTUs according to some prescription.
The lane-based GTUs are the Generalized Travel Units that travel in lanes, and need to switch lanes to overtake.
Package for the Stochastic Distraction Model by and in cooperation with Manuel Lindorfer (manuel.lindorfer@fh-ooe.at).
Factories for Links, Lanes, Nodes.
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
Contains classes describing intersection conflicts.
Lane-based objects that act as sensors.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
O/D matrices as part of strategical planning for GTUs.
-
Uses of RoadNetwork in org.opentrafficsim.road.gtu.generator
Modifier and TypeMethodDescriptionvoid
GtuSpawner.spawnGtu
(String id, LaneBasedGtuCharacteristics templateGtuType, RoadNetwork network, org.djunits.value.vdouble.scalar.Speed speed, LanePosition position) Create a single GTU.ModifierConstructorDescriptionLaneBasedGtuGenerator
(String id, Generator<org.djunits.value.vdouble.scalar.Duration> interarrivelTimeGenerator, LaneBasedGtuCharacteristicsGenerator laneBasedGtuCharacteristicsGenerator, GeneratorPositions generatorPositions, RoadNetwork network, OtsSimulatorInterface simulator, LaneBasedGtuGenerator.RoomChecker roomChecker, Supplier<String> idGenerator) Construct a new lane base GTU generator. -
Uses of RoadNetwork in org.opentrafficsim.road.gtu.lane
ModifierConstructorDescriptionLaneBasedGtu
(String id, GtuType gtuType, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed maximumSpeed, org.djunits.value.vdouble.scalar.Length front, RoadNetwork network) Construct a Lane Based GTU. -
Uses of RoadNetwork in org.opentrafficsim.road.gtu.lane.perception.mental.sdm
ModifierConstructorDescriptionStochasticDistractionModel
(boolean allowMultiTasking, List<Distraction> distractions, OtsSimulatorInterface simulator, RoadNetwork network) Constructor. -
Uses of RoadNetwork in org.opentrafficsim.road.network.factory
Modifier and TypeMethodDescriptionstatic RoadNetwork
RoadNetworkUtils.copy
(RoadNetwork network) Make a copy of the network, without GTUs and listeners.Modifier and TypeMethodDescriptionstatic RoadNetwork
RoadNetworkUtils.copy
(RoadNetwork network) Make a copy of the network, without GTUs and listeners.static Lane
LaneFactory.makeLane
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, LaneType laneType, org.djunits.value.vdouble.scalar.Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple Lane.static CrossSectionLink
LaneFactory.makeLink
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, OtsSimulatorInterface simulator) Create a Link along intermediate coordinates from one Node to another.static Lane[]
LaneFactory.makeMultiLane
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, org.djunits.value.vdouble.scalar.Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]
LaneFactory.makeMultiLane
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, int laneCount, LaneType laneType, org.djunits.value.vdouble.scalar.Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]
LaneFactory.makeMultiLaneBezier
(RoadNetwork network, String name, Node n1, Node n2, Node n3, Node n4, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, org.djunits.value.vdouble.scalar.Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes, based on a Bezier curve.
This method returns an array of Lane.static String
RoadNetworkUtils.toXml
(RoadNetwork network) Create an xml-version of the network.static void
RoadNetworkUtils.toXml
(RoadNetwork network, OutputStream out) Create an xml-version of the network.static void
RoadNetworkUtils.toXml
(RoadNetwork network, Writer writer) Create an xml-version of the network.ModifierConstructorDescriptionLaneFactory
(RoadNetwork network, Node from, Node to, LinkType type, OtsSimulatorInterface simulator, LaneKeepingPolicy policy, GtuType gtuType) LaneFactory
(RoadNetwork network, Node from, Node to, LinkType type, OtsSimulatorInterface simulator, LaneKeepingPolicy policy, GtuType gtuType, ContinuousLine line) -
Uses of RoadNetwork in org.opentrafficsim.road.network.lane
Modifier and TypeMethodDescriptionfinal RoadNetwork
CrossSectionElement.getNetwork()
CrossSectionLink.getNetwork()
ModifierConstructorDescriptionCrossSectionLink
(RoadNetwork network, String id, Node startNode, Node endNode, LinkType linkType, OtsLine2d designLine, FractionalLengthData elevation, LaneKeepingPolicy laneKeepingPolicy) Construction of a cross section link. -
Uses of RoadNetwork in org.opentrafficsim.road.network.lane.conflict
Modifier and TypeMethodDescriptionstatic void
ConflictBuilder.buildConflicts
(RoadNetwork network, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on network.static void
ConflictBuilder.buildConflicts
(RoadNetwork network, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on network.static void
ConflictBuilder.buildConflictsParallel
(RoadNetwork network, Map<String, Set<Link>> conflictCandidateMap, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on network using only the groups of links that have been identified as candidates with conflicts; parallel implementation.static void
ConflictBuilder.buildConflictsParallel
(RoadNetwork network, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on network; parallel implementation.static void
ConflictBuilder.buildConflictsParallel
(RoadNetwork network, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on network; parallel implementation. -
Uses of RoadNetwork in org.opentrafficsim.road.network.lane.object.detector
Modifier and TypeMethodDescriptionstatic org.djutils.data.Table
LoopDetector.asTableNonPeriodicData
(RoadNetwork network) Returns a Table with all non-periodic data, such as vehicle passage times or platoon counts.static org.djutils.data.Table
LoopDetector.asTablePeriodicData
(RoadNetwork network) Returns a Table with all periodic data, such as flow and speed per minute.static org.djutils.data.Table
LoopDetector.asTablePositions
(RoadNetwork network) Returns a Table with loop detector positions. -
Uses of RoadNetwork in org.opentrafficsim.road.network.sampling
Modifier and TypeMethodDescriptionstatic RoadSampler.Factory
RoadSampler.build
(RoadNetwork network) Returns a factory to create a sampler.ModifierConstructorDescription(package private)
Factory
(RoadNetwork network) Constructor.RoadSampler
(Set<ExtendedDataType<?, ?, ?, ? super GtuDataRoad>> extendedDataTypes, Set<FilterDataType<?, ? super GtuDataRoad>> filterDataTypes, RoadNetwork network) Constructor which uses the operational plan updates of GTU's as sampling interval.RoadSampler
(Set<ExtendedDataType<?, ?, ?, ? super GtuDataRoad>> extendedDataTypes, Set<FilterDataType<?, ? super GtuDataRoad>> filterDataTypes, RoadNetwork network, org.djunits.value.vdouble.scalar.Frequency frequency) Constructor which uses the given frequency to determine the sampling interval.RoadSampler
(RoadNetwork network) Constructor which uses the operational plan updates of GTU's as sampling interval.RoadSampler
(RoadNetwork network, org.djunits.value.vdouble.scalar.Frequency frequency) Constructor which uses the given frequency to determine the sampling interval. -
Uses of RoadNetwork in org.opentrafficsim.road.od
Modifier and TypeMethodDescriptionstatic Map<String,
OdApplier.GeneratorObjects> OdApplier.applyOd
(RoadNetwork network, OdMatrix od, OdOptions odOptions, DetectorType detectorType) Applies the OD to the network by creating vehicle generators.