atropos.util
Class OrderedList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--atropos.util.OrderedList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable
Direct Known Subclasses:
AvnmpLP.ParmTable, AvnmpQueue, AvnmpStateQueue, TimeSeries

public class OrderedList
extends java.util.Vector
implements java.io.Serializable

This class replaces TreeSet in the previous AVNMP version. This makes it easily portable to the PC J++ environment which does not have full Sun compatability. This class requires that the Comparator inteface be implemented which in our casee just means that a compare() method must be defined. This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

Version:
$Revision: 1.1.1.1 $ $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
OrderedList()
           
 
Method Summary
 boolean add(java.lang.Object o)
          Keep the Vector ordered as elements are added.
 void clear()
           
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 java.lang.Object get(int i)
           
 java.lang.Object remove(int i)
           
 
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

OrderedList

public OrderedList()
Method Detail

add

public boolean add(java.lang.Object o)
Keep the Vector ordered as elements are added.
Overrides:
add in class java.util.Vector

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)

clear

public void clear()
Overrides:
clear in class java.util.Vector

get

public java.lang.Object get(int i)
Overrides:
get in class java.util.Vector

remove

public java.lang.Object remove(int i)
Overrides:
remove in class java.util.Vector


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