Class SimulatedWeatherStation
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.sim.AbstractSimulatedDevice
org.episteme.natural.device.sim.SimulatedWeatherStation
- All Implemented Interfaces:
Serializable, AutoCloseable, ComplexInstrument, Device, Commented, ComprehensiveIdentification, Identified<Identification>, Named, WeatherStation
Simulated implementation of WeatherStation.
A WeatherStation is a complex instrument aggregating temperature, humidity and pressure sensors.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Field Summary
Fields inherited from class AbstractSimulatedDevice
supportFields inherited from class AbstractDevice
accuracy, calibrationHistory, currentValue, displayUnit, firmware, history, identification, lastCalibration, locationDescription, manufacturer, maxRange, minRange, model, precisionDescription, resolution, sensitivity, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connects to the device.voidDisconnects from the device.Methods inherited from class AbstractSimulatedDevice
addCustomReadings, close, getCapabilities, getDriverClass, getErrorCode, getFormattedInfo, getReadings, getStatus, getUptimeSeconds, isConnected, isPowerOn, setCapability, setDriverClass, setErrorCode, setPowerOnMethods inherited from class AbstractDevice
calibrate, getAccuracy, getCalibrationHistory, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getResolution, getSensitivity, getTrait, getTraitOptional, getTraits, getValue, isEnabled, measure, needsCalibration, performCalibration, recordMeasurement, setAccuracy, setCurrentValue, setDisplayUnit, setEnabled, setFirmware, setLastCalibration, setLocationDescription, setManufacturer, setMaxRange, setMinRange, setModel, setPrecisionDescription, setResolution, setSensitivity, setStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComplexInstrument
calibrate, getActuatorsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, getValue, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabledMethods inherited from interface WeatherStation
getHumidityPercent, getPressureHPa, getTemperatureCelsius
-
Constructor Details
-
SimulatedWeatherStation
-
-
Method Details
-
connect
Description copied from interface:DeviceConnects to the device.- Specified by:
connectin interfaceDevice- Overrides:
connectin classAbstractSimulatedDevice- Throws:
IOException- if the connection fails
-
disconnect
Description copied from interface:DeviceDisconnects from the device.- Specified by:
disconnectin interfaceDevice- Overrides:
disconnectin classAbstractSimulatedDevice- Throws:
IOException- if the disconnection fails
-
getTemperatureProbe
- Specified by:
getTemperatureProbein interfaceWeatherStation
-
getHumidityProbe
- Specified by:
getHumidityProbein interfaceWeatherStation
-
getPressureGauge
- Specified by:
getPressureGaugein interfaceWeatherStation
-
getSensors
- Specified by:
getSensorsin interfaceComplexInstrument- Returns:
- The list of sensors attached to this instrument.
-