|
Active Virtual Network Management Prediction (AVNMP) Classes | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.TreeSet
|
+--avnmp.java.lp.AvnmpStateQueue
This class implements the AVNMP state queue.
This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
| Field Summary | |
protected java.lang.String |
QueueName
Name to identify this queue. |
| Constructor Summary | |
AvnmpStateQueue()
Construct an empty state queue. |
|
AvnmpStateQueue(java.util.Collection al)
Construct TreeSet from Collection. |
|
AvnmpStateQueue(java.util.SortedSet ss)
Construct TreeSet from SortedSet. |
|
| Method Summary | |
boolean |
add(java.lang.Object sa)
Add a subagent to the sorted table. |
void |
addStateQueue(long t,
java.lang.Object pl,
boolean p,
AvnmpLP mylp)
Cache a state in the queue. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Keep states ordered by save time. |
void |
deleteStateQueue(long t)
Remove a state from the queue. |
double |
getAvg(long ts,
long te)
Return the average of a set of state values from a given start time to a given end time from the state queue. |
AvnmpState |
getClosestTime(long st)
Return a pointer to the closest state based on the time. |
AvnmpState |
getGreaterOrEqualRecTime(long rt)
|
AvnmpState |
getGreaterRecTime(long rt)
|
AvnmpState |
getLessOrEqualRecTime(long rt)
|
AvnmpState |
getLessRecTime(long rt)
|
AvnmpState |
getStateQueue(long t)
Return a state based on time. |
AvnmpStateQueue |
getStates(long ts,
long te)
Retrieve a set of state values from a given start time to a given end time. |
void |
plotQueue(AvnmpLP mylp)
Generate a gnuplot data file of the current state of the queue. |
java.lang.String |
QtoString()
Display the state queue. |
void |
rbstate(long t)
Remove states which are invalid after a given time. |
boolean |
remove(java.lang.Object sa)
Remove from the sorted table. |
void |
RemoveFossils(long t)
Remove messages with a value less than the given time. |
void |
updateSnmpObjects(AppCommunicator c,
java.lang.String pLoadOid,
java.lang.String pTimeOid,
AvnmpTime lvt,
AvnmpTime t,
AvnmpLP mylp)
Update the SNMP agent with the entire contents of the state queue. |
| Methods inherited from class java.util.TreeSet |
addAll, clear, clone, comparator, contains, first, headSet, isEmpty, iterator, last, 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 |
| Field Detail |
protected java.lang.String QueueName
| Constructor Detail |
public AvnmpStateQueue()
public AvnmpStateQueue(java.util.Collection al)
public AvnmpStateQueue(java.util.SortedSet ss)
| Method Detail |
public boolean add(java.lang.Object sa)
add in class java.util.TreeSetpublic boolean remove(java.lang.Object sa)
remove in class java.util.TreeSetpublic void rbstate(long t)
t - Time after which all predictions should be removed.
public void addStateQueue(long t,
java.lang.Object pl,
boolean p,
AvnmpLP mylp)
t - Time state is validpl - Statep - true indicates a predicted state, false a real statemylp - The logical process objectpublic void deleteStateQueue(long t)
t - Delete state based on the time
public AvnmpState getStateQueue(long t)
throws NotFoundInQueueException
t - Time state is valid
public AvnmpState getGreaterRecTime(long rt)
throws NotFoundInQueueException
rt - Time
public AvnmpState getGreaterOrEqualRecTime(long rt)
throws NotFoundInQueueException
rt - Time
public AvnmpState getLessRecTime(long rt)
throws NotFoundInQueueException
rt - Time
public AvnmpState getLessOrEqualRecTime(long rt)
throws NotFoundInQueueException
rt - Time
public AvnmpState getClosestTime(long st)
throws NotFoundInQueueException
st - Timepublic java.lang.String QtoString()
public void plotQueue(AvnmpLP mylp)
mylp - The logical process in which this object resides.
public AvnmpStateQueue getStates(long ts,
long te)
ts - start timete - end time
public double getAvg(long ts,
long te)
ts - start timete - end time
public void updateSnmpObjects(AppCommunicator c,
java.lang.String pLoadOid,
java.lang.String pTimeOid,
AvnmpTime lvt,
AvnmpTime t,
AvnmpLP mylp)
c - The SNMP agent contextpLoadOid - The predicted load object idpTimeOid - The predicted time for the above load objectlvt - The current object's LVTt - The current wallclock time for this LPmylp - The current LP
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatorpublic void RemoveFossils(long t)
t - Remove values less than this time.
|
Active Virtual Network Management Prediction (AVNMP) Classes | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||