com.mccrory.scott.spumoni
Class StatsProgramList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.mccrory.scott.spumoni.StatsProgramList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class StatsProgramList
extends java.util.Vector

StatsProgramList is a collection of StatsProgram objects. It also contains method used to operate on that group of objects.

Version:
CVS $Id: StatsProgramList.java,v 1.10 2002/08/04 22:04:53 smccrory Exp $
Author:
Scott McCrory.

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StatsProgramList()
          StatsProgramList constructor comment.
StatsProgramList(int initialCapacity)
          StatsValueList constructor with preset minimum size.
StatsProgramList(int initialCapacity, int capacityIncrement)
          StatsValueList constructor with preset minimum size and capacity increment.
StatsProgramList(StatsProgram sProg)
          Convenience constructor for creating a new StatsProgramList and populating it with a single StatsProgram.
 
Method Summary
 StatsProgramList getOidConflicts()
          Searches for OID conflicts and returns a list of StatsProgram objects and their offending StatsValue components.
 java.util.Vector getOids()
          Returns a vector of all of the OIDs in the contained StatsPrograms
 java.lang.String getValueByOid(java.lang.String oid)
          Returns a StatsValue's value String corresponding to the specified OID.
 void unsetValues()
          Unsets all of the values.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, 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

StatsProgramList

public StatsProgramList()
StatsProgramList constructor comment.


StatsProgramList

public StatsProgramList(int initialCapacity)
StatsValueList constructor with preset minimum size.

Parameters:
initialCapacity - Initial capacity

StatsProgramList

public StatsProgramList(int initialCapacity,
                        int capacityIncrement)
StatsValueList constructor with preset minimum size and capacity increment.

Parameters:
initialCapacity - Initial capacity
capacityIncrement - Capacity increment

StatsProgramList

public StatsProgramList(StatsProgram sProg)
Convenience constructor for creating a new StatsProgramList and populating it with a single StatsProgram.

Parameters:
sProg - The StatsProgram which will be immediately added
Method Detail

getOidConflicts

public StatsProgramList getOidConflicts()
Searches for OID conflicts and returns a list of StatsProgram objects and their offending StatsValue components. This should give the user everything they need to resolve the issue(s).

Returns:
StatsProgramList

getValueByOid

public java.lang.String getValueByOid(java.lang.String oid)
                               throws java.util.NoSuchElementException
Returns a StatsValue's value String corresponding to the specified OID.

Parameters:
oid - java.lang.String
Returns:
java.lang.String
Throws:
java.util.NoSuchElementException - if the OID isn't found.

getOids

public java.util.Vector getOids()
Returns a vector of all of the OIDs in the contained StatsPrograms

Returns:
A vector of all of the OIDs in the contained StatsPrograms

unsetValues

public void unsetValues()
Unsets all of the values. Typically done just before another round of stats collection.



Copyright © 2002 Scott McCrory as part of the Spumoni project. All Rights Reserved.