defaultAgent= null; root= new TreeNode(-1, null, null);
TreeNode node= root.retrieveMatchingBranch(oid.longValue(), 0); if (node == null) return defaultAgent; else if(node.getAgentMib() == null) return defaultAgent; else return node.getAgentMib();
return defaultAgent;
root.printTree(">");
root.registerNode(agent);
root.registerNode(oid, 0, agent);
defaultAgent= def; root.agent= def;
for(int i = 0; i < oids.length; i++) { long[] oid = oids[i].longValue(); TreeNode node = root.retrieveMatchingBranch(oid, 0); if (node == null) continue; node.removeAgent(agent); }
root.removeAgentFully(agent);