1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.codegen.simudatavisualisation.datatypes; |
5 | |
6 | /**This class contains the information about one bucket of a histogram. |
7 | * It stores the value at which a bucket starts and the probability for |
8 | * that bucket. |
9 | * @author admin |
10 | * @author groenda |
11 | */ |
12 | public class HistogramBucketInformation { |
13 | |
14 | /** The probability for the bucket */ |
15 | private double probability; |
16 | |
17 | /** The value at which the bucket starts */ |
18 | private double value; |
19 | |
20 | /**Creates a new bucket information. |
21 | * @param probability The probability of the bucket. |
22 | * @param value The value at which the bucket starts. |
23 | */ |
24 | public HistogramBucketInformation(double probability, double value) { |
25 | this.probability = probability; |
26 | this.value = value; |
27 | } |
28 | |
29 | /**Receives the probability for the bucket. |
30 | * @return the probability |
31 | */ |
32 | public double getProbability() { |
33 | return probability; |
34 | } |
35 | /**Sets the probability for the bucket. |
36 | * @param probability the new probability for the bucket. |
37 | */ |
38 | public void setProbability(double probability) { |
39 | this.probability = probability; |
40 | } |
41 | /**Receives the value at which the bucket starts. |
42 | * @return the value at which the bucket starts. |
43 | */ |
44 | public double getValue() { |
45 | return value; |
46 | } |
47 | /**Sets the value at which the bucket starts. |
48 | * @param value the new start value |
49 | */ |
50 | public void setValue(double value) { |
51 | this.value = value; |
52 | } |
53 | } |