public class ContinuousDistEnergy extends ContinuousDistDoubleScalar.Rel<Energy,EnergyUnit>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
ContinuousDistEnergy(DistContinuous distribution,
EnergyUnit unit) |
Modifier and Type | Method and Description |
---|---|
Energy |
draw()
Generate the next object.
|
String |
toString() |
getDistribution, getUnit
public ContinuousDistEnergy(DistContinuous distribution, EnergyUnit unit)
distribution
- DistContinuous; distributionunit
- EnergyUnit; unitspublic Energy draw()
draw
in interface Generator<Energy>
draw
in class ContinuousDistDoubleScalar.Rel<Energy,EnergyUnit>
public final String toString()
toString
in class ContinuousDistDoubleScalar.Rel<Energy,EnergyUnit>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.