public abstract class LegacyModulePortDeviceImpl extends java.lang.Object implements LegacyModulePortDevice
Modifier and Type | Field and Description |
---|---|
protected LegacyModule |
module |
protected int |
physicalPort |
Modifier | Constructor and Description |
---|---|
protected |
LegacyModulePortDeviceImpl(LegacyModule module,
int physicalPort) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishConstruction() |
LegacyModule |
getLegacyModule()
Returns the legacy module associated with this device.
|
int |
getPort()
Returns the port on the associated legacy module that this device occupies.
|
protected void |
moduleNowArmedOrPretending()
intended as a subclass hook
|
protected void |
moduleNowDisarmed()
intended as a subclass hook
|
void |
onModuleStateChange(RobotArmingStateNotifier module,
RobotUsbModule.ARMINGSTATE state) |
protected final LegacyModule module
protected final int physicalPort
protected LegacyModulePortDeviceImpl(LegacyModule module, int physicalPort)
protected void finishConstruction()
protected void moduleNowArmedOrPretending()
protected void moduleNowDisarmed()
public void onModuleStateChange(RobotArmingStateNotifier module, RobotUsbModule.ARMINGSTATE state)
public LegacyModule getLegacyModule()
LegacyModulePortDevice
getLegacyModule
in interface LegacyModulePortDevice
public int getPort()
LegacyModulePortDevice
getPort
in interface LegacyModulePortDevice