Examples of TFServoConfiguration


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

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetTfConfig(TFServoConfiguration newTfConfig, NotificationChain msgs)
  {
    TFServoConfiguration oldTfConfig = tfConfig;
    tfConfig = newTfConfig;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ModelPackage.MSERVO__TF_CONFIG, oldTfConfig, newTfConfig);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

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

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ModelPackage.TF_SERVO_CONFIGURATION:
      {
        TFServoConfiguration tfServoConfiguration = (TFServoConfiguration)theEObject;
        T result = caseTFServoConfiguration(tfServoConfiguration);
        if (result == null) result = caseTFConfig(tfServoConfiguration);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

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

  private void createOHTFDeviceConfig(Map<String, String> deviceConfig)
      throws ConfigurationException {
    String deviceType = deviceConfig.get(ConfigKey.type.name());
    if (deviceType.equals(TypeKey.servo.name())) {
      logger.debug("{} setting servo config", LoggerConstants.CONFIG);
      TFServoConfiguration servoConfiguration = modelFactory.createTFServoConfiguration();
      OHTFDevice<TFServoConfiguration, ServoSubIDs> ohtfDevice = modelFactory.createOHTFDevice();
      ohtfDevice.getSubDeviceIds().addAll(Arrays.asList(ServoSubIDs.values()));
      ohtfDevice.setTfConfig(servoConfiguration);
      fillupConfig(ohtfDevice, deviceConfig);
    } else if (deviceType.equals(TypeKey.bricklet_distance_ir.name())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.