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 int
Returns the lower bound of the Rangeabstract int
Returns 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 boolean
overlaps
(int rLow, int rHigh, int oLow, int oHigh) abstract boolean
Checks if two ranges overlapsabstract int
range()
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 ofAllocatedUnicastRange
to merge with
-
mergeGroupRanges
Returns a list of merged group ranges- Parameters:
ranges
- list ofAllocatedGroupRange
to merge with
-
mergeSceneRanges
Returns a list of merged scene ranges- Parameters:
ranges
- list ofAllocatedSceneRange
to merge with
-