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, timeoutUnitlisteners| 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, shutdownaddListener, removeAllListeners, removeListenerclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveAllListenersclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagprotected 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 FireplacegetState in class FireplaceBasepublic void setState(FireplaceState state) throws FireplacePilotLightException
FireplacePilotLightExceptionpublic boolean isPilotLightOn()
public boolean isPilotLightOff()
Copyright © 2012–2019 Pi4J. All rights reserved.