Uses of Class
org.opentrafficsim.road.od.Category
Package
Description
Generate GTUs according to some prescription.
Classes concerning generation of
LaneBasedGtuCharacteristicsGenerator
for vehicle generation.O/D matrices as part of strategical planning for GTUs.
-
Uses of Category in org.opentrafficsim.road.gtu.generator
Modifier and TypeMethodDescriptionPlatoons.ofCategory
(LaneBasedGtuCharacteristicsGeneratorOd characteristics, OtsSimulatorInterface simulator, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Lane position) Creates aPlatoon<Category>
instance for platoons. -
Uses of Category in org.opentrafficsim.road.gtu.generator.characteristics
Modifier and TypeMethodDescriptionDefaultLaneBasedGtuCharacteristicsGeneratorOd.draw
(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) Generate newLaneBasedGtuCharacteristics
using given input from OD.LaneBasedGtuCharacteristicsGeneratorOd.draw
(Node origin, Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) Generate newLaneBasedGtuCharacteristics
using given input from OD. -
Uses of Category in org.opentrafficsim.road.od
Modifier and TypeMethodDescriptionOdMatrix.getCategories
(Node origin, Node destination) Returns the categories specified for given origin-destination combination.Modifier and TypeMethodDescriptionfinal boolean
final org.djunits.value.vdouble.scalar.Frequency
OdMatrix.getDemand
(Node origin, Node destination, Category category, org.djunits.value.vdouble.scalar.Time time, boolean sliceStart) Returns the demand at given time.OdMatrix.getDemandPattern
(Node origin, Node destination, Category category) final org.djunits.value.vdouble.vector.FrequencyVector
OdMatrix.getDemandVector
(Node origin, Node destination, Category category) final Interpolation
OdMatrix.getInterpolation
(Node origin, Node destination, Category category) final org.djunits.value.vdouble.vector.TimeVector
OdMatrix.getTimeVector
(Node origin, Node destination, Category category) final int
Returns the number of trips in the given time period.final int[]
OdMatrix.getTripsVector
(Node origin, Node destination, Category category) final void
OdMatrix.increaseTrips
(Node origin, Node destination, Category category, int periodIndex, int trips) Adds a number of trips to given origin-destination combination, category and time period.final void
OdMatrix.putDemandVector
(Node origin, Node destination, Category category, org.djunits.value.vdouble.vector.FrequencyVector demand) Add a demand vector to OD.final void
OdMatrix.putDemandVector
(Node origin, Node destination, Category category, org.djunits.value.vdouble.vector.FrequencyVector demand, double fraction) Add a demand vector to OD.final void
OdMatrix.putDemandVector
(Node origin, Node destination, Category category, org.djunits.value.vdouble.vector.FrequencyVector demand, org.djunits.value.vdouble.vector.TimeVector timeVector, Interpolation interpolation) Add a demand vector to OD.final void
OdMatrix.putDemandVector
(Node origin, Node destination, Category category, org.djunits.value.vdouble.vector.FrequencyVector demand, org.djunits.value.vdouble.vector.TimeVector timeVector, Interpolation interpolation, double fraction) Add a demand vector to OD, by a fraction of total demand.final void
OdMatrix.putDemandVector
(Node origin, Node destination, Category category, org.djunits.value.vdouble.vector.FrequencyVector demand, org.djunits.value.vdouble.vector.TimeVector timeVector, Interpolation interpolation, double[] fraction) Add a demand vector to OD, by a fraction per time period of total demand.final void
OdMatrix.putTripsVector
(Node origin, Node destination, Category category, int[] trips) final void
OdMatrix.putTripsVector
(Node origin, Node destination, Category category, int[] trips, org.djunits.value.vdouble.vector.TimeVector timeVector) Sets demand data by number of trips.