public abstract class LegacyModulePortDeviceImpl extends java.lang.Object implements RobotArmingStateNotifier.Callback, 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,
RobotArmingStateNotifier.ARMINGSTATE state)
Notifies the callback that a module with which it has registered for notifications
has undergone a change of 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, RobotArmingStateNotifier.ARMINGSTATE state)
RobotArmingStateNotifier.CallbackonModuleStateChange in interface RobotArmingStateNotifier.Callbackmodule - the module whose state has changedstate - the state into which that module has transitioned#registerCallback(Callback)public LegacyModule getLegacyModule()
LegacyModulePortDevicegetLegacyModule in interface LegacyModulePortDevicepublic int getPort()
LegacyModulePortDevicegetPort in interface LegacyModulePortDevice