
public class ComplementarySensors extends Object implements BinarySensor
| Constructor and Description |
|---|
ComplementarySensors(DigitalSensor sensor,
DigitalSensor sensorC)
Create a couple of complementary sensors.
|
| Modifier and Type | Method and Description |
|---|---|
DigitalSensor |
getSensor()
for simulation
|
DigitalSensor |
getSensorC()
for simulation
|
boolean |
isInError() |
boolean |
isOn() |
public ComplementarySensors(DigitalSensor sensor, DigitalSensor sensorC)
sensor - sensorC - public DigitalSensor getSensor()
public DigitalSensor getSensorC()
@Command(type=QUERY, level=0, description="Return true if this couple of sensors are in error.") public boolean isInError()
isInError in interface BinarySensor@Command(type=QUERY, level=0, description="Return true if sensor\'s value is 1 and sensorC\'s value is 0.") public boolean isOn()
isOn in interface BinarySensorCopyright © 2021 LSST. All rights reserved.