1 package org.opentrafficsim.core.units.distributions;
2
3 import org.djunits.unit.AngleSolidUnit;
4 import org.djunits.value.vdouble.scalar.AngleSolid;
5
6 import nl.tudelft.simulation.jstats.distributions.DistDiscrete;
7
8 /**
9 * Discretely distributed angle solid.
10 * <p>
11 * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
13 * <p>
14 * @version $Revision$, $LastChangedDate$, by $Author$, initial version 29 aug. 2018 <br>
15 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
16 */
17 // This class was automatically generated
18 public class DiscreteDistAngleSolid extends DiscreteDistDoubleScalar.Rel<AngleSolid, AngleSolidUnit>
19 {
20
21 /** */
22 private static final long serialVersionUID = 20180829L;
23
24 /**
25 * @param distribution DistDiscrete; distribution
26 * @param unit AngleSolidUnit; units
27 */
28 public DiscreteDistAngleSolid(final DistDiscrete distribution, final AngleSolidUnit unit)
29 {
30 super(distribution, unit);
31
32 }
33
34 /** {@inheritDoc} */
35 @Override
36 public AngleSolid draw()
37 {
38 return new AngleSolid(getDistribution().draw(), (AngleSolidUnit) getUnit());
39 }
40
41 /** {@inheritDoc} */
42 @Override
43 public final String toString()
44 {
45 return "DiscreteDistAngleSolid []";
46 }
47
48 }