- All Superinterfaces:
MOScope
- All Known Implementing Classes:
DefaultMOContextScope
,DefaultMOScope
The
MutableMOScope
interface describes a mutable scope
as needed for query processing.- Version:
- 1.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLowerBound
(org.snmp4j.smi.OID lowerBound) Sets the lower bound OID of the scope.void
setLowerIncluded
(boolean lowerIncluded) Sets the flag specifying whether the lower bound OID is included in the scope or not.void
setUpperBound
(org.snmp4j.smi.OID upperBound) Sets the upper bound OID of the scope (can benull
for an unbounded scope.void
setUpperIncluded
(boolean upperIncluded) Sets the flag specifying whether the upper bound OID is included in the scope or not.void
subtractScope
(MOScope scope) Changes the scope to no longer cover any elements in covered by the specified scope.Methods inherited from interface org.snmp4j.agent.MOScope
covers, getLowerBound, getUpperBound, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded
-
Method Details
-
setLowerBound
void setLowerBound(org.snmp4j.smi.OID lowerBound) Sets the lower bound OID of the scope.- Parameters:
lowerBound
- an OID.
-
setLowerIncluded
void setLowerIncluded(boolean lowerIncluded) Sets the flag specifying whether the lower bound OID is included in the scope or not.- Parameters:
lowerIncluded
-true
if the lower bound is included,false
otherwise.
-
setUpperBound
void setUpperBound(org.snmp4j.smi.OID upperBound) Sets the upper bound OID of the scope (can benull
for an unbounded scope.- Parameters:
upperBound
- an OID ornull
.
-
setUpperIncluded
void setUpperIncluded(boolean upperIncluded) Sets the flag specifying whether the upper bound OID is included in the scope or not. This flag has no effect ifupperBound
isnull
.- Parameters:
upperIncluded
-true
if the upper bound is included,false
otherwise.
-
subtractScope
Changes the scope to no longer cover any elements in covered by the specified scope.- Parameters:
scope
- aMOScope
instance that defines the range of OIDs that should be no longer in this scope.
-