|
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 | +--snmp.agent.AgentTable
This class holds the "SubAgents" in sorted order. This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Constructor Summary | |
AgentTable()
Construct empty TreeSet. |
|
AgentTable(java.util.Collection al)
Construct TreeSet from Collection. |
|
AgentTable(java.util.SortedSet ss)
Construct TreeSet from SortedSet. |
Method Summary | |
boolean |
add(java.lang.Object sa)
Add a subagent to the sorted table. |
boolean |
addSubAgent(java.lang.String nOid,
int val)
|
boolean |
addSubAgent(java.lang.String nOid,
long val)
|
boolean |
addSubAgent(java.lang.String nOid,
java.lang.String val)
|
void |
addSubAgent(SubAgent sa)
Add a managable object to this agent. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
This is required to keep the sub agents sorted by object id. |
void |
displaySubAgents()
Display all the managed objects. |
int |
getIntSubAgent(java.lang.String oid)
|
long |
getLongSubAgent(java.lang.String oid)
|
SubAgent |
getNextSubAgent(AsnObjectId id)
Get the next managed object based on object id. |
java.lang.String |
getNextSubAgent(java.lang.String oid)
|
java.lang.String |
getStringSubAgent(java.lang.String oid)
|
SubAgent |
getSubAgent(AsnObjectId id)
Find the managed object by object id. |
boolean |
removeBranch(java.lang.String first_oid,
java.lang.String last_oid)
|
java.util.SortedSet |
removeBranch(SubAgent f_sa,
SubAgent t_sa)
Remove all subagents between two given subagent object ids. |
boolean |
removeSubAgent(java.lang.String oid)
|
boolean |
updateSubAgent(java.lang.String Oid,
int val,
java.lang.String index)
Add a managable object to this agent. |
boolean |
updateSubAgent(java.lang.String Oid,
long val,
java.lang.String index)
Add a managable object to this agent. |
boolean |
updateSubAgent(java.lang.String Oid,
java.lang.String val,
java.lang.String index)
Add a managable object to this agent. |
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 |
public AgentTable()
public AgentTable(java.util.Collection al)
public AgentTable(java.util.SortedSet ss)
Method Detail |
public boolean updateSubAgent(java.lang.String Oid, int val, java.lang.String index)
updateSubAgent
in interface AgentTableInterface
Oid
- The object id for this value.val
- The value itself.public boolean updateSubAgent(java.lang.String Oid, long val, java.lang.String index)
updateSubAgent
in interface AgentTableInterface
Oid
- The object id for this value.val
- The value itself.public boolean updateSubAgent(java.lang.String Oid, java.lang.String val, java.lang.String index)
updateSubAgent
in interface AgentTableInterface
Oid
- The object id for this value.val
- The value itself.public boolean addSubAgent(java.lang.String nOid, int val)
addSubAgent
in interface AgentTableInterface
public boolean addSubAgent(java.lang.String nOid, long val)
addSubAgent
in interface AgentTableInterface
public boolean addSubAgent(java.lang.String nOid, java.lang.String val)
addSubAgent
in interface AgentTableInterface
public void addSubAgent(SubAgent sa)
sa
- The object information.public int getIntSubAgent(java.lang.String oid) throws InvalidIdException
getIntSubAgent
in interface AgentTableInterface
public long getLongSubAgent(java.lang.String oid) throws InvalidIdException
getLongSubAgent
in interface AgentTableInterface
public java.lang.String getStringSubAgent(java.lang.String oid) throws InvalidIdException
getStringSubAgent
in interface AgentTableInterface
public SubAgent getSubAgent(AsnObjectId id)
id
- The object id.public java.lang.String getNextSubAgent(java.lang.String oid)
getNextSubAgent
in interface AgentTableInterface
public SubAgent getNextSubAgent(AsnObjectId id)
id
- Object id.public void displaySubAgents()
public boolean add(java.lang.Object sa)
add
in class java.util.TreeSet
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public boolean removeSubAgent(java.lang.String oid)
removeSubAgent
in interface AgentTableInterface
public boolean removeBranch(java.lang.String first_oid, java.lang.String last_oid)
removeBranch
in interface AgentTableInterface
public java.util.SortedSet removeBranch(SubAgent f_sa, SubAgent t_sa)
f_sa
- From this subagent object idt_sa
- To this subagent object id
|
Active Virtual Network Management Prediction (AVNMP) Classes | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |