Uses of Interface
org.opentrafficsim.road.gtu.generator.GeneratorPositions
Package
Description
Generate GTUs according to some prescription.
-
Uses of GeneratorPositions in org.opentrafficsim.road.gtu.generator
Modifier and TypeClassDescriptionclass
Injections can be used to have a large degree of control over GTU generation.Modifier and TypeMethodDescriptionstatic GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Map<CrossSectionLink, Double> linkWeights, Map<CrossSectionLink, Node> viaNodes) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, GeneratorPositions.LaneBiases biases) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, GeneratorPositions.LaneBiases laneBiases, Map<CrossSectionLink, Double> linkWeights, Map<CrossSectionLink, Node> viaNodes) Create a GeneratorPositions object to draw positions from.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.