|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrp1.rossum.event.RsEvent
public abstract class RsEvent
The abstract base class for all simulator-event classes.
Field Summary | |
---|---|
int |
eventID
Identifies "kind of event"; a unique value is associated with each event class. |
static int |
EVT_ARRAY_SIZE
|
static int |
EVT_CONTACT_SENSOR
|
static int |
EVT_ENCODER_STATUS
|
static int |
EVT_HEARTBEAT
|
static int |
EVT_MAX_CODE
|
static int |
EVT_MOTION_HALTED
|
static int |
EVT_MOTION_STARTED
|
static int |
EVT_MOUSE_CLICK
|
static int |
EVT_PAINT_SENSOR
|
static int |
EVT_PLACEMENT
|
static int |
EVT_PLAN
|
static int |
EVT_POSITION
|
static int |
EVT_RANGE_SENSOR
|
static int |
EVT_TARGET_SELECTION
|
static int |
EVT_TARGET_SENSOR
|
static int |
EVT_TIMEOUT
|
double |
simTime
Simulation time when the event was issued. |
Constructor Summary | |
---|---|
RsEvent(int eventID,
double simTime)
|
Method Summary | |
---|---|
void |
consume()
Used by client-side applications to indicate that the event is not to be used by any other event handlers. |
int |
getEventID()
All RsEvent classes set a unique eventID value in their constructors; the getEventID method returns that ID. |
int |
getIndex()
Used to associate event with a body part. |
double |
getSimTime()
accessor for simTime element of event |
boolean |
isConsumed()
returns status of consumed flag |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EVT_MAX_CODE
public static final int EVT_ARRAY_SIZE
public static final int EVT_CONTACT_SENSOR
public static final int EVT_MOUSE_CLICK
public static final int EVT_POSITION
public static final int EVT_RANGE_SENSOR
public static final int EVT_TARGET_SENSOR
public static final int EVT_TIMEOUT
public static final int EVT_MOTION_STARTED
public static final int EVT_MOTION_HALTED
public static final int EVT_PLACEMENT
public static final int EVT_TARGET_SELECTION
public static final int EVT_PLAN
public static final int EVT_PAINT_SENSOR
public static final int EVT_HEARTBEAT
public static final int EVT_ENCODER_STATUS
public final int eventID
public final double simTime
Constructor Detail |
---|
public RsEvent(int eventID, double simTime)
Method Detail |
---|
public double getSimTime()
public int getEventID()
public int getIndex()
public void consume()
public boolean isConsumed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |