rp1.rossum.event
Class RsMotionHaltedEvent

java.lang.Object
  extended by rp1.rossum.event.RsEvent
      extended by rp1.rossum.event.RsMotionHaltedEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RsMotionHaltedEvent
extends RsEvent

An event generated by the simulator when a motion is terminated or completed.

See Also:
Serialized Form

Field Summary
 int causeOfHalt
           
 double duration
           
static int HALTED_ON_COLLISION
           
static int HALTED_ON_COMPLETION
           
static int HALTED_ON_REQUEST
           
 double orientation
           
 double x
           
 double y
           
 
Fields inherited from class rp1.rossum.event.RsEvent
eventID, EVT_ARRAY_SIZE, EVT_CONTACT_SENSOR, EVT_ENCODER_STATUS, EVT_HEARTBEAT, EVT_MAX_CODE, EVT_MOTION_HALTED, EVT_MOTION_STARTED, EVT_MOUSE_CLICK, EVT_PAINT_SENSOR, EVT_PLACEMENT, EVT_PLAN, EVT_POSITION, EVT_RANGE_SENSOR, EVT_TARGET_SELECTION, EVT_TARGET_SENSOR, EVT_TIMEOUT, simTime
 
Constructor Summary
RsMotionHaltedEvent(double simTime, int causeOfHalt, double x, double y, double orientation, double duration)
           
 
Method Summary
 java.lang.String whyHalted()
           
 
Methods inherited from class rp1.rossum.event.RsEvent
consume, getEventID, getIndex, getSimTime, isConsumed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

causeOfHalt

public final int causeOfHalt

x

public final double x

y

public final double y

orientation

public final double orientation

duration

public final double duration

HALTED_ON_COMPLETION

public static final int HALTED_ON_COMPLETION
See Also:
Constant Field Values

HALTED_ON_REQUEST

public static final int HALTED_ON_REQUEST
See Also:
Constant Field Values

HALTED_ON_COLLISION

public static final int HALTED_ON_COLLISION
See Also:
Constant Field Values
Constructor Detail

RsMotionHaltedEvent

public RsMotionHaltedEvent(double simTime,
                           int causeOfHalt,
                           double x,
                           double y,
                           double orientation,
                           double duration)
Method Detail

whyHalted

public java.lang.String whyHalted()