public class SensorPort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SensorPort |
S1
Declaration used by a sensor connected to port S1.
|
static SensorPort |
S2
Declaration used by a sensor connected to port S2.
|
static SensorPort |
S3
Declaration used by a sensor connected to port S3.
|
static SensorPort |
S4
Declaration used by a sensor connected to port S4.
|
Constructor and Description |
---|
SensorPort(int portId)
Creates a SensorPort from the port id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(SensorPort port)
Compares the labels of the current port to the given port.
|
int |
getId()
Returns the port identification as integer.
|
java.lang.String |
getLabel()
Returns the port identification as string.
|
public static final SensorPort S1
public static final SensorPort S2
public static final SensorPort S3
public static final SensorPort S4
public SensorPort(int portId)
portId
- the port id (0..3)public int getId()
public java.lang.String getLabel()
public boolean equals(SensorPort port)