Oracle Java Wireless Client

com.oracle.deviceaccess.gpio
Class PortEvent

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

public class PortEvent
extends PeripheralEvent

The PortEvent class encapsulates GPIO port value changes.

See Also:
GPIOPort, PortListener

Field Summary
 
Fields inherited from class com.oracle.deviceaccess.PeripheralEvent
peripheral
 
Method Summary
 GPIOPort getPort()
          Returns the GPIOPort instance that fired this event or for which this event was fired.
 int getValue()
          Returns the new GPIO port'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 int getValue()
Returns the new GPIO port's value.

Returns:
the new GPIO port's value.

getPort

public GPIOPort getPort()
Returns the GPIOPort instance that fired this event or for which this event was fired.

Returns:
the GPIOPort instance that fired this event.

Oracle Java Wireless Client

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