| Modifier and Type | Method and Description |
|---|---|
PowerSource.CapacityUnits |
PowerSource.getCapacityUnits()
Reports =the units of
PowerSource.getCurrentCapacity(),
PowerSource.getMaxCapacity(), and PowerSource.getDesignCapacity() |
PowerSource.CapacityUnits |
AbstractPowerSource.getCapacityUnits() |
static PowerSource.CapacityUnits |
PowerSource.CapacityUnits.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerSource.CapacityUnits[] |
PowerSource.CapacityUnits.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
AbstractPowerSource(String name,
String deviceName,
double remainingCapacityPercent,
double timeRemainingEstimated,
double timeRemainingInstant,
double powerUsageRate,
double voltage,
double amperage,
boolean powerOnLine,
boolean charging,
boolean discharging,
PowerSource.CapacityUnits capacityUnits,
int currentCapacity,
int maxCapacity,
int designCapacity,
int cycleCount,
String chemistry,
LocalDate manufactureDate,
String manufacturer,
String serialNumber,
double temperature) |
| Constructor and Description |
|---|
LinuxPowerSource(String psName,
String psDeviceName,
double psRemainingCapacityPercent,
double psTimeRemainingEstimated,
double psTimeRemainingInstant,
double psPowerUsageRate,
double psVoltage,
double psAmperage,
boolean psPowerOnLine,
boolean psCharging,
boolean psDischarging,
PowerSource.CapacityUnits psCapacityUnits,
int psCurrentCapacity,
int psMaxCapacity,
int psDesignCapacity,
int psCycleCount,
String psChemistry,
LocalDate psManufactureDate,
String psManufacturer,
String psSerialNumber,
double psTemperature) |
| Constructor and Description |
|---|
MacPowerSource(String psName,
String psDeviceName,
double psRemainingCapacityPercent,
double psTimeRemainingEstimated,
double psTimeRemainingInstant,
double psPowerUsageRate,
double psVoltage,
double psAmperage,
boolean psPowerOnLine,
boolean psCharging,
boolean psDischarging,
PowerSource.CapacityUnits psCapacityUnits,
int psCurrentCapacity,
int psMaxCapacity,
int psDesignCapacity,
int psCycleCount,
String psChemistry,
LocalDate psManufactureDate,
String psManufacturer,
String psSerialNumber,
double psTemperature) |
| Constructor and Description |
|---|
FreeBsdPowerSource(String psName,
String psDeviceName,
double psRemainingCapacityPercent,
double psTimeRemainingEstimated,
double psTimeRemainingInstant,
double psPowerUsageRate,
double psVoltage,
double psAmperage,
boolean psPowerOnLine,
boolean psCharging,
boolean psDischarging,
PowerSource.CapacityUnits psCapacityUnits,
int psCurrentCapacity,
int psMaxCapacity,
int psDesignCapacity,
int psCycleCount,
String psChemistry,
LocalDate psManufactureDate,
String psManufacturer,
String psSerialNumber,
double psTemperature) |
| Constructor and Description |
|---|
SolarisPowerSource(String psName,
String psDeviceName,
double psRemainingCapacityPercent,
double psTimeRemainingEstimated,
double psTimeRemainingInstant,
double psPowerUsageRate,
double psVoltage,
double psAmperage,
boolean psPowerOnLine,
boolean psCharging,
boolean psDischarging,
PowerSource.CapacityUnits psCapacityUnits,
int psCurrentCapacity,
int psMaxCapacity,
int psDesignCapacity,
int psCycleCount,
String psChemistry,
LocalDate psManufactureDate,
String psManufacturer,
String psSerialNumber,
double psTemperature) |
| Constructor and Description |
|---|
WindowsPowerSource(String psName,
String psDeviceName,
double psRemainingCapacityPercent,
double psTimeRemainingEstimated,
double psTimeRemainingInstant,
double psPowerUsageRate,
double psVoltage,
double psAmperage,
boolean psPowerOnLine,
boolean psCharging,
boolean psDischarging,
PowerSource.CapacityUnits psCapacityUnits,
int psCurrentCapacity,
int psMaxCapacity,
int psDesignCapacity,
int psCycleCount,
String psChemistry,
LocalDate psManufactureDate,
String psManufacturer,
String psSerialNumber,
double psTemperature) |
Copyright © 2020. All rights reserved.