Class MockCANLightController
java.lang.Object
xbot.common.controls.actuators.XCANLightController
xbot.common.controls.actuators.mock_adapters.MockCANLightController
Mock adapter for the CAN light controller for testing purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class xbot.common.controls.actuators.XCANLightController
XCANLightController.AnimationType, XCANLightController.XCANLightControllerFactory -
Field Summary
Fields inherited from class xbot.common.controls.actuators.XCANLightController
busId, config, deviceId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMockCANLightController(CANLightControllerInfo info, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAnimation(int slot) voidvoidvoidlarson(int slot, Frequency frameRate, Color color, LarsonBounceValue bounceValue) voidrainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) voidvoidsingleFade(int slot, Frequency frameRate, Color color) voidvoidvoidtwinkleOff(int slot, Frequency frameRate, double density, Color color) Methods inherited from class xbot.common.controls.actuators.XCANLightController
getSlotEndIndex, getSlotStartIndex
-
Constructor Details
-
MockCANLightController
@AssistedInject protected MockCANLightController(@Assisted("info") CANLightControllerInfo info, DevicePolice police)
-
-
Method Details
-
getHealth
- Specified by:
getHealthin classXCANLightController
-
clearAnimation
public void clearAnimation(int slot) - Specified by:
clearAnimationin classXCANLightController
-
colorFlow
- Specified by:
colorFlowin classXCANLightController
-
fire
- Specified by:
firein classXCANLightController
-
larson
- Specified by:
larsonin classXCANLightController
-
rainbow
public void rainbow(int slot, Frequency frameRate, double brightness, AnimationDirectionValue animationDirection) - Specified by:
rainbowin classXCANLightController
-
rgbFade
- Specified by:
rgbFadein classXCANLightController
-
singleFade
- Specified by:
singleFadein classXCANLightController
-
strobe
- Specified by:
strobein classXCANLightController
-
twinkleOff
- Specified by:
twinkleOffin classXCANLightController
-
twinkle
- Specified by:
twinklein classXCANLightController
-