01: /**
02: *
03: *
04: * Created on January 22, 2006, 11:11 AM
05: */package com.jamonapi;
06:
07: import java.util.List;
08:
09: abstract class FrequencyDistImp extends MonitorImp implements
10: FrequencyDist {
11:
12: protected double endValue;
13:
14: public List getBasicHeader(List header) {
15: // Frequencies don't get displayed basic headers.
16: return header;
17: }
18:
19: public List getHeader(List header) {
20: super .getHeader(header);
21: header.add(monData.name + "AvgActive");
22: header.add(monData.name + "AvgPrimaryActive");
23: header.add(monData.name + "AvgGlobalActive");
24:
25: return header;
26:
27: }
28:
29: public List getDisplayHeader(List header) {
30: header.add(monData.displayHeader);
31: return header;
32: }
33:
34: public List getBasicRowData(List rowData) {
35: // This is not called as basic rowdata doesn't inlcude frequencydists
36: return rowData;
37: }
38:
39: public List getRowData(List rowData) {
40: super .getRowData(rowData);
41: rowData.add(new Double(getAvgActive()));
42: rowData.add(new Double(getAvgPrimaryActive()));
43: rowData.add(new Double(getAvgGlobalActive()));
44:
45: return rowData;
46:
47: }
48:
49: public List getRowDisplayData(List rowData) {
50: rowData.add(toString());
51: return rowData;
52:
53: }
54:
55: public double getEndValue() {
56: return endValue;
57: }
58:
59: }
|