
public abstract class EV3DevDevice extends EV3DevPlatform
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ADDRESS |
protected static java.lang.String |
DEVICE |
protected static java.lang.String |
LEGO_PORT |
protected static java.lang.String |
LEGO_SENSOR |
protected static java.lang.String |
MODE |
protected java.io.File |
PATH_DEVICE |
DEVICE_ROOT_PATHBRICKPI, EV3BRICK, PISTORMS| Constructor and Description |
|---|
EV3DevDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
detect(java.lang.String type,
java.lang.String portName)
This method matches a input with the internal position in EV3Dev.
|
protected int |
getIntegerAttribute(java.lang.String attribute)
Returns the value of an attribute supported for a Device
|
protected java.lang.String |
getStringAttribute(java.lang.String attribute)
Returns the value of an attribute supported for a Device
|
protected void |
setIntegerAttribute(java.lang.String attribute,
int value)
Set a value on an attribute
|
protected void |
setStringAttribute(java.lang.String attribute,
java.lang.String value)
Set a value on an attribute
|
getMotorPort, getPlatform, getSensorPortprotected static final java.lang.String LEGO_PORT
protected static final java.lang.String ADDRESS
protected static final java.lang.String LEGO_SENSOR
protected static final java.lang.String MODE
protected static final java.lang.String DEVICE
protected java.io.File PATH_DEVICE
protected void detect(java.lang.String type,
java.lang.String portName)
type - typeportName - portprotected java.lang.String getStringAttribute(java.lang.String attribute)
attribute - attributeprotected int getIntegerAttribute(java.lang.String attribute)
attribute - attributeprotected void setStringAttribute(java.lang.String attribute,
java.lang.String value)
attribute - attributevalue - valueprotected void setIntegerAttribute(java.lang.String attribute,
int value)
attribute - attributevalue - value