public abstract class EV3DevDevice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ADDRESS |
protected EV3DevPlatform |
CURRENT_PLATFORM |
protected static java.lang.String |
DEVICE |
protected java.util.Properties |
ev3DevProperties |
protected static java.lang.String |
LEGO_PORT |
protected static java.lang.String |
LEGO_SENSOR |
private static Logger |
LOGGER |
protected static java.lang.String |
MODE |
protected java.io.File |
PATH_DEVICE |
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
|
private static final Logger LOGGER
protected final java.util.Properties ev3DevProperties
protected final EV3DevPlatform CURRENT_PLATFORM
protected 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