public abstract class Input extends AbstractPort implements InputInterface
| Modifier | Constructor and Description |
|---|---|
protected |
Input(ControlLabInterface controllab,
InputPortEnum port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSensorListener(SensorListener aListener)
Add a listener.
|
InputPortEnum |
getPort() |
EventListener[] |
getSensorListeners() |
abstract SensorTypeEnum |
getSensorType()
Return the type of sensor.
|
int |
getStatus() |
short |
getValue() |
void |
removeSensorListener(SensorListener aListener)
Remove a listener.
|
protected void |
setStatus(int aStatus)
Set the status of the sensor.
|
protected void |
setValue(short aValue)
Set the value of the sensor.
|
getControlLab, setControlLabprotected Input(ControlLabInterface controllab, InputPortEnum port)
controllab - control labport - input portprotected void setValue(short aValue)
aValue - the new value.protected void setStatus(int aStatus)
aStatus - statuspublic final InputPortEnum getPort()
public void addSensorListener(SensorListener aListener)
aListener - the listener to addpublic void removeSensorListener(SensorListener aListener)
aListener - the listener to remove.public EventListener[] getSensorListeners()
public final short getValue()
public final int getStatus()
public abstract SensorTypeEnum getSensorType()
Copyright © 2018. All rights reserved.