public class LynxUsbDeviceConfiguration extends ControllerConfiguration<LynxModuleConfiguration>
DeviceConfiguration.I2cChannel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XMLATTR_PARENT_MODULE_ADDRESS |
XMLATTR_SERIAL_NUMBER
DISABLED_DEVICE_NAME, name, TAG, XMLATTR_NAME, XMLATTR_PORT
Constructor and Description |
---|
LynxUsbDeviceConfiguration() |
LynxUsbDeviceConfiguration(java.lang.String name,
java.util.List<LynxModuleConfiguration> modules,
SerialNumber serialNumber) |
Modifier and Type | Method and Description |
---|---|
protected void |
deserializeAttributes(XmlPullParser parser)
This gets called while the parser is pointed at the open tag for this device configuration.
|
protected void |
deserializeChildElement(ConfigurationType configurationType,
XmlPullParser parser,
ReadXMLFileHandler xmlReader)
This gets called while the parser is pointed at the open tag for a child device configuration.
|
java.util.List<LynxModuleConfiguration> |
getModules() |
int |
getParentModuleAddress()
Returns the module address of the Lynx module which is directly USB connected
|
protected void |
onDeserializationComplete(ReadXMLFileHandler xmlReader)
This gets called when the serialization process has been completed.
|
void |
setParentModuleAddress(int moduleAddress) |
void |
setSerialNumber(SerialNumber serialNumber) |
forType, getConfigurationType, getDevices, getSerialNumber, isKnownToBeAttached, isSystemSynthetic, setDevices, setKnownToBeAttached, setSystemSynthetic, toUSBDeviceType
compareTo, deserialize, getI2cChannel, getName, getPort, getSpinnerChoiceType, isEnabled, serializeXmlAttributes, setConfigurationType, setEnabled, setName, setPort, sortByName
public static final java.lang.String XMLATTR_PARENT_MODULE_ADDRESS
public LynxUsbDeviceConfiguration()
public LynxUsbDeviceConfiguration(java.lang.String name, java.util.List<LynxModuleConfiguration> modules, SerialNumber serialNumber)
public void setSerialNumber(SerialNumber serialNumber)
setSerialNumber
in class ControllerConfiguration<LynxModuleConfiguration>
public int getParentModuleAddress()
public void setParentModuleAddress(int moduleAddress)
public java.util.List<LynxModuleConfiguration> getModules()
protected void deserializeAttributes(XmlPullParser parser)
DeviceConfiguration
deserializeAttributes
in class ControllerConfiguration<LynxModuleConfiguration>
protected void deserializeChildElement(ConfigurationType configurationType, XmlPullParser parser, ReadXMLFileHandler xmlReader) throws java.io.IOException, XmlPullParserException, RobotCoreException
DeviceConfiguration
deserializeChildElement
in class DeviceConfiguration
java.io.IOException
XmlPullParserException
RobotCoreException
protected void onDeserializationComplete(ReadXMLFileHandler xmlReader)
DeviceConfiguration
onDeserializationComplete
in class DeviceConfiguration