public abstract class I2cControllerPortDeviceImpl extends java.lang.Object implements RobotArmingStateNotifier.Callback, I2cControllerPortDevice
| Modifier and Type | Field and Description |
|---|---|
protected I2cController |
controller |
protected int |
physicalPort |
| Modifier | Constructor and Description |
|---|---|
protected |
I2cControllerPortDeviceImpl(I2cController controller,
int physicalPort) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
controllerNowArmedOrPretending()
intended as a subclass hook
|
protected void |
controllerNowDisarmed()
intended as a subclass hook
|
protected void |
finishConstruction() |
I2cController |
getI2cController()
Returns the controller associated with this device.
|
int |
getPort()
Returns the port on the associated controller that this device occupies.
|
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 I2cController controller
protected final int physicalPort
protected I2cControllerPortDeviceImpl(I2cController controller, int physicalPort)
protected void finishConstruction()
protected void controllerNowArmedOrPretending()
protected void controllerNowDisarmed()
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 I2cController getI2cController()
I2cControllerPortDevicegetI2cController in interface I2cControllerPortDevicepublic int getPort()
I2cControllerPortDevicegetPort in interface I2cControllerPortDevice