01: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.utils;
07:
08: import java.io.Serializable;
09:
10: /**
11: * @author George Lindholm <a href="mailto:George.Lindholm@ubc.ca">George.Lindholm@ubc.ca</a>
12: * @version $Revision: 36732 $
13: * @since uPortal 2.5
14: */
15:
16: public final class MovingAverageSample implements IMovingAverageSample,
17: Serializable {
18: //public static long SerialVersionUID = 2006l;
19:
20: public long average;
21:
22: public long highMax;
23:
24: public long lastSample;
25:
26: public long max;
27:
28: public long min;
29:
30: public long totalSamples;
31:
32: public MovingAverageSample() {
33: }
34:
35: public MovingAverageSample(final long average, final long highMax,
36: final long lastSample, final long max, final long min,
37: final long totalSamples) {
38: this .average = average;
39: this .highMax = highMax;
40: this .lastSample = lastSample;
41: this .max = max;
42: this .min = min;
43: this .totalSamples = totalSamples;
44: }
45:
46: public long getAverage() {
47: return average;
48: }
49:
50: public long getHighMax() {
51: return highMax;
52: }
53:
54: public long getLastSample() {
55: return lastSample;
56: }
57:
58: public long getMax() {
59: return max;
60: }
61:
62: public long getMin() {
63: return min;
64: }
65:
66: public long getTotalSamples() {
67: return totalSamples;
68: }
69: }
|