|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.Vector
|
+--atropos.util.OrderedList
|
+--atropos.dp.TimeSeries
This table will hold a list of timeSeries objects used to predict load via simple curve fit/extrapolation algorithms. This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
TimeSeries()
Construct empty TreeSet. |
|
| Method Summary | |
boolean |
add(java.lang.Object sa)
Add to the sorted table. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
This is required to keep the time samples sorted by time. |
void |
dropSample()
Drop the oldest sample. |
double |
nextValue(long t)
Compute the value at a given time based on the current samples. |
| Methods inherited from class atropos.util.OrderedList |
clear, get, remove |
| Methods inherited from class java.util.Vector |
add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, 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 |
public TimeSeries()
| Method Detail |
public boolean add(java.lang.Object sa)
add in class OrderedList
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in class OrderedListpublic double nextValue(long t)
t - The time for which we want to compute the value.public void dropSample()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||