Package | Description |
---|---|
com.pi4j.component.relay | |
com.pi4j.component.relay.impl |
Modifier and Type | Field and Description |
---|---|
protected RelayState |
RelayStateChangeEvent.newState |
protected RelayState |
RelayStateChangeEvent.oldState |
Modifier and Type | Method and Description |
---|---|
static RelayState |
RelayState.getInverseState(RelayState state) |
RelayState |
RelayStateChangeEvent.getNewState() |
RelayState |
RelayStateChangeEvent.getOldState() |
abstract RelayState |
RelayBase.getState() |
RelayState |
Relay.getState() |
static RelayState |
RelayState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelayState[] |
RelayState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static RelayState |
RelayState.getInverseState(RelayState state) |
boolean |
RelayBase.isState(RelayState state) |
boolean |
Relay.isState(RelayState state) |
abstract void |
RelayBase.setState(RelayState state) |
void |
Relay.setState(RelayState state) |
Constructor and Description |
---|
RelayStateChangeEvent(Relay relay,
RelayState oldState,
RelayState newState) |
Modifier and Type | Method and Description |
---|---|
RelayState |
GpioRelayComponent.getState()
Return the current relay state based on the
GPIO digital output pin state.
|
Modifier and Type | Method and Description |
---|---|
void |
GpioRelayComponent.setState(RelayState state)
Set the current GPIO digital output pin state
based on the supplied power state
|
Copyright © 2012–2014 Pi4J. All rights reserved.