| Package | Description |
|---|---|
| org.opentrafficsim.core.distributions |
Generic implementation of a set of objects with defined probabilities / frequencies.
|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| org.opentrafficsim.core.network.route |
Routes and route probabilities.
|
| Modifier and Type | Method and Description |
|---|---|
Distribution<O> |
Distribution.add(Distribution.FrequencyAndObject<O> generator)
Append a generator to the internally stored list.
|
Distribution<O> |
Distribution.add(int index,
Distribution.FrequencyAndObject<O> generator)
Insert a generator at the specified position in the internally stored list.
|
O |
Generator.draw()
Generate the next object.
|
O |
Distribution.draw()
Generate the next object.
|
Distribution.FrequencyAndObject<O> |
Distribution.get(int index)
Retrieve one of the internally stored generators.
|
Distribution<O> |
Distribution.modifyFrequency(int index,
double frequency)
Alter the frequency (or probability) of one of the stored generators.
|
Distribution<O> |
Distribution.remove(int index)
Remove the generator at the specified position from the internally stored list.
|
Distribution<O> |
Distribution.set(int index,
Distribution.FrequencyAndObject<O> generator)
Replace the generator at the specified position.
|
| Constructor and Description |
|---|
Distribution(List<Distribution.FrequencyAndObject<O>> generators,
StreamInterface stream)
Construct a new Distribution.
|
Distribution(StreamInterface stream)
Construct a new Distribution with no generators.
|
| Modifier and Type | Method and Description |
|---|---|
GTUCharacteristics |
TemplateGTUType.draw()
Returns characteristics for the given GTU.
|
| Modifier and Type | Method and Description |
|---|---|
Route |
RouteGenerator.draw()
Return the (next) Route.
|
Route |
ProbabilisticRouteGenerator.draw()
Return the (next) Route.
|
| Constructor and Description |
|---|
ProbabilisticRouteGenerator(List<Distribution.FrequencyAndObject<Route>> generators,
StreamInterface stream)
Create a new Probabilistic Route Generator.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.