public class RelayStateChangeEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
protected RelayState |
newState |
protected RelayState |
oldState |
source| Constructor and Description |
|---|
RelayStateChangeEvent(Relay relay,
RelayState oldState,
RelayState newState) |
| Modifier and Type | Method and Description |
|---|---|
RelayState |
getNewState() |
RelayState |
getOldState() |
Relay |
getRelay() |
getSource, toStringprotected final RelayState oldState
protected final RelayState newState
public RelayStateChangeEvent(Relay relay, RelayState oldState, RelayState newState)
public Relay getRelay()
public RelayState getOldState()
public RelayState getNewState()
Copyright © 2012-2013 Pi4J. All Rights Reserved.