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 intReturns the high address of the allocated group rangeabstract intReturns 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 rangesbooleanChecks if two ranges overlapsintrange()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:RangeReturns the address range as a int -
overlaps
Description copied from class:RangeChecks 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-AllocatedGroupRangerange- Returns:
- a resulting
AllocatedGroupRangeor 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-AllocatedUnicastRangerange- Returns:
- a resulting
AllocatedUnicastRangeor null otherwise
-