public class DigitalSensor extends Object implements BinarySensor, SensorPluggedOnDevice, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteNumero
Gateway byte number where the sensor is coded.
|
protected org.lsst.ccs.services.DataProviderDictionaryService |
dataProviderDictionaryService |
protected boolean |
on
this represents the value sent by the sensor.
|
protected org.lsst.ccs.Subsystem |
subs |
| Constructor and Description |
|---|
DigitalSensor() |
DigitalSensor(String dioName,
int inputNumero,
int byteNumero)
Build a new DigitalSensor which is plugged on a plutoGateway for example.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
int |
getByteNumero() |
String |
getDeviceName() |
int |
getInputNumero() |
String |
getName()
The name of this component.
|
boolean |
isOn() |
String |
toString() |
void |
updateValue(int newValue)
This methods updates the digital value for this sensor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisInError@LookupField(strategy=TOP) protected org.lsst.ccs.Subsystem subs
@LookupField(strategy=TREE) protected org.lsst.ccs.services.DataProviderDictionaryService dataProviderDictionaryService
@ConfigurationParameter(range="0..15",
description="The byte numberwhere the value of this sensor is stored in.",
units="unitless",
category="sensor")
protected volatile int byteNumero
protected boolean on
public DigitalSensor()
public DigitalSensor(String dioName, int inputNumero, int byteNumero)
dioName - inputNumero - byteNumero - public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic String getName()
getName in interface SensorPluggedOnDevicepublic int getByteNumero()
getByteNumero in interface SensorPluggedOnDevicepublic int getInputNumero()
public String getDeviceName()
getDeviceName in interface SensorPluggedOnDevice@Command(type=QUERY,
level=1,
description="Return True if the sensor is ON")
public boolean isOn()
isOn in interface BinarySensorpublic void updateValue(int newValue)
updateValue in interface SensorPluggedOnDevicenewValue - Copyright © 2024 LSST. All rights reserved.