public abstract class ControllerConfiguration<ITEM_T extends DeviceConfiguration> extends DeviceConfiguration implements java.io.Serializable
DeviceConfiguration.I2cChannel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XMLATTR_SERIAL_NUMBER |
DISABLED_DEVICE_NAME, name, TAG, XMLATTR_NAME, XMLATTR_PORT
Constructor and Description |
---|
ControllerConfiguration(java.lang.String name,
java.util.List<ITEM_T> devices,
SerialNumber serialNumber,
ConfigurationType type) |
ControllerConfiguration(java.lang.String name,
SerialNumber serialNumber,
ConfigurationType type) |
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.
|
static ControllerConfiguration |
forType(java.lang.String name,
SerialNumber serialNumber,
ConfigurationType type) |
ConfigurationType |
getConfigurationType() |
java.util.List<ITEM_T> |
getDevices() |
SerialNumber |
getSerialNumber() |
boolean |
isKnownToBeAttached() |
boolean |
isSystemSynthetic() |
void |
setDevices(java.util.List<ITEM_T> devices) |
void |
setKnownToBeAttached(boolean knownToBeAttached) |
void |
setSerialNumber(SerialNumber serialNumber) |
void |
setSystemSynthetic(boolean systemSynthetic) |
DeviceManager.UsbDeviceType |
toUSBDeviceType() |
compareTo, deserialize, deserializeChildElement, getI2cChannel, getName, getPort, getSpinnerChoiceType, isEnabled, onDeserializationComplete, serializeXmlAttributes, setConfigurationType, setEnabled, setName, setPort, sortByName
public static final java.lang.String XMLATTR_SERIAL_NUMBER
public ControllerConfiguration(java.lang.String name, SerialNumber serialNumber, ConfigurationType type)
public ControllerConfiguration(java.lang.String name, java.util.List<ITEM_T> devices, SerialNumber serialNumber, ConfigurationType type)
public static ControllerConfiguration forType(java.lang.String name, SerialNumber serialNumber, ConfigurationType type)
public java.util.List<ITEM_T> getDevices()
public ConfigurationType getConfigurationType()
getConfigurationType
in class DeviceConfiguration
public void setSerialNumber(SerialNumber serialNumber)
public SerialNumber getSerialNumber()
public boolean isKnownToBeAttached()
public void setKnownToBeAttached(boolean knownToBeAttached)
public boolean isSystemSynthetic()
public void setSystemSynthetic(boolean systemSynthetic)
public void setDevices(java.util.List<ITEM_T> devices)
public DeviceManager.UsbDeviceType toUSBDeviceType()
protected void deserializeAttributes(XmlPullParser parser)
DeviceConfiguration
deserializeAttributes
in class DeviceConfiguration