Interface ZigBeePowerDescriptor
-
public interface ZigBeePowerDescriptorThis 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.
- Author:
- $Id: a41eaf6ad1d257d54d80b0140bd8540348f5419d $
-
-
Field Summary
Fields Modifier and Type Field Description static shortCRITICAL_LEVELCurrent power source level: critical.static shortFULL_LEVELCurrent power source level: 100%.static shortLOW_LEVELCurrent power source level: 33%.static shortMIDDLE_LEVELCurrent power source level: 66%.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description shortgetCurrentPowerMode()Returns the current power mode.shortgetCurrentPowerSource()Returns the current power source field of the Power Descriptor.shortgetCurrentPowerSourceLevel()Returns the current power source level.booleanisConstantMainsPowerAvailable()Checks if constant (mains) power is available.booleanisDisposableBattery()Checks if the currently selected power source is the disposable battery.booleanisDisposableBatteryAvailable()Checks if a disposable battery is available.booleanisMainsPower()Checks if the currently selected power source is the mains power.booleanisOnWhenStimulated()Checks if the receiver is on when the device is simulated.booleanisPeriodicallyOn()Checks if the Current Power Mode field is periodically on.booleanisRechargableBattery()Checks if the currently selected power source is the rechargeable battery.booleanisRechargableBatteryAvailable()Checks if a rechargeable battery is available.booleanisSyncronizedWithOnIdle()Checks if synchronized with the receiver on-when-idle subfield of the node descriptor.
-
-
-
Field Detail
-
CRITICAL_LEVEL
static final short CRITICAL_LEVEL
Current power source level: critical.- See Also:
- Constant Field Values
-
LOW_LEVEL
static final short LOW_LEVEL
Current power source level: 33%.- See Also:
- Constant Field Values
-
MIDDLE_LEVEL
static final short MIDDLE_LEVEL
Current power source level: 66%.- See Also:
- Constant Field Values
-
FULL_LEVEL
static final short FULL_LEVEL
Current power source level: 100%.- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
trueif the currently selected power source is the mains power.
-
isDisposableBattery
boolean isDisposableBattery()
Checks if the currently selected power source is the disposable battery.- Returns:
trueif the currently selected power source is the disposable battery.
-
isRechargableBattery
boolean isRechargableBattery()
Checks if the currently selected power source is the rechargeable battery.- Returns:
trueif 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:
trueif the Current Power Mode field is synchronized on idle.
-
isPeriodicallyOn
boolean isPeriodicallyOn()
Checks if the Current Power Mode field is periodically on.- Returns:
trueif the Current Power Mode field is periodically on.
-
isOnWhenStimulated
boolean isOnWhenStimulated()
Checks if the receiver is on when the device is simulated.- Returns:
trueif the Current Power Mode field tells that the receiver is on when the device is stimulated by pressing a button, for instance.
-
-