Package | Description |
---|---|
com.pi4j.component.sensor | |
com.pi4j.component.sensor.impl | |
com.pi4j.device.access.impl | |
com.pi4j.device.garage.impl | |
com.pi4j.device.gate.impl |
Modifier and Type | Field and Description |
---|---|
protected SensorState |
SensorStateChangeEvent.newState |
protected SensorState |
SensorStateChangeEvent.oldState |
Modifier and Type | Method and Description |
---|---|
SensorState |
SensorStateChangeEvent.getNewState() |
SensorState |
SensorStateChangeEvent.getOldState() |
abstract SensorState |
SensorBase.getState() |
SensorState |
Sensor.getState() |
static SensorState |
SensorState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorState[] |
SensorState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SensorBase.isState(SensorState state) |
boolean |
Sensor.isState(SensorState state) |
Constructor and Description |
---|
SensorStateChangeEvent(Sensor sensor,
SensorState oldState,
SensorState newState) |
Modifier and Type | Method and Description |
---|---|
SensorState |
GpioSensorComponent.getState()
Return the current sensor state based on the
GPIO digital output pin state.
|
Modifier and Type | Method and Description |
---|---|
protected OpenerState |
OpenerDevice.getState(SensorState sensorState) |
Constructor and Description |
---|
OpenerDevice(Relay relay,
Sensor sensor,
SensorState openSensorState) |
OpenerDevice(Relay relay,
Sensor sensor,
SensorState openSensorState,
Switch lock) |
Constructor and Description |
---|
GarageDoorOpenerDevice(Relay relay,
Sensor doorSensor,
SensorState doorOpenSensorState) |
GarageDoorOpenerDevice(Relay relay,
Sensor doorSensor,
SensorState doorOpenSensorState,
Switch lock) |
Constructor and Description |
---|
GateOpenerDevice(Relay relay,
Sensor gateSensor,
SensorState gateOpenSensorState) |
GateOpenerDevice(Relay relay,
Sensor gateSensor,
SensorState gateOpenSensorState,
Switch lock) |
Copyright © 2012–2014 Pi4J. All rights reserved.