public class TemperatureSensor extends Input
| Constructor and Description |
|---|
TemperatureSensor(ControlLabInterface controllab,
InputPortEnum port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDegreesCelsius() |
double |
getDegreesFahrenheit() |
SensorTypeEnum |
getSensorType()
Return the type of sensor.
|
addSensorListener, getPort, getSensorListeners, getStatus, getValue, removeSensorListener, setStatus, setValuegetControlLab, setControlLabpublic TemperatureSensor(ControlLabInterface controllab, InputPortEnum port)
controllab - control labport - portpublic SensorTypeEnum getSensorType()
getSensorType in class Inputpublic double getDegreesFahrenheit()
public double getDegreesCelsius()
Copyright © 2018. All rights reserved.