Package com.pi4j.io.gpio.trigger
Class GpioTriggerBase
- java.lang.Object
-
- com.pi4j.io.gpio.trigger.GpioTriggerBase
-
- All Implemented Interfaces:
GpioTrigger
- Direct Known Subclasses:
GpioCallbackTrigger
,IFTTTMakerChannelTrigger
,OutputTargetedGpioTrigger
public abstract class GpioTriggerBase extends Object implements GpioTrigger
-
-
Constructor Summary
Constructors Constructor Description GpioTriggerBase()
GpioTriggerBase(PinState state)
GpioTriggerBase(PinState[] states)
GpioTriggerBase(List<PinState> states)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPinState(PinState... state)
void
addPinState(List<? extends PinState> states)
boolean
hasPinState(PinState state)
abstract void
invoke(GpioPin pin, PinState state)
-
-
-
Method Detail
-
addPinState
public void addPinState(PinState... state)
- Specified by:
addPinState
in interfaceGpioTrigger
-
addPinState
public void addPinState(List<? extends PinState> states)
- Specified by:
addPinState
in interfaceGpioTrigger
-
hasPinState
public boolean hasPinState(PinState state)
- Specified by:
hasPinState
in interfaceGpioTrigger
-
invoke
public abstract void invoke(GpioPin pin, PinState state)
- Specified by:
invoke
in interfaceGpioTrigger
-
-