rp1.rossum
Class RsMotion

java.lang.Object
  extended by rp1.rossum.RsComponent
      extended by rp1.rossum.RsMotion
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
RsMotionCircle, RsMotionLine, RsMotionNull

public abstract class RsMotion
extends RsComponent

The abstract base class for all classes that model body trajectories.

See Also:
Serialized Form

Field Summary
 boolean collision
           
 double collisionTime
           
 double significantDeltaT
           
 double time
           
 double time0
           
 double time1
           
 double timeTotal
           
 RsTransform transform
           
 RsTransform transform0
           
 
Constructor Summary
RsMotion(RsMotion start, double startTime, double duration)
           
 
Method Summary
 int getContinuityID()
           
 int getContinuitySeriesID()
           
abstract  RsMotionDepiction getMotionDepictionAtBodyPoint(double xBodyPoint, double yBodyPoint)
           
static int getNewContinuityID()
           
 double getOrientation()
           
 RsPoint getPosition()
           
 double getTime()
           
 double getTurnRate()
           
 double getVelocity()
           
 boolean processCollision(RsSegment[] a, int aLen, RsSegment[] b, int bLen)
           
 boolean setTime(double simTime)
           
 boolean setTimeForward(double simTime)
           
 void stopMotionAtTime(double simTime)
           
 void truncateForCollision()
           
 
Methods inherited from class rp1.rossum.RsComponent
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time0

public double time0

time1

public double time1

timeTotal

public double timeTotal

time

public double time

significantDeltaT

public double significantDeltaT

transform0

public RsTransform transform0

transform

public RsTransform transform

collision

public boolean collision

collisionTime

public double collisionTime
Constructor Detail

RsMotion

public RsMotion(RsMotion start,
                double startTime,
                double duration)
Method Detail

setTime

public boolean setTime(double simTime)

setTimeForward

public boolean setTimeForward(double simTime)

stopMotionAtTime

public void stopMotionAtTime(double simTime)

getMotionDepictionAtBodyPoint

public abstract RsMotionDepiction getMotionDepictionAtBodyPoint(double xBodyPoint,
                                                                double yBodyPoint)

processCollision

public boolean processCollision(RsSegment[] a,
                                int aLen,
                                RsSegment[] b,
                                int bLen)

getTurnRate

public double getTurnRate()

getVelocity

public double getVelocity()

getTime

public double getTime()

getPosition

public RsPoint getPosition()

getOrientation

public double getOrientation()

truncateForCollision

public void truncateForCollision()

getNewContinuityID

public static int getNewContinuityID()

getContinuityID

public int getContinuityID()

getContinuitySeriesID

public int getContinuitySeriesID()