- All Known Subinterfaces:
MOContextScope,MOQuery,MutableMOScope
- All Known Implementing Classes:
AgentppSimulationMib.AgentppSimDeleteRow,AgentppSimulationMib.AgentppSimDeleteTableContents,AgentppSimulationMib.AgentppSimMode,DateAndTimeScalar,DefaultMOContextScope,DefaultMOQuery,DefaultMOScope,DefaultMOTable,DisplayStringScalar,EnumeratedScalar,MOQueryWithSource,MOScalar,NotificationLogMib.NlmConfigGlobalAgeOut,NotificationLogMib.NlmConfigGlobalEntryLimit,OIDScope,Snmp4jConfigMib.Snmp4jCfgReset,Snmp4jConfigMib.Snmp4jCfgSecSrcAddrValidation,SnmpTsmMib.SnmpTsmConfigurationUsePrefix,SnmpUsmDhObjectsMib.UsmDHParameters,SNMPv2MIB.SysOREntry,SNMPv2MIB.SysUpTimeImpl,TestAndIncr,TimeStampScalar,UsmDHParametersImpl
public interface MOScope
A managed object scope defines a continuous region within the global OID
space.
- Version:
- 1.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionbooleancovers(org.snmp4j.smi.OID oid) Checks if this scope covers the supplied OID.org.snmp4j.smi.OIDGets the lower bound OID of the scope.org.snmp4j.smi.OIDGets the upper bound OID of the scope.booleanChecks whether the supplied scope is covered by this scope.booleanIndicates 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.booleanIndicates whether the upper bound OID is included in the scope or not.
-
Method Details
-
getLowerBound
org.snmp4j.smi.OID getLowerBound()Gets the lower bound OID of the scope. Whether the lower bound is included or excluded from the scope's region is determined byisLowerIncluded().- Returns:
- an OID.
-
getUpperBound
org.snmp4j.smi.OID getUpperBound()Gets the upper bound OID of the scope. Whether the upper bound is included or excluded from the scope's region is determined byisUpperIncluded().- Returns:
- OID
-
isLowerIncluded
boolean isLowerIncluded()Indicates whether the lower bound OID is included in the scope or not.- Returns:
trueif the lower bound is included.
-
isUpperIncluded
boolean isUpperIncluded()Indicates whether the upper bound OID is included in the scope or not.- Returns:
trueif the upper bound is included.
-
isCovered
Checks whether the supplied scope is covered by this scope.- Parameters:
other- theMOScopeto check- Returns:
trueif the lower bound ofotheris greater or equal than the lower bound of this scope and if the upper bound ofotheris lower or equal than the upper bound of this scope.
-
isOverlapping
Checks whether the supplied scope overlap with this one, thus sharing at least one OID with the supplied one.- Parameters:
other- aMOScope.- Returns:
trueif there exists at least one OID that is included in both scopes.
-
covers
boolean covers(org.snmp4j.smi.OID oid) Checks if this scope covers the supplied OID.- Parameters:
oid- an OID.- Returns:
trueifoidis greater or equal the scope's lower bound and if it is less or equal its upper bound.
-