Public Member Functions | |
int | getIndex () |
Phidget | getSource () |
int | getValue () |
SensorUpdateEvent (Phidget source, int index, int value) | |
String | toString () |
Package Attributes | |
int | index |
Phidget | source |
int | value |
This class represents the data for a SensorUpdateEvent.
Definition at line 14 of file SensorUpdateEvent.java.
com.phidgets.event.SensorUpdateEvent.SensorUpdateEvent | ( | Phidget | source, |
int | index, | ||
int | value | ||
) | [inline] |
Class constructor. This is called internally by the phidget library when creating this event.
source | the Phidget object from which this event originated |
Definition at line 25 of file SensorUpdateEvent.java.
int com.phidgets.event.SensorUpdateEvent.getIndex | ( | ) | [inline] |
Returns the index of the sensor.
Definition at line 48 of file SensorUpdateEvent.java.
Phidget com.phidgets.event.SensorUpdateEvent.getSource | ( | ) | [inline] |
Returns the source Phidget of this event. This is a reference to the Phidget object from which this event was called. This object can be cast into a specific type of Phidget object to call specific device calls on it.
Definition at line 39 of file SensorUpdateEvent.java.
int com.phidgets.event.SensorUpdateEvent.getValue | ( | ) | [inline] |
Retuns the value of the sensor. This value ranges from 0-1000.
Definition at line 57 of file SensorUpdateEvent.java.
String com.phidgets.event.SensorUpdateEvent.toString | ( | ) | [inline] |
Returns a string containing information about the event.
Definition at line 66 of file SensorUpdateEvent.java.
int com.phidgets.event.SensorUpdateEvent.index [package] |
Definition at line 17 of file SensorUpdateEvent.java.
Definition at line 16 of file SensorUpdateEvent.java.
int com.phidgets.event.SensorUpdateEvent.value [package] |
Definition at line 18 of file SensorUpdateEvent.java.