Interface ZigBeePowerDescriptor


public interface ZigBeePowerDescriptor
This interface represents a power descriptor as described in the ZigBee Specification.

The Power Descriptor gives a dynamic indication of the power status of the node.

"Consumers of this API must not implement this interface"
  • Field Details

    • CRITICAL_LEVEL

      static final short CRITICAL_LEVEL
      Current power source level: critical.
      See Also:
    • LOW_LEVEL

      static final short LOW_LEVEL
      Current power source level: 33%.
      See Also:
    • MIDDLE_LEVEL

      static final short MIDDLE_LEVEL
      Current power source level: 66%.
      See Also:
    • FULL_LEVEL

      static final short FULL_LEVEL
      Current power source level: 100%.
      See Also:
  • Method Details

    • getCurrentPowerMode

      short getCurrentPowerMode()
      Returns the current power mode.
      Returns:
      the current power mode.
    • getCurrentPowerSource

      short getCurrentPowerSource()
      Returns the current power source field of the Power Descriptor.
      Returns:
      the current power source field of the Power Descriptor.
    • isMainsPower

      boolean isMainsPower()
      Checks if the currently selected power source is the mains power.
      Returns:
      true if the currently selected power source is the mains power.
    • isDisposableBattery

      boolean isDisposableBattery()
      Checks if the currently selected power source is the disposable battery.
      Returns:
      true if the currently selected power source is the disposable battery.
    • isRechargableBattery

      boolean isRechargableBattery()
      Checks if the currently selected power source is the rechargeable battery.
      Returns:
      true if the currently selected power source is the rechargeable battery.
    • getCurrentPowerSourceLevel

      short getCurrentPowerSourceLevel()
      Returns the current power source level.
      Returns:
      the current power source level. May be one of CRITICAL_LEVEL, LOW_LEVEL, MIDDLE_LEVEL, FULL_LEVEL.
    • isConstantMainsPowerAvailable

      boolean isConstantMainsPowerAvailable()
      Checks if constant (mains) power is available.
      Returns:
      true if constant (mains) power is available or false otherwise.
    • isDisposableBatteryAvailable

      boolean isDisposableBatteryAvailable()
      Checks if a disposable battery is available.
      Returns:
      true if a disposable battery is available or false otherwise.
    • isRechargableBatteryAvailable

      boolean isRechargableBatteryAvailable()
      Checks if a rechargeable battery is available.
      Returns:
      true if a rechargeable battery is available or false otherwise.
    • isSyncronizedWithOnIdle

      boolean isSyncronizedWithOnIdle()
      Checks if synchronized with the receiver on-when-idle subfield of the node descriptor.
      Returns:
      true if the Current Power Mode field is synchronized on idle.
    • isPeriodicallyOn

      boolean isPeriodicallyOn()
      Checks if the Current Power Mode field is periodically on.
      Returns:
      true if the Current Power Mode field is periodically on.
    • isOnWhenStimulated

      boolean isOnWhenStimulated()
      Checks if the receiver is on when the device is simulated.
      Returns:
      true if the Current Power Mode field tells that the receiver is on when the device is stimulated by pressing a button, for instance.