public class SensorDeviceOperator extends DeviceOperator
Modifier and Type | Field and Description |
---|---|
int |
currentValue |
boolean |
isRatiometric |
int |
itsDataRate |
java.util.ArrayList<java.lang.Integer> |
itsValues |
int |
kWindowSize |
int |
lastValue |
itsDeviceInterface, itsDevicePosCounter
Constructor and Description |
---|
SensorDeviceOperator(int channel)
standard constructor for the DeviceController class
|
SensorDeviceOperator(int channel,
int windowSize)
standard constructor for the DeviceController class
|
Modifier and Type | Method and Description |
---|---|
float |
getSensorValue()
gets the sensor value
|
void |
setTriggerProc(TriggerProc theProc)
sets the trigger procedure for the interface
|
java.lang.String |
toString()
gets the operator as a string
|
confirmInterface, getDataChannelDescriptor, getDeviceTypeStr, getTriggerProc, isControlDeviceOperator, isSensorDeviceOperator, list, reportDeviceStatus, setDataChannelDescriptor, setDeviceTypeStr
public int currentValue
public int lastValue
public int kWindowSize
public java.util.ArrayList<java.lang.Integer> itsValues
public boolean isRatiometric
public int itsDataRate
public SensorDeviceOperator(int channel, int windowSize)
channel
- the device channelwindowSize
- the window sizepublic SensorDeviceOperator(int channel)
channel
- the device channelpublic float getSensorValue() throws java.lang.Exception
java.lang.Exception
- ...public void setTriggerProc(TriggerProc theProc)
setTriggerProc
in class DeviceOperator
theProc
- the trigger procedure to usepublic java.lang.String toString()
toString
in class DeviceOperator
RH, 2017