public class WindowsPowerSource extends AbstractPowerSource
PowerSource.CapacityUnits| 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) |
| Modifier and Type | Method and Description |
|---|---|
static PowerSource[] |
getPowerSources()
Gets Battery Information.
|
getAmperage, getCapacityUnits, getChemistry, getCurrentCapacity, getCycleCount, getDesignCapacity, getDeviceName, getManufactureDate, getManufacturer, getMaxCapacity, getName, getPowerUsageRate, getRemainingCapacity, getRemainingCapacityPercent, getSerialNumber, getTemperature, getTimeRemaining, getTimeRemainingEstimated, getTimeRemainingInstant, getVoltage, isCharging, isDischarging, isPowerOnLine, toString, updateAttributespublic 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)
public static PowerSource[] getPowerSources()
Copyright © 2020. All rights reserved.