Package org.openhab.binding.tinkerforge.internal.model

Examples of org.openhab.binding.tinkerforge.internal.model.RemoteSwitch


   * @generated NOT
   */
  public void addSubDevice(String subId, String subDeviceType)
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    RemoteSwitch subDevice = null;
    if (subDeviceType.equals("A")){
      logger.debug("{} addSubDevice A for subId {}", LoggerConstants.TFINITSUB, subId);
      subDevice = factory.createRemoteSwitchA();
    }
    else if (subDeviceType.equals("B")){
      logger.debug("{} addSubDevice B for subId {}", LoggerConstants.TFINITSUB, subId);
      subDevice = factory.createRemoteSwitchB();
    }
    else if (subDeviceType.equals("C")){
      logger.debug("{} addSubDevice C for subId {}", LoggerConstants.TFINITSUB, subId);
      subDevice = factory.createRemoteSwitchC();
    }
    else {
      logger.error("{} unknown sub device type {} for {}", LoggerConstants.TFINITSUB, subDeviceType, subId);
    }
    if (subDevice != null){
      logger.debug("{} add sub device subId {} for uid {}", LoggerConstants.TFINITSUB, subId, getUid());
      subDevice.setUid(getUid());
      subDevice.setSubId(subId);
      subDevice.init();
      subDevice.setMbrick(this);
    }
  }
View Full Code Here

TOP

Related Classes of org.openhab.binding.tinkerforge.internal.model.RemoteSwitch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.