Class AllocatedSceneRange
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Range
org.openremote.agent.protocol.bluetooth.mesh.AllocatedSceneRange
-
Field Summary
Fields inherited from class org.openremote.agent.protocol.bluetooth.mesh.Range
lowerBound, upperBound -
Constructor Summary
ConstructorsConstructorDescriptionAllocatedSceneRange(int firstScene, int lastScene) ConstructsAllocatedSceneRangefor provisioner -
Method Summary
Modifier and TypeMethodDescriptionintReturns the high address of the allocated group rangeintReturns the low address of the allocated group addressfinal intReturns the lower bound of the Rangefinal intReturns the upper bound of the rangestatic List<AllocatedSceneRange>minus(List<AllocatedSceneRange> ranges, AllocatedSceneRange other) Subtracts a range from a list of rangesbooleanChecks if two ranges overlapsintrange()Returns the address range as a intvoidsetFirstScene(int firstScene) Sets the high address of the group addressvoidsetLastScene(int lastScene) Sets the low address of the allocated group addressMethods inherited from class org.openremote.agent.protocol.bluetooth.mesh.Range
mergeGroupRanges, mergeSceneRanges, mergeUnicastRanges, overlaps
-
Constructor Details
-
AllocatedSceneRange
public AllocatedSceneRange(int firstScene, int lastScene) ConstructsAllocatedSceneRangefor provisioner- Parameters:
firstScene- high address of group rangelastScene- low address of group range
-
-
Method Details
-
getLowerBound
public final int getLowerBound()Description copied from class:RangeReturns the lower bound of the Range- Specified by:
getLowerBoundin classRange
-
getUpperBound
public final int getUpperBound()Description copied from class:RangeReturns the upper bound of the range- Specified by:
getUpperBoundin classRange
-
minus
-
getLastScene
public int getLastScene()Returns the low address of the allocated group address- Returns:
- low address
-
setLastScene
public void setLastScene(int lastScene) Sets the low address of the allocated group address- Parameters:
lastScene- of the group range
-
getFirstScene
public int getFirstScene()Returns the high address of the allocated group range- Returns:
- firstScene of the group range
-
setFirstScene
public void setFirstScene(int firstScene) Sets the high address of the group address- Parameters:
firstScene- 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<AllocatedSceneRange> minus(List<AllocatedSceneRange> ranges, AllocatedSceneRange other) Subtracts a range from a list of ranges- Parameters:
ranges- ranges to be subtractedother-AllocatedSceneRangerange- Returns:
- a resulting
AllocatedSceneRangeor null otherwise
-