Module com.pi4j

Class AnalogValueChangeEvent<ANALOG_TYPE extends Analog>

java.lang.Object
com.pi4j.io.gpio.analog.AnalogValueChangeEvent<ANALOG_TYPE>
All Implemented Interfaces:
Event, AnalogEvent

public class AnalogValueChangeEvent<ANALOG_TYPE extends Analog> extends Object implements AnalogEvent

AnalogChangeEvent class.

Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Field Details

  • Constructor Details

    • AnalogValueChangeEvent

      public AnalogValueChangeEvent(ANALOG_TYPE source, Integer newValue, Integer oldValue)
      Default constructor
      Parameters:
      newValue - the value changed for this event instance
      source - a ANALOG_TYPE object.
      oldValue - a Integer object.
  • Method Details

    • oldValue

      public Integer oldValue()
      The old/prior value change for this event instance
      Returns:
      a Integer object.
    • value

      public Integer value()
      The current/new value change for this event instance
      Returns:
      a Integer object.
    • source

      public ANALOG_TYPE source()

      source.

      Specified by:
      source in interface AnalogEvent
      Returns:
      a ANALOG_TYPE object.
    • toString

      public String toString()
      Overrides:
      toString in class Object