atropos.dp
Class TimeSeries

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--atropos.util.OrderedList
                          |
                          +--atropos.dp.TimeSeries
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class TimeSeries
extends OrderedList
implements java.io.Serializable

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.

Version:
$Revision: 1.2 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

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

TimeSeries

public TimeSeries()
Construct empty TreeSet.
Method Detail

add

public boolean add(java.lang.Object sa)
Add to the sorted table.
Overrides:
add in class OrderedList

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
This is required to keep the time samples sorted by time.
Overrides:
compare in class OrderedList

nextValue

public double nextValue(long t)
Compute the value at a given time based on the current samples.
Parameters:
t - The time for which we want to compute the value.
Returns:
The next predicted value at the give time.

dropSample

public void dropSample()
Drop the oldest sample.


Copyright © 2002 GE Corporate Research and Development. All Rights Reserved.