Package com.pi4j.io.gpio.event
Class GpioPinEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.pi4j.io.gpio.event.GpioPinEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GpioPinAnalogValueChangeEvent
,GpioPinDigitalStateChangeEvent
public class GpioPinEvent extends EventObject
GPIO pin event.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GpioPin
pin
protected PinEventType
type
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description GpioPinEvent(Object obj, GpioPin pin, PinEventType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PinEventType
getEventType()
GpioPin
getPin()
Get the pin number that changed and raised this event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
pin
protected final GpioPin pin
-
type
protected final PinEventType type
-
-
Constructor Detail
-
GpioPinEvent
public GpioPinEvent(Object obj, GpioPin pin, PinEventType type)
-
-
Method Detail
-
getPin
public GpioPin getPin()
Get the pin number that changed and raised this event.- Returns:
- GPIO pin number (not header pin number; not wiringPi pin number)
-
getEventType
public PinEventType getEventType()
-
-