|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mbs.services.powermon.PowerStatus
public class PowerStatus
Presents the power state of the system .
| Field Summary | |
|---|---|
static byte |
AC_OFF
indicates that ac cabel is switched off |
static byte |
AC_ON
indicates that ac cabel is switched on |
static byte |
BATTERY_CHARGING
indicates that battery is charging at the moment |
static byte |
BATTERY_CRITICAL
indicates that the level of battery is too low (critical) |
static byte |
BATTERY_HIGH
indicates that the level of battery is high |
static byte |
BATTERY_LOW
indicates that the level of battery is low |
static byte |
BATTERY_UNKNOWN
indicates that the status ot the battery is unknown (when the type ot battery is unknown for example) |
static byte |
NO_SYSTEM_BATTERY
no battery |
| Constructor Summary | |
|---|---|
PowerStatus(byte b1,
byte b2,
int i1,
int i2,
int i3)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object bInfo)
Checks whether this and the specified PowerStatus are equal. |
byte |
getACStatus()
Returns the ac status of the system. |
byte |
getBatteryFlag()
Returns the battery flag of the system. |
int |
getBatteryFullLifeTime()
Returns the lifetime of the battery of the system, when at full charge. |
int |
getBatteryLevel()
Returns the battery level of the system. |
int |
getBatteryTimeToLive()
Returns the remaining lifetime of the battery of the system. |
byte[] |
getBytes()
Representation of the PowerStatus as a byte[]. |
void |
readObject(java.io.InputStream iStream)
Use this method to deserialize the object state. |
java.lang.String |
toString()
String representation of the PowerStatus. |
void |
writeObject(java.io.OutputStream oStream)
Use this method to serialize the object state. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte AC_OFF
public static final byte AC_ON
public static final byte BATTERY_HIGH
public static final byte BATTERY_LOW
public static final byte BATTERY_CRITICAL
public static final byte BATTERY_CHARGING
public static final byte NO_SYSTEM_BATTERY
public static final byte BATTERY_UNKNOWN
| Constructor Detail |
|---|
public PowerStatus(byte b1,
byte b2,
int i1,
int i2,
int i3)
b1 - b2 - i1 - i2 - i3 - | Method Detail |
|---|
public byte getBatteryFlag()
public byte getACStatus()
public int getBatteryLevel()
public int getBatteryTimeToLive()
public int getBatteryFullLifeTime()
public boolean equals(java.lang.Object bInfo)
equals in class java.lang.ObjectbInfo -
public java.lang.String toString()
toString in class java.lang.Object
public void writeObject(java.io.OutputStream oStream)
throws java.lang.Exception
writeObject in interface com.prosyst.util.io.ExternalizableoStream -
java.lang.Exception
public void readObject(java.io.InputStream iStream)
throws java.lang.Exception
readObject in interface com.prosyst.util.io.ExternalizableiStream -
java.lang.Exceptionpublic byte[] getBytes()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||