java.lang.Object
org.snmp4j.agent.util.OIDScope
- All Implemented Interfaces:
MOScope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
covers
(org.snmp4j.smi.OID oid) Checks if this scope covers the supplied OID.org.snmp4j.smi.OID
Gets the lower bound OID of the scope.org.snmp4j.smi.OID
Gets the upper bound OID of the scope.boolean
Checks whether the supplied scope is covered by this scope.boolean
Indicates whether the lower bound OID is included in the scope or not.boolean
isOverlapping
(MOScope other) Checks whether the supplied scope overlap with this one, thus sharing at least one OID with the supplied one.boolean
Indicates whether the upper bound OID is included in the scope or not.
-
Constructor Details
-
OIDScope
public OIDScope(org.snmp4j.smi.OID oid)
-
-
Method Details
-
getLowerBound
public org.snmp4j.smi.OID getLowerBound()Description copied from interface:MOScope
Gets 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:
getLowerBound
in interfaceMOScope
- Returns:
- an OID.
-
getUpperBound
public org.snmp4j.smi.OID getUpperBound()Description copied from interface:MOScope
Gets 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:
getUpperBound
in interfaceMOScope
- Returns:
- OID
-
isCovered
Description copied from interface:MOScope
Checks whether the supplied scope is covered by this scope. -
isLowerIncluded
public boolean isLowerIncluded()Description copied from interface:MOScope
Indicates whether the lower bound OID is included in the scope or not.- Specified by:
isLowerIncluded
in interfaceMOScope
- Returns:
true
if the lower bound is included.
-
isUpperIncluded
public boolean isUpperIncluded()Description copied from interface:MOScope
Indicates whether the upper bound OID is included in the scope or not.- Specified by:
isUpperIncluded
in interfaceMOScope
- Returns:
true
if the upper bound is included.
-
isOverlapping
Description copied from interface:MOScope
Checks whether the supplied scope overlap with this one, thus sharing at least one OID with the supplied one.- Specified by:
isOverlapping
in interfaceMOScope
- Parameters:
other
- aMOScope
.- Returns:
true
if 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:MOScope
Checks if this scope covers the supplied OID.
-