Constructor and Description |
---|
IOEvent(IODevice device)
Constructs the event is relevant to
IODevice as a whole. |
IOEvent(IODevice device,
long timestamp)
Constructs the event is relevant to
IODevice as a whole. |
IOEvent(Pin pin)
Constructs the event is relevant to a particular
Pin . |
IOEvent(Pin pin,
long timestamp)
Constructs the event is relevant to a particular
Pin . |
Modifier and Type | Method and Description |
---|---|
IODevice |
getDevice()
Returns the device that relates to the event.
|
Pin |
getPin()
Returns the pin that relates to the event.
|
long |
getTimestamp()
Returns the timestamp of the event.
|
long |
getValue()
Returns the value the pin received.
|
public IOEvent(IODevice device)
IODevice
as a whole.device
- the device that originated the eventpublic IOEvent(IODevice device, long timestamp)
IODevice
as a whole.
This constructor allows setting the timestamp of event.device
- the device that originated the eventtimestamp
- the timestamp of eventpublic IOEvent(Pin pin)
Pin
.pin
- the pin that originated the eventpublic IODevice getDevice()
public Pin getPin()
public long getValue()
public long getTimestamp()
Copyright © 2017. All rights reserved.