Class SolarisPowerSource
- java.lang.Object
-
- oshi.hardware.common.AbstractPowerSource
-
- oshi.hardware.platform.unix.solaris.SolarisPowerSource
-
- All Implemented Interfaces:
PowerSource
@ThreadSafe public final class SolarisPowerSource extends AbstractPowerSource
A Power Source
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oshi.hardware.PowerSource
PowerSource.CapacityUnits
-
-
Field Summary
Fields Modifier and Type Field Description private static int
KSTAT_BATT_IDX
private static java.lang.String[]
KSTAT_BATT_MOD
-
Constructor Summary
Constructors Constructor Description SolarisPowerSource(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
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static SolarisPowerSource
getPowerSource(java.lang.String name)
static java.util.List<PowerSource>
getPowerSources()
Gets Battery Information-
Methods 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
-
-
-
-
Constructor Detail
-
SolarisPowerSource
public SolarisPowerSource(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 Detail
-
getPowerSources
public static java.util.List<PowerSource> getPowerSources()
Gets Battery Information- Returns:
- A list of PowerSource objects representing batteries, etc.
-
getPowerSource
private static SolarisPowerSource getPowerSource(java.lang.String name)
-
-