1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.gscg.experiment;
15
16 import nl.tudelft.simulation.jstats.distributions.DistTriangular;
17 import nl.tudelft.simulation.jstats.streams.StreamInterface;
18
19 /***
20 * An implementation of the DistTriangular with getters for the attribute
21 * values.
22 * <p>
23 * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
24 * Delft, the Netherlands. All rights reserved.
25 *
26 * See for project information <a href="http://www.simulation.tudelft.nl/">
27 * www.simulation.tudelft.nl </a>.
28 *
29 * The source code and binary code of this software is proprietary information
30 * of Delft University of Technology.
31 *
32 * @author <a
33 * href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
34 * van Houten </a>
35 * @version $Revision: 1.1 $ $Date: 2005/06/16 12:34:00 $
36 * @since 1.1.2
37 */
38 public class DistTriangularGetters extends DistTriangular
39 {
40 /*** the serial version uid */
41 private static final long serialVersionUID = 11L;
42
43 /*** the stream */
44 private StreamInterface stream = null;
45
46 /*** a */
47 private double a = Double.NaN;
48
49 /*** b */
50 private double b = Double.NaN;
51
52 /*** c */
53 private double c = Double.NaN;
54
55 /***
56 * @param stream the stream
57 * @param a long a
58 * @param b long b
59 * @param c long c
60 */
61 public DistTriangularGetters(final StreamInterface stream, final double a,
62 final double b, final double c)
63 {
64 super(stream, a, b, c);
65 this.stream = stream;
66 this.a = a;
67 this.b = b;
68 this.c = c;
69 }
70
71 /***
72 * @return Returns the a.
73 */
74 public double getA()
75 {
76 return this.a;
77 }
78
79 /***
80 * @return Returns the b.
81 */
82 public double getB()
83 {
84 return this.b;
85 }
86
87 /***
88 * @return Returns c.
89 */
90 public double getC()
91 {
92 return this.c;
93 }
94
95 /***
96 * @return Returns the stream.
97 */
98 public StreamInterface getStream()
99 {
100 return this.stream;
101 }
102
103 /***
104 * @see nl.tudelft.simulation.jstats.distributions.DistTriangular#draw()
105 */
106 public double draw()
107 {
108 return super.draw();
109 }
110 }