com.impinj.octane

## Class GpiEvent

- java.lang.Object
- - com.impinj.octane.GpiEvent

-     public class GpiEvent
      extends java.lang.Object

  Class used to encapsulate the details of a GPI change reader event.
  See Also:
    `ImpinjReader.setGpiChangeListener(GpiChangeListener)`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GpiEvent()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `short` | `getPortNumber()`
    `boolean` | `isState()`
    `protected void` | `setPortNumber(short portNumber)`
    `protected void` | `setState(boolean state)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GpiEvent

          public GpiEvent()

  - ### Method Detail

    - #### getPortNumber

          public short getPortNumber()

      Returns:
        the port number associated with the GPI event

    - #### setPortNumber

          protected void setPortNumber(short portNumber)

    - #### isState

          public boolean isState()

      Returns:
        the new state associated with the GPI

    - #### setState

          protected void setState(boolean state)