- java.lang.Object
-
- org.snmp4j.agent.util.OIDScope
-
-
Constructor Summary
Constructors Constructor Description OIDScope(org.snmp4j.smi.OID oid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancovers(org.snmp4j.smi.OID oid)Checks if this scope covers the supplied OID.org.snmp4j.smi.OIDgetLowerBound()Gets the lower bound OID of the scope.org.snmp4j.smi.OIDgetUpperBound()Gets the upper bound OID of the scope.booleanisCovered(MOScope other)Checks whether the supplied scope is covered by this scope.booleanisLowerIncluded()Indicates whether the lower bound OID is included in the scope or not.booleanisOverlapping(MOScope other)Checks whether the supplied scope overlap with this one, thus sharing at least one OID with the supplied one.booleanisUpperIncluded()Indicates whether the upper bound OID is included in the scope or not.
-
-
-
Method Detail
-
getLowerBound
public org.snmp4j.smi.OID getLowerBound()
Description copied from interface:MOScopeGets the lower bound OID of the scope. Whether the lower bound is included or excluded from the scope's region is determined byMOScope.isLowerIncluded().- Specified by:
getLowerBoundin interfaceMOScope- Returns:
- an OID.
-
getUpperBound
public org.snmp4j.smi.OID getUpperBound()
Description copied from interface:MOScopeGets the upper bound OID of the scope. Whether the upper bound is included or excluded from the scope's region is determined byMOScope.isUpperIncluded().- Specified by:
getUpperBoundin interfaceMOScope- Returns:
- OID
-
isCovered
public boolean isCovered(MOScope other)
Description copied from interface:MOScopeChecks whether the supplied scope is covered by this scope.
-
isLowerIncluded
public boolean isLowerIncluded()
Description copied from interface:MOScopeIndicates whether the lower bound OID is included in the scope or not.- Specified by:
isLowerIncludedin interfaceMOScope- Returns:
trueif the lower bound is included.
-
isUpperIncluded
public boolean isUpperIncluded()
Description copied from interface:MOScopeIndicates whether the upper bound OID is included in the scope or not.- Specified by:
isUpperIncludedin interfaceMOScope- Returns:
trueif the upper bound is included.
-
isOverlapping
public boolean isOverlapping(MOScope other)
Description copied from interface:MOScopeChecks whether the supplied scope overlap with this one, thus sharing at least one OID with the supplied one.- Specified by:
isOverlappingin interfaceMOScope- Parameters:
other- aMOScope.- Returns:
trueif there exists at least one OID that is included in both scopes.
-
covers
public boolean covers(org.snmp4j.smi.OID oid)
Description copied from interface:MOScopeChecks if this scope covers the supplied OID.
-
-