public class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AINCHG_EVENT
An analog input change event
|
static int |
ATTACH_EVENT
A hardware attach event event
|
static int |
DETACH_EVENT
A hardware detach event
|
static int |
DINCHG_EVENT
A digital input change event
|
static int |
DOTCHG_EVENT
A digital output change event
|
static int |
ERROR_EVENT
An error event
|
static int |
RFGAIN_EVENT
An RFID tag gain event
|
static int |
RFLOSS_EVENT
An RFID tag loss event
|
static int |
SRVCUR_EVENT
A servo current change event
|
static int |
SRVPOS_EVENT
A servo position change event
|
static int |
SRVVEL_EVENT
A servo velocity change event
|
Constructor and Description |
---|
Event(long when,
int what,
int id,
double value,
java.lang.String tag,
Phidget source) |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Determine the id of the port that generated this event.
|
Phidget |
getSource()
Determine the phidget board that triggered this event.
|
java.lang.String |
getTag()
Determine the tag f this RFID event.
|
double |
getValue()
Determine the value associated with this event.
|
int |
getWhat()
Determine the type of this event.
|
long |
getWhen()
Determine the time at which this event occurred.
|
java.lang.String |
toString() |
public static final int ERROR_EVENT
public static final int ATTACH_EVENT
public static final int DETACH_EVENT
public static final int DINCHG_EVENT
public static final int AINCHG_EVENT
public static final int DOTCHG_EVENT
public static final int RFGAIN_EVENT
public static final int RFLOSS_EVENT
public static final int SRVPOS_EVENT
public static final int SRVVEL_EVENT
public static final int SRVCUR_EVENT
public Event(long when, int what, int id, double value, java.lang.String tag, Phidget source)
public long getWhen()
public int getWhat()
public int getId()
public double getValue()
public java.lang.String getTag()
public Phidget getSource()
public java.lang.String toString()
toString
in class java.lang.Object