public class LynxModuleConfiguration extends ControllerConfiguration<DeviceConfiguration>
DeviceConfiguration.I2cChannel| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
XMLATTR_SERIAL_NUMBERDISABLED_DEVICE_NAME, name, XMLATTR_NAME, XMLATTR_PORT| Constructor and Description |
|---|
LynxModuleConfiguration() |
LynxModuleConfiguration(java.lang.String name) |
| 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<DeviceConfiguration> |
getAnalogInputs() |
java.util.List<DeviceConfiguration> |
getDigitalDevices() |
java.util.List<LynxI2cDeviceConfiguration> |
getI2cDevices() |
java.util.List<LynxI2cDeviceConfiguration> |
getI2cDevices(int busZ) |
int |
getModuleAddress() |
SerialNumber |
getModuleSerialNumber()
separate method just to reinforce whose serial number we're retreiving
|
java.util.List<DeviceConfiguration> |
getMotors() |
java.util.List<DeviceConfiguration> |
getPwmOutputs() |
java.util.List<DeviceConfiguration> |
getServos() |
SerialNumber |
getUsbDeviceSerialNumber() |
boolean |
isParent() |
void |
setAnalogInputs(java.util.List<DeviceConfiguration> inputs) |
void |
setDigitalDevices(java.util.List<DeviceConfiguration> digitalDevices) |
void |
setI2cDevices(int busZ,
java.util.List<LynxI2cDeviceConfiguration> devices) |
void |
setI2cDevices(java.util.List<LynxI2cDeviceConfiguration> i2cDevices) |
void |
setIsParent(boolean isParent)
A USB-connected Controller Module is considered a "Parent" and an EIA485-connected Controller Module is a "Child".
|
void |
setModuleAddress(int moduleAddress) |
void |
setMotors(java.util.List<DeviceConfiguration> motors) |
void |
setPort(int port) |
void |
setPwmOutputs(java.util.List<DeviceConfiguration> pwmOutputs) |
void |
setSerialNumber(SerialNumber serialNumber) |
void |
setServos(java.util.List<DeviceConfiguration> servos) |
void |
setUsbDeviceSerialNumber(SerialNumber usbDeviceSerialNumber) |
forType, getConfigurationType, getDevices, getSerialNumber, isKnownToBeAttached, isSystemSynthetic, setDevices, setKnownToBeAttached, setSystemSynthetic, toUSBDeviceTypecompareTo, deserialize, getI2cChannel, getName, getPort, getSpinnerChoiceType, isEnabled, onDeserializationComplete, serializeXmlAttributes, setConfigurationType, setEnabled, setName, sortByNamepublic static final java.lang.String TAG
public LynxModuleConfiguration()
public LynxModuleConfiguration(java.lang.String name)
public void setPort(int port)
setPort in class DeviceConfigurationpublic void setModuleAddress(int moduleAddress)
public int getModuleAddress()
public void setIsParent(boolean isParent)
public boolean isParent()
public void setUsbDeviceSerialNumber(SerialNumber usbDeviceSerialNumber)
public void setSerialNumber(SerialNumber serialNumber)
setSerialNumber in class ControllerConfiguration<DeviceConfiguration>public SerialNumber getUsbDeviceSerialNumber()
public SerialNumber getModuleSerialNumber()
public java.util.List<DeviceConfiguration> getServos()
public void setServos(java.util.List<DeviceConfiguration> servos)
public java.util.List<DeviceConfiguration> getMotors()
public void setMotors(java.util.List<DeviceConfiguration> motors)
public java.util.List<DeviceConfiguration> getAnalogInputs()
public void setAnalogInputs(java.util.List<DeviceConfiguration> inputs)
public java.util.List<DeviceConfiguration> getPwmOutputs()
public void setPwmOutputs(java.util.List<DeviceConfiguration> pwmOutputs)
public java.util.List<LynxI2cDeviceConfiguration> getI2cDevices()
public void setI2cDevices(java.util.List<LynxI2cDeviceConfiguration> i2cDevices)
public java.util.List<LynxI2cDeviceConfiguration> getI2cDevices(int busZ)
public void setI2cDevices(int busZ,
java.util.List<LynxI2cDeviceConfiguration> devices)
public java.util.List<DeviceConfiguration> getDigitalDevices()
public void setDigitalDevices(java.util.List<DeviceConfiguration> digitalDevices)
protected void deserializeChildElement(ConfigurationType configurationType, XmlPullParser parser, ReadXMLFileHandler xmlReader) throws java.io.IOException, XmlPullParserException, RobotCoreException
DeviceConfigurationdeserializeChildElement in class DeviceConfigurationjava.io.IOExceptionXmlPullParserExceptionRobotCoreExceptionprotected void deserializeAttributes(XmlPullParser parser)
DeviceConfigurationdeserializeAttributes in class ControllerConfiguration<DeviceConfiguration>