public interface Fireplace extends ObserveableDevice
Modifier and Type | Method and Description |
---|---|
void |
addListener(FireplacePilotLightListener... listener) |
void |
addListener(FireplaceStateChangeListener... listener) |
void |
addListener(FireplaceTimeoutListener... listener) |
void |
cancelTimeout() |
FireplaceState |
getState() |
long |
getTimeoutDelay() |
TimeUnit |
getTimeoutUnit() |
boolean |
isOff() |
boolean |
isOn() |
boolean |
isPilotLightOff() |
boolean |
isPilotLightOn() |
boolean |
isState(FireplaceState state) |
void |
off() |
void |
on() |
void |
on(long timeoutDelay,
TimeUnit timeoutUnit) |
void |
removeListener(FireplacePilotLightListener... listener) |
void |
removeListener(FireplaceStateChangeListener... listener) |
void |
removeListener(FireplaceTimeoutListener... listener) |
void |
setState(FireplaceState state) |
void |
setTimeout(long delay,
TimeUnit unit) |
void |
shutdown() |
removeAllListeners
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
FireplaceState getState()
void setState(FireplaceState state) throws FireplacePilotLightException
FireplacePilotLightException
boolean isState(FireplaceState state)
boolean isOn()
boolean isOff()
boolean isPilotLightOn()
boolean isPilotLightOff()
void on() throws FireplacePilotLightException
FireplacePilotLightException
void on(long timeoutDelay, TimeUnit timeoutUnit) throws FireplacePilotLightException
FireplacePilotLightException
void off()
void setTimeout(long delay, TimeUnit unit)
void cancelTimeout()
long getTimeoutDelay()
TimeUnit getTimeoutUnit()
void addListener(FireplaceStateChangeListener... listener)
void removeListener(FireplaceStateChangeListener... listener)
void addListener(FireplacePilotLightListener... listener)
void removeListener(FireplacePilotLightListener... listener)
void addListener(FireplaceTimeoutListener... listener)
void removeListener(FireplaceTimeoutListener... listener)
void shutdown()
Copyright © 2012–2016 Pi4J. All rights reserved.