public class FireplaceDevice extends FireplaceBase
Modifier and Type | Field and Description |
---|---|
protected Relay |
fireplaceControlRelay |
protected RelayState |
fireplaceOnRelayState |
protected SensorState |
pilotLightOnState |
protected Sensor |
pilotLightSensor |
executor, timeoutDelay, timeoutTask, timeoutUnit
listeners
Constructor and Description |
---|
FireplaceDevice(Relay fireplaceControlRelay) |
FireplaceDevice(Relay fireplaceControlRelay,
RelayState fireplaceOnRelayState) |
FireplaceDevice(Relay fireplaceControlRelay,
RelayState fireplaceOnRelayState,
Sensor pilotLightSensor,
SensorState pilotLightOnState) |
FireplaceDevice(Relay fireplaceControlRelay,
Sensor pilotLightSensor) |
Modifier and Type | Method and Description |
---|---|
FireplaceState |
getState() |
boolean |
isPilotLightOff() |
boolean |
isPilotLightOn() |
void |
setState(FireplaceState state) |
addListener, addListener, addListener, cancelTimeout, cancelTimeoutTask, getTimeoutDelay, getTimeoutUnit, isOff, isOn, isState, notifyListeners, notifyListeners, notifyListeners, off, on, on, removeListener, removeListener, removeListener, setTimeout, shutdown
addListener, removeAllListeners, removeListener
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeAllListeners
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
protected final Relay fireplaceControlRelay
protected final RelayState fireplaceOnRelayState
protected final Sensor pilotLightSensor
protected final SensorState pilotLightOnState
public FireplaceDevice(Relay fireplaceControlRelay, RelayState fireplaceOnRelayState)
public FireplaceDevice(Relay fireplaceControlRelay)
public FireplaceDevice(Relay fireplaceControlRelay, RelayState fireplaceOnRelayState, Sensor pilotLightSensor, SensorState pilotLightOnState)
public FireplaceState getState()
getState
in interface Fireplace
getState
in class FireplaceBase
public void setState(FireplaceState state) throws FireplacePilotLightException
FireplacePilotLightException
public boolean isPilotLightOn()
public boolean isPilotLightOff()
Copyright © 2012–2016 Pi4J. All rights reserved.