Search in sources :

Example 1 with LaserRangeFinderVelocity

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

the class MBrickletLaserRangeFinderImpl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    LaserRangeFinderDistance distance = factory.createLaserRangeFinderDistance();
    distance.setUid(getUid());
    String subIdDistance = "distance";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdDistance);
    distance.setSubId(subIdDistance);
    distance.init();
    distance.setMbrick(this);
    LaserRangeFinderVelocity velocity = factory.createLaserRangeFinderVelocity();
    velocity.setUid(getUid());
    String subIdVelocity = "velocity";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdVelocity);
    velocity.setSubId(subIdVelocity);
    velocity.init();
    velocity.setMbrick(this);
    LaserRangeFinderLaser laser = factory.createLaserRangeFinderLaser();
    laser.setUid(getUid());
    String subIdLaser = "laser";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdLaser);
    laser.setSubId(subIdLaser);
    laser.init();
    laser.setMbrick(this);
}
Also used : ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) LaserRangeFinderLaser(org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderLaser) LaserRangeFinderVelocity(org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderVelocity) LaserRangeFinderDistance(org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderDistance)

Aggregations

LaserRangeFinderDistance (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderDistance)1 LaserRangeFinderLaser (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderLaser)1 LaserRangeFinderVelocity (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderVelocity)1 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1