Class MacPowerSource
java.lang.Object
oshi.hardware.common.AbstractPowerSource
oshi.hardware.common.platform.mac.MacPowerSource
- All Implemented Interfaces:
PowerSource
- Direct Known Subclasses:
MacPowerSourceJNA
A Power Source
-
Nested Class Summary
Nested classes/interfaces inherited from interface PowerSource
PowerSource.CapacityUnits -
Constructor Summary
ConstructorsConstructorDescriptionMacPowerSource(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) Creates a MacPowerSource. -
Method Summary
Methods inherited from class AbstractPowerSource
getAmperage, getCapacityUnits, getChemistry, getCurrentCapacity, getCycleCount, getDesignCapacity, getDeviceName, getManufactureDate, getManufacturer, getMaxCapacity, getName, getPowerUsageRate, getRemainingCapacityPercent, getSerialNumber, getTemperature, getTimeRemainingEstimated, getTimeRemainingInstant, getVoltage, isCharging, isDischarging, isPowerOnLine, queryPowerSources, toString, updateAttributes
-
Constructor Details
-
MacPowerSource
public MacPowerSource(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) Creates a MacPowerSource.- Parameters:
psName- power source namepsDeviceName- device namepsRemainingCapacityPercent- remaining capacity percentagepsTimeRemainingEstimated- estimated time remainingpsTimeRemainingInstant- instant time remainingpsPowerUsageRate- power usage ratepsVoltage- voltagepsAmperage- amperagepsPowerOnLine- whether on AC powerpsCharging- whether chargingpsDischarging- whether dischargingpsCapacityUnits- capacity unitspsCurrentCapacity- current capacitypsMaxCapacity- max capacitypsDesignCapacity- design capacitypsCycleCount- cycle countpsChemistry- chemistrypsManufactureDate- manufacture datepsManufacturer- manufacturerpsSerialNumber- serial numberpsTemperature- temperature
-