this.vb = new VariableBinding(predecessor.getVariableBinding().getOid());
switch (requestEvent.getCommand().getType()) {
case AgentXPDU.AGENTX_GETBULK_PDU:
case AgentXPDU.AGENTX_GETNEXT_PDU: {
this.scope =
new DefaultMOContextScope(getContext(),
predecessor.getVariableBinding().getOid(),
false,
predecessor.getScope().getUpperBound(),
predecessor.getScope().isUpperIncluded());
break;
}
default: {
this.scope = new DefaultMOContextScope(getContext(),
predecessor.getScope());
}
}
// Do not copy queries because they need to be updated externally only!
// this.query = predecessor.getQuery();