net.agmodel.physical
Class SummaryHistory

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--java.util.Stack
                          |
                          +--net.agmodel.physical.SummaryHistory
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class SummaryHistory
extends Stack
implements Serializable, Cloneable

A stack which records if and how data has been summarised.

See Also:
net.agmodel.weatherData, Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SummaryHistory()
           
 
Method Summary
 void addHistoryElement(SummaryHistoryElement add)
          Records that the data has been summarised further.
 Object clone()
           
 SummaryHistoryElement current()
          Return the most recent summary of the data
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

SummaryHistory

public SummaryHistory()
Method Detail

addHistoryElement

public void addHistoryElement(SummaryHistoryElement add)
Records that the data has been summarised further.


current

public SummaryHistoryElement current()
Return the most recent summary of the data

Returns:
the highest level of aggregation

clone

public Object clone()
Overrides:
clone in class Vector