public abstract class I2cControllerPortDeviceImpl extends java.lang.Object implements 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) |
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)
public I2cController getI2cController()
I2cControllerPortDevice
getI2cController
in interface I2cControllerPortDevice
public int getPort()
I2cControllerPortDevice
getPort
in interface I2cControllerPortDevice