Class SolarisPowerSource

    • Field Detail

      • KSTAT_BATT_MOD

        private static final java.lang.String[] KSTAT_BATT_MOD
      • KSTAT_BATT_IDX

        private static final int KSTAT_BATT_IDX
    • 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)