Search in sources :

Example 1 with JoystickButton

use of org.openhab.binding.tinkerforge.internal.model.JoystickButton in project openhab1-addons by openhab.

the class MBrickletJoystickImpl method initSubDevices.

/**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    JoystickXPosition xPosition = ModelFactory.eINSTANCE.createJoystickXPosition();
    xPosition.setUid(getUid());
    String subIdX = "joystick_xposition";
    xPosition.setSubId(subIdX);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdX);
    xPosition.init();
    xPosition.setMbrick(this);
    JoystickYPosition yPosition = ModelFactory.eINSTANCE.createJoystickYPosition();
    yPosition.setUid(getUid());
    String subIdY = "joystick_yposition";
    yPosition.setSubId(subIdY);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdY);
    yPosition.init();
    yPosition.setMbrick(this);
    JoystickButton button = ModelFactory.eINSTANCE.createJoystickButton();
    button.setUid(getUid());
    String subIdButton = "joystick_button";
    button.setSubId(subIdButton);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdButton);
    button.init();
    button.setMbrick(this);
}
Also used : JoystickYPosition(org.openhab.binding.tinkerforge.internal.model.JoystickYPosition) JoystickButton(org.openhab.binding.tinkerforge.internal.model.JoystickButton) JoystickXPosition(org.openhab.binding.tinkerforge.internal.model.JoystickXPosition)

Aggregations

JoystickButton (org.openhab.binding.tinkerforge.internal.model.JoystickButton)1 JoystickXPosition (org.openhab.binding.tinkerforge.internal.model.JoystickXPosition)1 JoystickYPosition (org.openhab.binding.tinkerforge.internal.model.JoystickYPosition)1