Oracle Java Wireless Client

com.oracle.deviceaccess.gpio
Class PinEvent

java.lang.Object
  extended by com.oracle.deviceaccess.PeripheralEvent
      extended by com.oracle.deviceaccess.gpio.PinEvent

public class PinEvent
extends PeripheralEvent

The PinEvent class encapsulates GPIO pin value changes. When/if value change events for the same GPIO Pin are coalesced the value retained is that of the last occurrence.

See Also:
GPIOPin, PinListener

Field Summary
 
Fields inherited from class com.oracle.deviceaccess.PeripheralEvent
peripheral
 
Method Summary
 GPIOPin getPin()
          Returns the GPIOPin instance that fired this event or for which this event was fired.
 boolean getValue()
          Returns the new GPIO pin's value.
 
Methods inherited from class com.oracle.deviceaccess.PeripheralEvent
getPeripheral
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public boolean getValue()
Returns the new GPIO pin's value.

Returns:
the new GPIO pin's value.

getPin

public GPIOPin getPin()
Returns the GPIOPin instance that fired this event or for which this event was fired.

Returns:
the GPIOPin instance that fired this event.

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.