public interface ZigBeePowerDescriptor
The Power Descriptor gives a dynamic indication of the power status of the node.
Modifier and Type | Field and Description |
---|---|
static short |
CRITICAL_LEVEL
Current power source level: critical.
|
static short |
FULL_LEVEL
Current power source level: 100%.
|
static short |
LOW_LEVEL
Current power source level: 33%.
|
static short |
MIDDLE_LEVEL
Current power source level: 66%.
|
Modifier and Type | Method and Description |
---|---|
short |
getCurrentPowerMode()
Returns the current power mode.
|
short |
getCurrentPowerSource()
Returns the current power source field of the Power Descriptor.
|
short |
getCurrentPowerSourceLevel()
Returns the current power source level.
|
boolean |
isConstantMainsPowerAvailable()
Checks if constant (mains) power is available.
|
boolean |
isDisposableBattery()
Checks if the currently selected power source is the disposable battery.
|
boolean |
isDisposableBatteryAvailable()
Checks if a disposable battery is available.
|
boolean |
isMainsPower()
Checks if the currently selected power source is the mains power.
|
boolean |
isOnWhenStimulated()
Checks if the receiver is on when the device is simulated.
|
boolean |
isPeriodicallyOn()
Checks if the Current Power Mode field is periodically on.
|
boolean |
isRechargableBattery()
Checks if the currently selected power source is the rechargeable
battery.
|
boolean |
isRechargableBatteryAvailable()
Checks if a rechargeable battery is available.
|
boolean |
isSyncronizedWithOnIdle()
Checks if synchronized with the receiver on-when-idle subfield of the
node descriptor.
|
static final short CRITICAL_LEVEL
static final short LOW_LEVEL
static final short MIDDLE_LEVEL
static final short FULL_LEVEL
short getCurrentPowerMode()
short getCurrentPowerSource()
boolean isMainsPower()
true
if the currently selected power source is the mains
power.boolean isDisposableBattery()
true
if the currently selected power source is the
disposable battery.boolean isRechargableBattery()
true
if the currently selected power source is the
rechargeable battery.short getCurrentPowerSourceLevel()
CRITICAL_LEVEL
, LOW_LEVEL
,
MIDDLE_LEVEL
, FULL_LEVEL
.boolean isConstantMainsPowerAvailable()
boolean isDisposableBatteryAvailable()
boolean isRechargableBatteryAvailable()
boolean isSyncronizedWithOnIdle()
true
if the Current Power Mode field is synchronized on
idle.boolean isPeriodicallyOn()
true
if the Current Power Mode field is periodically on.boolean isOnWhenStimulated()
true
if the Current Power Mode field tells that the
receiver is on when the device is stimulated by pressing a
button, for instance.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0