java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Range
Direct Known Subclasses:
AddressRange, AllocatedSceneRange

public abstract class Range extends Object
  • 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

      public abstract boolean overlaps(Range otherRange)
      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

      public static List<AllocatedUnicastRange> mergeUnicastRanges(List<AllocatedUnicastRange> ranges)
      Returns a list of merged unicast ranges
      Parameters:
      ranges - list ofAllocatedUnicastRange to merge with
    • mergeGroupRanges

      public static List<AllocatedGroupRange> mergeGroupRanges(List<AllocatedGroupRange> ranges)
      Returns a list of merged group ranges
      Parameters:
      ranges - list ofAllocatedGroupRange to merge with
    • mergeSceneRanges

      public static List<AllocatedSceneRange> mergeSceneRanges(List<AllocatedSceneRange> ranges)
      Returns a list of merged scene ranges
      Parameters:
      ranges - list ofAllocatedSceneRange to merge with