Package xbot.common.injection.modules
Class MockDevicesModule
java.lang.Object
xbot.common.injection.modules.MockDevicesModule
Module for mapping device interfaces to mock implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnalogDistanceSensorFactory
(SimulatedAnalogDistanceSensor.SimulatedAnalogDistanceSensorFactory impl) abstract XAnalogInput.XAnalogInputFactory
abstract XCANCoder.XCANCoderFactory
abstract XCompressor.XCompressorFactory
abstract XDigitalInput.XDigitalInputFactory
abstract XDigitalOutput.XDigitalOutputFactory
abstract XEncoder.XEncoderFactory
abstract XGyro.XGyroFactory
abstract XLidarLite.XLidarLiteFactory
abstract XPWM.XPWMFactory
abstract XRelay.XRelayFactory
abstract XServo.XServoFactory
abstract XSolenoid.XSolenoidFactory
-
Constructor Details
-
MockDevicesModule
public MockDevicesModule()
-
-
Method Details
-
getPowerDistributionPanelFactory
@Binds @Singleton public abstract XPowerDistributionPanel.XPowerDistributionPanelFactory getPowerDistributionPanelFactory(MockPowerDistributionPanel.MockPowerDistributionPanelFactory impl) -
getAnalogInputFactory
@Binds @Singleton public abstract XAnalogInput.XAnalogInputFactory getAnalogInputFactory(MockAnalogInput.MockAnalogInputFactory impl) -
getDigitalInputFactory
@Binds @Singleton public abstract XDigitalInput.XDigitalInputFactory getDigitalInputFactory(MockDigitalInput.MockDigitalInputFactory impl) -
getDigitalOutputFactory
@Binds @Singleton public abstract XDigitalOutput.XDigitalOutputFactory getDigitalOutputFactory(MockDigitalOutput.MockDigitalOutputFactory impl) -
getPwmFactory
-
getCompressorFactory
@Binds @Singleton public abstract XCompressor.XCompressorFactory getCompressorFactory(MockCompressor.MockCompressorFactory impl) -
getGyroFactory
-
getServoFactory
@Binds @Singleton public abstract XServo.XServoFactory getServoFactory(MockServo.MockServoFactory impl) -
getAnalogDistanceSensorFactory
@Binds @Singleton public abstract XAnalogDistanceSensor.XAnalogDistanceSensorFactory getAnalogDistanceSensorFactory(SimulatedAnalogDistanceSensor.SimulatedAnalogDistanceSensorFactory impl) -
getMotorControllerFactory
@Binds @Singleton public abstract XCANMotorController.XCANMotorControllerFactory getMotorControllerFactory(MockCANMotorController.MockCANMotorControllerFactory impl) -
getLidarLiteFactory
@Binds @Singleton public abstract XLidarLite.XLidarLiteFactory getLidarLiteFactory(MockLidarLite.MockLidarLiteFactory impl) -
getEncoderFactory
@Binds @Singleton public abstract XEncoder.XEncoderFactory getEncoderFactory(MockEncoder.MockEncoderFactory impl) -
getAbsoluteEncoderFactory
@Binds @Singleton public abstract XAbsoluteEncoder.XAbsoluteEncoderFactory getAbsoluteEncoderFactory(MockAbsoluteEncoder.MockAbsoluteEncoderFactory impl) -
getCANCoderFactory
@Binds @Singleton public abstract XCANCoder.XCANCoderFactory getCANCoderFactory(MockCANCoder.MockCANCoderFactory impl) -
getSolenoidFactory
@Binds @Singleton public abstract XSolenoid.XSolenoidFactory getSolenoidFactory(MockSolenoid.MockSolenoidFactory impl) -
getRelayFactory
@Binds @Singleton public abstract XRelay.XRelayFactory getRelayFactory(MockRelay.MockRelayFactory impl) -
getSpeedControllerFactory
@Binds @Singleton public abstract XSpeedController.XSpeedControllerFactory getSpeedControllerFactory(MockSpeedController.MockSpeedControllerFactory impl) -
getZeromqListenerFactory
@Binds @Singleton public abstract XZeromqListener.XZeromqListenerFactory getZeromqListenerFactory(MockZeromqListener.MockZeromqListenerFactory impl) -
getDutyCycleEncoderFactory
@Binds @Singleton public abstract XDutyCycleEncoder.XDutyCycleEncoderFactory getDutyCycleEncoderFactory(MockDutyCycleEncoder.MockDutyCycleEncoderFactory impl)
-