Active Virtual Network Management Prediction (AVNMP) Classes

avnmp.java.lp
Class AvnmpLP.ParmTable

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.TreeSet
                    |
                    +--avnmp.java.lp.AvnmpLP.ParmTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.Comparator, java.io.Serializable, java.util.Set, java.util.SortedSet
Enclosing class:
AvnmpLP

public class AvnmpLP.ParmTable
extends java.util.TreeSet
implements java.io.Serializable, java.util.Comparator

This table will hold a list of parmTime objects used to set and check parameter changes.

See Also:
AvnmpLP.setParameterTimes(), AvnmpLP.checkParameterTimes(), Serialized Form

Constructor Summary
AvnmpLP.ParmTable()
          Construct empty TreeSet.
AvnmpLP.ParmTable(java.util.Collection al)
          Construct TreeSet from Collection.
AvnmpLP.ParmTable(java.util.SortedSet ss)
          Construct TreeSet from SortedSet.
 
Method Summary
 boolean add(java.lang.Object sa)
          Add to the sorted ParmTable.
 int compare(java.lang.Object o1, java.lang.Object o2)
          This is required to keep the parameter settings sorted by object id.
 java.util.SortedSet removeBranch(AvnmpLP.parmTime f_sa, AvnmpLP.parmTime t_sa)
          Remove all subagents between two given subagent object ids.
 
Methods inherited from class java.util.TreeSet
addAll, clear, clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AvnmpLP.ParmTable

public AvnmpLP.ParmTable()
Construct empty TreeSet.

AvnmpLP.ParmTable

public AvnmpLP.ParmTable(java.util.Collection al)
Construct TreeSet from Collection.

AvnmpLP.ParmTable

public AvnmpLP.ParmTable(java.util.SortedSet ss)
Construct TreeSet from SortedSet.
Method Detail

add

public boolean add(java.lang.Object sa)
Add to the sorted ParmTable.
Overrides:
add in class java.util.TreeSet

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
This is required to keep the parameter settings sorted by object id.
Specified by:
compare in interface java.util.Comparator

removeBranch

public java.util.SortedSet removeBranch(AvnmpLP.parmTime f_sa,
                                        AvnmpLP.parmTime t_sa)
Remove all subagents between two given subagent object ids.
Parameters:
f_sa - From this subagent object id
t_sa - To this subagent object id
Returns:
The original sorted subagents with the range of sub agents removed.

Active Virtual Network Management Prediction (AVNMP) Classes