Module com.pi4j
Package com.pi4j.io.gpio.analog
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)
-
-
Constructor Summary
Constructors Constructor Description AnalogValueChangeEvent(ANALOG_TYPE source, Integer newValue, Integer oldValue)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
oldValue()
The old/prior value change for this event instanceANALOG_TYPE
source()
source.String
toString()
Integer
value()
The current/new value change for this event instance
-
-
-
Field Detail
-
oldValue
protected Integer oldValue
-
value
protected Integer value
-
source
protected ANALOG_TYPE extends Analog source
-
-
Constructor Detail
-
AnalogValueChangeEvent
public AnalogValueChangeEvent(ANALOG_TYPE source, Integer newValue, Integer oldValue)
Default constructor- Parameters:
newValue
- the value changed for this event instancesource
- a ANALOG_TYPE object.oldValue
- aInteger
object.
-
-
Method Detail
-
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 interfaceAnalogEvent
- Returns:
- a ANALOG_TYPE object.
-
-