Constructor and Description |
---|
OIDScope(org.snmp4j.smi.OID oid) |
Modifier and Type | Method and Description |
---|---|
boolean |
covers(org.snmp4j.smi.OID oid)
Checks if this scope covers the supplied OID.
|
org.snmp4j.smi.OID |
getLowerBound()
Gets the lower bound OID of the scope.
|
org.snmp4j.smi.OID |
getUpperBound()
Gets the upper bound OID of the scope.
|
boolean |
isCovered(MOScope other)
Checks whether the supplied scope is covered by this scope.
|
boolean |
isLowerIncluded()
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 |
isUpperIncluded()
Indicates whether the upper bound OID is included in the scope or not.
|
public org.snmp4j.smi.OID getLowerBound()
MOScope
MOScope.isLowerIncluded()
.getLowerBound
in interface MOScope
public org.snmp4j.smi.OID getUpperBound()
MOScope
MOScope.isUpperIncluded()
.getUpperBound
in interface MOScope
public boolean isCovered(MOScope other)
MOScope
public boolean isLowerIncluded()
MOScope
isLowerIncluded
in interface MOScope
true
if the lower bound is included.public boolean isUpperIncluded()
MOScope
isUpperIncluded
in interface MOScope
true
if the upper bound is included.public boolean isOverlapping(MOScope other)
MOScope
isOverlapping
in interface MOScope
other
- a MOScope
.true
if there exists at least one OID that is included in
both scopes.public boolean covers(org.snmp4j.smi.OID oid)
MOScope
Copyright © 2017 SNMP4J.org. All rights reserved.