public class SensorsImpl extends AbstractOshiJsonObject implements Sensors
| Constructor and Description |
|---|
SensorsImpl(Sensors sensors)
Creates a new platform-specific Sensors object wrapping the provided
argument
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCpuTemperature()
CPU Temperature
|
double |
getCpuVoltage()
CPU Voltage
|
int[] |
getFanSpeeds()
Fan speeds
|
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic SensorsImpl(Sensors sensors)
sensors - a platform-specific Sensors objectpublic double getCpuTemperature()
getCpuTemperature in interface Sensorspublic int[] getFanSpeeds()
getFanSpeeds in interface Sensorspublic double getCpuVoltage()
getCpuVoltage in interface Sensorspublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.