當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。