Ejemplo n.º 1
0
 /**
  * Return an array with spaces for the values in header and values populated for monitor data -
  * last value, active and last access
  */
 public Object[] getData(Monitor mon) {
   Object[] retData =
       new Object
           [header.length]; // all but the 2 values will be null and will be replaced by caller.
   retData[lastValueIndex] = new Double(mon.getLastValue());
   retData[activeIndex] = new Double(mon.getActive());
   retData[dateIndex] = mon.getLastAccess();
   return retData;
 }
Ejemplo n.º 2
0
 /** Pass in list and add monitor data to the end of it */
 public Object[] getData(List dataList, Monitor mon) {
   dataList.add(new Double(mon.getLastValue()));
   dataList.add(new Double(mon.getActive()));
   dataList.add(mon.getLastAccess());
   return dataList.toArray();
 }