Class WindowsPowerSource

java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.platform.windows.WindowsPowerSource
All Implemented Interfaces:
PowerSource

@ThreadSafe public final class WindowsPowerSource extends AbstractPowerSource
A Power Source
  • Constructor Details

    • WindowsPowerSource

      public 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)
  • Method Details

    • getPowerSources

      public static List<PowerSource> getPowerSources()
      Gets Battery Information.
      Returns:
      A list of PowerSource objects representing batteries, etc.