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);
}
Aggregations