The Power Descriptor gives a dynamic indication of the power status of the node.
| Modifier and Type | Field and Description |
|---|---|
| public static final short | CRITICAL_LEVEL
Current power source level: critical. |
| public static final short | FULL_LEVEL
Current power source level: 100%. |
| public static final short | LOW_LEVEL
Current power source level: 33%. |
| public static final short | MIDDLE_LEVEL
Current power source level: 66%. |
| Modifier and Type | Method and Description |
|---|---|
| public short | |
| public short | Returns: the current power source field of the Power Descriptor.Returns the current power source field of the Power Descriptor. |
| public short | Returns: the current power source level. May be one ofCRITICAL_LEVEL, LOW_LEVEL,
MIDDLE_LEVEL, FULL_LEVEL.Returns the current power source level. |
| public boolean | Returns: true if constant (mains) power is available or false otherwise.Checks if constant (mains) power is available. |
| public boolean | Returns: true if the currently selected power source is the
disposable battery.Checks if the currently selected power source is the disposable battery. |
| public boolean | Returns: true if a disposable battery is available or false otherwise.Checks if a disposable battery is available. |
| public boolean | Returns: true if the currently selected power source is the mains
power.Checks if the currently selected power source is the mains power. |
| public boolean | 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.Checks if the receiver is on when the device is simulated. |
| public boolean | Returns: true if the Current Power Mode field is periodically on.Checks if the Current Power Mode field is periodically on. |
| public boolean | Returns: true if the currently selected power source is the
rechargeable battery.Checks if the currently selected power source is the rechargeable battery. |
| public boolean | Returns: true if a rechargeable battery is available or false otherwise.Checks if a rechargeable battery is available. |
| public boolean | Returns: true if the Current Power Mode field is synchronized on
idle.Checks if synchronized with the receiver on-when-idle subfield of the node descriptor. |
| CRITICAL_LEVEL | back to summary |
|---|---|
| public static final short CRITICAL_LEVEL Current power source level: critical. | |
| FULL_LEVEL | back to summary |
|---|---|
| public static final short FULL_LEVEL Current power source level: 100%. | |
| LOW_LEVEL | back to summary |
|---|---|
| public static final short LOW_LEVEL Current power source level: 33%. | |
| MIDDLE_LEVEL | back to summary |
|---|---|
| public static final short MIDDLE_LEVEL Current power source level: 66%. | |
| getCurrentPowerMode | back to summary |
|---|---|
| public short getCurrentPowerMode() Returns the current power mode.
| |
| getCurrentPowerSource | back to summary |
|---|---|
| public short getCurrentPowerSource() Returns the current power source field of the Power Descriptor.
| |
| getCurrentPowerSourceLevel | back to summary |
|---|---|
| public short getCurrentPowerSourceLevel() Returns the current power source level.
| |
| isConstantMainsPowerAvailable | back to summary |
|---|---|
| public boolean isConstantMainsPowerAvailable() Checks if constant (mains) power is available.
| |
| isDisposableBattery | back to summary |
|---|---|
| public boolean isDisposableBattery() Checks if the currently selected power source is the disposable battery.
| |
| isDisposableBatteryAvailable | back to summary |
|---|---|
| public boolean isDisposableBatteryAvailable() Checks if a disposable battery is available.
| |
| isMainsPower | back to summary |
|---|---|
| public boolean isMainsPower() Checks if the currently selected power source is the mains power.
| |
| isOnWhenStimulated | back to summary |
|---|---|
| public boolean isOnWhenStimulated() Checks if the receiver is on when the device is simulated.
| |
| isPeriodicallyOn | back to summary |
|---|---|
| public boolean isPeriodicallyOn() Checks if the Current Power Mode field is periodically on.
| |
| isRechargableBattery | back to summary |
|---|---|
| public boolean isRechargableBattery() Checks if the currently selected power source is the rechargeable battery.
| |
| isRechargableBatteryAvailable | back to summary |
|---|---|
| public boolean isRechargableBatteryAvailable() Checks if a rechargeable battery is available.
| |
| isSyncronizedWithOnIdle | back to summary |
|---|---|
| public boolean isSyncronizedWithOnIdle() Checks if synchronized with the receiver on-when-idle subfield of the node descriptor.
| |