Class AddressRange
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Range
org.openremote.agent.protocol.bluetooth.mesh.AddressRange
- Direct Known Subclasses:
AllocatedGroupRange
,AllocatedUnicastRange
-
Field Summary
Fields inherited from class org.openremote.agent.protocol.bluetooth.mesh.Range
lowerBound, upperBound
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Returns the high address of the allocated group rangeabstract int
Returns the low address of the allocated group addressstatic List<AllocatedGroupRange>
minus
(List<AllocatedGroupRange> ranges, AllocatedGroupRange other) Subtracts a range from a list of rangesstatic List<AllocatedUnicastRange>
minus
(List<AllocatedUnicastRange> ranges, AllocatedUnicastRange other) Subtracts a range from a list of rangesboolean
Checks if two ranges overlapsint
range()
Returns the address range as a intMethods inherited from class org.openremote.agent.protocol.bluetooth.mesh.Range
getLowerBound, getUpperBound, mergeGroupRanges, mergeSceneRanges, mergeUnicastRanges, overlaps
-
Constructor Details
-
AddressRange
public AddressRange()
-
-
Method Details
-
getLowAddress
public abstract int getLowAddress()Returns the low address of the allocated group address- Returns:
- low address
-
getHighAddress
public abstract int getHighAddress()Returns the high address of the allocated group range- Returns:
- highAddress of the group range
-
range
public int range()Description copied from class:Range
Returns the address range as a int -
overlaps
Description copied from class:Range
Checks if two ranges overlaps -
minus
public static List<AllocatedGroupRange> minus(List<AllocatedGroupRange> ranges, AllocatedGroupRange other) Subtracts a range from a list of ranges- Parameters:
ranges
- ranges to be subtractedother
-AllocatedGroupRange
range- Returns:
- a resulting
AllocatedGroupRange
or null otherwise
-
minus
public static List<AllocatedUnicastRange> minus(List<AllocatedUnicastRange> ranges, AllocatedUnicastRange other) Subtracts a range from a list of ranges- Parameters:
ranges
- ranges to be subtractedother
-AllocatedUnicastRange
range- Returns:
- a resulting
AllocatedUnicastRange
or null otherwise
-