Class SolarisPowerSource

java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.platform.unix.solaris.SolarisPowerSource
All Implemented Interfaces:
oshi.hardware.PowerSource

@ThreadSafe public final class SolarisPowerSource extends oshi.hardware.common.AbstractPowerSource
A Power Source
  • Nested Class Summary

    Nested classes/interfaces inherited from interface oshi.hardware.PowerSource

    oshi.hardware.PowerSource.CapacityUnits
  • Constructor Summary

    Constructors
    Constructor
    Description
    SolarisPowerSource(String psName, String psDeviceName, double psRemainingCapacityPercent, double psTimeRemainingEstimated, double psTimeRemainingInstant, double psPowerUsageRate, double psVoltage, double psAmperage, boolean psPowerOnLine, boolean psCharging, boolean psDischarging, oshi.hardware.PowerSource.CapacityUnits psCapacityUnits, int psCurrentCapacity, int psMaxCapacity, int psDesignCapacity, int psCycleCount, String psChemistry, LocalDate psManufactureDate, String psManufacturer, String psSerialNumber, double psTemperature)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<oshi.hardware.PowerSource>
    Gets Battery Information
    protected List<oshi.hardware.PowerSource>
     

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SolarisPowerSource

      public SolarisPowerSource(String psName, String psDeviceName, double psRemainingCapacityPercent, double psTimeRemainingEstimated, double psTimeRemainingInstant, double psPowerUsageRate, double psVoltage, double psAmperage, boolean psPowerOnLine, boolean psCharging, boolean psDischarging, oshi.hardware.PowerSource.CapacityUnits psCapacityUnits, int psCurrentCapacity, int psMaxCapacity, int psDesignCapacity, int psCycleCount, String psChemistry, LocalDate psManufactureDate, String psManufacturer, String psSerialNumber, double psTemperature)
  • Method Details

    • queryPowerSources

      protected List<oshi.hardware.PowerSource> queryPowerSources()
      Specified by:
      queryPowerSources in class oshi.hardware.common.AbstractPowerSource
    • getPowerSources

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