当前位置: 首页>>代码示例>>Java>>正文


Java HarmonyHubGateway类代码示例

本文整理汇总了Java中org.openhab.io.harmonyhub.HarmonyHubGateway的典型用法代码示例。如果您正苦于以下问题:Java HarmonyHubGateway类的具体用法?Java HarmonyHubGateway怎么用?Java HarmonyHubGateway使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HarmonyHubGateway类属于org.openhab.io.harmonyhub包,在下文中一共展示了HarmonyHubGateway类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: removeHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void removeHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    if (this.harmonyHubGateway == harmonyHubGateway) {
        for (Entry<String, Set<HarmonyHubListener>> entry : listeners.remove(harmonyHubGateway).entrySet()) {
            for (HarmonyHubListener listener : entry.getValue()) {
                harmonyHubGateway.removeListener(entry.getKey(), listener);
            }
        }
        this.harmonyHubGateway = null;
    }
}
 
开发者ID:tuck182,项目名称:openhab-harmony-binding,代码行数:11,代码来源:HarmonyHubBinding.java

示例2: setHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
/**
 * Wire up our gateway from the IO bundle
 * @param harmonyHubGateway
 */
public void setHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
	logger.debug("addHarmonyHubGateway, configured {}", harmonyHubGateway.isProperlyConfigured());
	this.harmonyHubGateway = harmonyHubGateway;
	this.harmonyHubGateway.addHarmonyHubGatewayListener(this);
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:10,代码来源:HarmonyHubBinding.java

示例3: addHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void addHarmonyHubGateway(
        HarmonyHubGateway harmonyHubGateway) {
    HarmonyHubActionService.harmonyHubGateway = harmonyHubGateway;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:5,代码来源:HarmonyHubActionService.java

示例4: removeHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void removeHarmonyHubGateway(
        HarmonyHubGateway harmonyHubGateway) {
    if (HarmonyHubActionService.harmonyHubGateway == harmonyHubGateway) {
        HarmonyHubActionService.harmonyHubGateway = null;
    }
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:7,代码来源:HarmonyHubActionService.java

示例5: gateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public static HarmonyHubGateway gateway() {
    return harmonyHubGateway;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:4,代码来源:HarmonyHubActionService.java

示例6: addHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void addHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    this.harmonyHubGateway = harmonyHubGateway;
    properlyConfigured = true;
    listeners.put(harmonyHubGateway, new HashMap<String, Set<HarmonyHubListener>>());
    allBindingsChanged();
}
 
开发者ID:tuck182,项目名称:openhab-harmony-binding,代码行数:7,代码来源:HarmonyHubBinding.java

示例7: setHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
/**
 * Wire up our gateway from the IO bundle
 *
 * @param harmonyHubGateway
 */
public void setHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    logger.debug("addHarmonyHubGateway, configured {}", harmonyHubGateway.isProperlyConfigured());
    this.harmonyHubGateway = harmonyHubGateway;
    this.harmonyHubGateway.addHarmonyHubGatewayListener(this);
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:11,代码来源:HarmonyHubBinding.java

示例8: addHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void addHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    HarmonyHubActionService.harmonyHubGateway = harmonyHubGateway;
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:4,代码来源:HarmonyHubActionService.java

示例9: removeHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void removeHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    if (HarmonyHubActionService.harmonyHubGateway == harmonyHubGateway) {
        HarmonyHubActionService.harmonyHubGateway = null;
    }
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:6,代码来源:HarmonyHubActionService.java

示例10: unsetHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
/**
 * un-wire our gateway from the IO package
 * @param harmonyHubGateway
 */
public void unsetHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
	this.harmonyHubGateway = null;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:8,代码来源:HarmonyHubBinding.java

示例11: unsetHarmonyHubGateway

import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
/**
 * un-wire our gateway from the IO package
 *
 * @param harmonyHubGateway
 */
public void unsetHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
    this.harmonyHubGateway = null;
}
 
开发者ID:openhab,项目名称:openhab1-addons,代码行数:9,代码来源:HarmonyHubBinding.java


注:本文中的org.openhab.io.harmonyhub.HarmonyHubGateway类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。