Class OpenBsdPowerSource
java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.platform.unix.openbsd.OpenBsdPowerSource
- All Implemented Interfaces:
PowerSource
@ThreadSafe public final class OpenBsdPowerSource extends AbstractPowerSource
A Power Source
-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.hardware.PowerSource
PowerSource.CapacityUnits
-
Constructor Summary
Constructors Constructor Description OpenBsdPowerSource(java.lang.String psName, java.lang.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, java.lang.String psChemistry, java.time.LocalDate psManufactureDate, java.lang.String psManufacturer, java.lang.String psSerialNumber, double psTemperature)
-
Method Summary
Modifier and Type Method Description static java.util.List<PowerSource>
getPowerSources()
Gets Battery InformationMethods inherited from class oshi.hardware.common.AbstractPowerSource
getAmperage, getCapacityUnits, getChemistry, getCurrentCapacity, getCycleCount, getDesignCapacity, getDeviceName, getManufactureDate, getManufacturer, getMaxCapacity, getName, getPowerUsageRate, getRemainingCapacityPercent, getSerialNumber, getTemperature, getTimeRemainingEstimated, getTimeRemainingInstant, getVoltage, isCharging, isDischarging, isPowerOnLine, toString, updateAttributes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
OpenBsdPowerSource
public OpenBsdPowerSource(java.lang.String psName, java.lang.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, java.lang.String psChemistry, java.time.LocalDate psManufactureDate, java.lang.String psManufacturer, java.lang.String psSerialNumber, double psTemperature)
-
-
Method Details
-
getPowerSources
Gets Battery Information- Returns:
- An array of PowerSource objects representing batteries, etc.
-