Package | Description |
---|---|
com.pi4j.component.switches | |
com.pi4j.component.switches.impl |
Modifier and Type | Field and Description |
---|---|
protected SwitchState |
SwitchStateChangeEvent.newState |
protected SwitchState |
SwitchStateChangeEvent.oldState |
Modifier and Type | Method and Description |
---|---|
SwitchState |
SwitchStateChangeEvent.getNewState() |
SwitchState |
SwitchStateChangeEvent.getOldState() |
abstract SwitchState |
SwitchBase.getState() |
SwitchState |
Switch.getState() |
static SwitchState |
SwitchState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SwitchState[] |
SwitchState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SwitchBase.isState(SwitchState state) |
boolean |
Switch.isState(SwitchState state) |
Constructor and Description |
---|
SwitchStateChangeEvent(Switch switchComponent,
SwitchState oldState,
SwitchState newState) |
Modifier and Type | Method and Description |
---|---|
SwitchState |
GpioToggleSwitchComponent.getState()
Return the current switch state based on the
GPIO digital output pin state.
|
SwitchState |
GpioSwitchComponent.getState()
Return the current switch state based on the
GPIO digital output pin state.
|
SwitchState |
GpioMomentarySwitchComponent.getState()
Return the current switch state based on the
GPIO digital output pin state.
|
Copyright © 2012–2014 Pi4J. All rights reserved.