1 | package de.uka.ipd.sdq.pipesandfilters.framework.recorder; |
2 | |
3 | import javax.measure.Measure; |
4 | import javax.measure.quantity.Quantity; |
5 | |
6 | /** |
7 | * This class holds meta information for fixed width aggregations. |
8 | * |
9 | * @author Baum |
10 | * |
11 | */ |
12 | public class FixedWidthAggregationMetaData { |
13 | private Measure<?, ? extends Quantity> lowerBound; |
14 | private Measure<?, ? extends Quantity> width; |
15 | private long numberOfIntervals; |
16 | |
17 | /** |
18 | * The constructor of FixedWidthAggregationMetaData |
19 | * |
20 | * @param lowerBound |
21 | * The lower bound of the aggregation. |
22 | * @param width |
23 | * The width of an interval. |
24 | * @param numberOfIntervals |
25 | * The number of intervals. |
26 | */ |
27 | public FixedWidthAggregationMetaData( |
28 | Measure<?, ? extends Quantity> lowerBound, |
29 | Measure<?, ? extends Quantity> width, long numberOfIntervals) { |
30 | this.lowerBound = lowerBound; |
31 | this.width = width; |
32 | this.numberOfIntervals = numberOfIntervals; |
33 | } |
34 | |
35 | /** |
36 | * Returns the lower bound of the aggregation. |
37 | * |
38 | * @return The lower bound of the aggregation. |
39 | */ |
40 | public Measure<?, ? extends Quantity> getLowerBound() { |
41 | return lowerBound; |
42 | } |
43 | |
44 | /** |
45 | * Returns the width of an aggregation interval. |
46 | * |
47 | * @return The width of an aggregation interval. |
48 | */ |
49 | public Measure<?, ? extends Quantity> getWidth() { |
50 | return width; |
51 | } |
52 | |
53 | /** |
54 | * Returns the number of intervals. |
55 | * |
56 | * @return The number of intervals. |
57 | */ |
58 | public long getNumberOfIntervals() { |
59 | return numberOfIntervals; |
60 | } |
61 | } |