本文整理匯總了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;
}