Class Range
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Range
- Direct Known Subclasses:
AddressRange,AllocatedSceneRange
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intReturns the lower bound of the Rangeabstract intReturns the upper bound of the rangestatic List<AllocatedGroupRange>mergeGroupRanges(List<AllocatedGroupRange> ranges) Returns a list of merged group rangesstatic List<AllocatedSceneRange>mergeSceneRanges(List<AllocatedSceneRange> ranges) Returns a list of merged scene rangesstatic List<AllocatedUnicastRange>mergeUnicastRanges(List<AllocatedUnicastRange> ranges) Returns a list of merged unicast rangesprotected booleanoverlaps(int rLow, int rHigh, int oLow, int oHigh) abstract booleanChecks if two ranges overlapsabstract intrange()Returns the address range as a int
-
Field Details
-
lowerBound
protected int lowerBound -
upperBound
protected int upperBound
-
-
Constructor Details
-
Range
public Range()
-
-
Method Details
-
getLowerBound
public abstract int getLowerBound()Returns the lower bound of the Range -
getUpperBound
public abstract int getUpperBound()Returns the upper bound of the range -
overlaps
Checks if two ranges overlaps- Parameters:
otherRange- other range- Returns:
- true if overlaps or false otherwise
-
range
public abstract int range()Returns the address range as a int -
overlaps
protected boolean overlaps(int rLow, int rHigh, int oLow, int oHigh) -
mergeUnicastRanges
Returns a list of merged unicast ranges- Parameters:
ranges- list ofAllocatedUnicastRangeto merge with
-
mergeGroupRanges
Returns a list of merged group ranges- Parameters:
ranges- list ofAllocatedGroupRangeto merge with
-
mergeSceneRanges
Returns a list of merged scene ranges- Parameters:
ranges- list ofAllocatedSceneRangeto merge with
-