本文整理汇总了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;
}
}
示例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);
}
示例3: addHarmonyHubGateway
import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void addHarmonyHubGateway(
HarmonyHubGateway harmonyHubGateway) {
HarmonyHubActionService.harmonyHubGateway = harmonyHubGateway;
}
示例4: removeHarmonyHubGateway
import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void removeHarmonyHubGateway(
HarmonyHubGateway harmonyHubGateway) {
if (HarmonyHubActionService.harmonyHubGateway == harmonyHubGateway) {
HarmonyHubActionService.harmonyHubGateway = null;
}
}
示例5: gateway
import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public static HarmonyHubGateway gateway() {
return harmonyHubGateway;
}
示例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();
}
示例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);
}
示例8: addHarmonyHubGateway
import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void addHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
HarmonyHubActionService.harmonyHubGateway = harmonyHubGateway;
}
示例9: removeHarmonyHubGateway
import org.openhab.io.harmonyhub.HarmonyHubGateway; //导入依赖的package包/类
public synchronized void removeHarmonyHubGateway(HarmonyHubGateway harmonyHubGateway) {
if (HarmonyHubActionService.harmonyHubGateway == harmonyHubGateway) {
HarmonyHubActionService.harmonyHubGateway = null;
}
}
示例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;
}
示例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;
}