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)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalogValueChangeEvent(ANALOG_TYPE source, Integer newValue, Integer oldValue) Default constructor -
Method Summary
-
Field Details
-
oldValue
-
value
-
source
-
-
Constructor Details
-
AnalogValueChangeEvent
Default constructor- Parameters:
newValue- the value changed for this event instancesource- a ANALOG_TYPE object.oldValue- aIntegerobject.
-
-
Method Details
-
oldValue
The old/prior value change for this event instance- Returns:
- a
Integerobject.
-
value
The current/new value change for this event instance- Returns:
- a
Integerobject.
-
source
source.
- Specified by:
sourcein interfaceAnalogEvent- Returns:
- a ANALOG_TYPE object.
-
toString
-