Class ConstantGenerator<O>
- java.lang.Object
-
- org.opentrafficsim.core.distributions.ConstantGenerator<O>
-
- Type Parameters:
O
- type of the object returned by the draw method
- All Implemented Interfaces:
Generator<O>
- Direct Known Subclasses:
FixedRouteGenerator
public class ConstantGenerator<O> extends Object implements Generator<O>
Generator implementation for a constant value.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 9 dec. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description ConstantGenerator(O value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
draw()
Generate the next object.O
getValue()
Returns the value.String
toString()
-