Class GeneratorPositions.GeneratorZonePosition
java.lang.Object
org.opentrafficsim.road.gtu.generator.GeneratorPositions.GeneratorZonePosition
- Enclosing interface:
- GeneratorPositions
Class representing a vehicle generation zone to provide individual generation positions.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
ConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescription(package private) GeneratorPositions.GeneratorLinkPosition
draw
(GtuType gtuType, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Node destination, Route route) Draws a GeneratorLinkPosition using number of accessible lanes for the GtuType as weight, and a GeneratorLanePosition from that.toString()
-
Constructor Details
-
GeneratorZonePosition
GeneratorZonePosition(List<GeneratorPositions.GeneratorLinkPosition> positions) Constructor.- Parameters:
positions
- List<GeneratorLinkPosition>; contained links
-
-
Method Details
-
draw
GeneratorPositions.GeneratorLinkPosition draw(GtuType gtuType, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Node destination, Route route) Draws a GeneratorLinkPosition using number of accessible lanes for the GtuType as weight, and a GeneratorLanePosition from that.- Parameters:
gtuType
- GtuType; GTU typestream
- StreamInterface; stream for random numbersdestination
- Node; destination noderoute
- Route; route, may benull
- Returns:
- GeneratorLanePosition; draws a LinkPosition using number of accessible lanes for the GtuType as weight, and a GeneratorLanePosition from that
-
toString
-