shady.sim
Class ShadySim.SimultaneousMotion

java.lang.Object
  extended by shady.sim.ShadySim.Motion
      extended by shady.sim.ShadySim.SimultaneousMotion
Enclosing class:
ShadySim

protected class ShadySim.SimultaneousMotion
extends ShadySim.Motion

A simultaneous barrel rotation and shade motion.


Field Summary
protected  ShadySim.RotateMotion leftRotateMotion
          The left rotate motion, if any, else null.
protected  int numActuators
          Total number of actuators involved.
protected  ShadySim.RotateMotion rightRotateMotion
          The right rotate motion, if any, else null.
protected  ShadySim.ShadeMotion shadeMotion
          The shade motion, if any, else null.
 
Fields inherited from class shady.sim.ShadySim.Motion
delta, energyToGo, energyUsed, failed, finished, incr, power, speed, started, step, steps, timeToGo, timeUsed
 
Constructor Summary
ShadySim.SimultaneousMotion(ShadySim.RotateMotion leftRotateMotion, ShadySim.RotateMotion rightRotateMotion, ShadySim.ShadeMotion shadeMotion, double time, double power)
          Create a new simultaneous motion.
 
Method Summary
protected  int getNumActuators()
          This impl gets the total number of actuators involved.
protected  void stepState()
          Steps state on each submotion.
 java.lang.String toString()
          Return a human-readable description of this motion.
 
Methods inherited from class shady.sim.ShadySim.Motion
finish, go, isDone, start, step, stepSleep, stepUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

leftRotateMotion

protected ShadySim.RotateMotion leftRotateMotion

The left rotate motion, if any, else null.


rightRotateMotion

protected ShadySim.RotateMotion rightRotateMotion

The right rotate motion, if any, else null.


shadeMotion

protected ShadySim.ShadeMotion shadeMotion

The shade motion, if any, else null.


numActuators

protected int numActuators

Total number of actuators involved.

Constructor Detail

ShadySim.SimultaneousMotion

public ShadySim.SimultaneousMotion(ShadySim.RotateMotion leftRotateMotion,
                                   ShadySim.RotateMotion rightRotateMotion,
                                   ShadySim.ShadeMotion shadeMotion,
                                   double time,
                                   double power)

Create a new simultaneous motion.

Method Detail

getNumActuators

protected int getNumActuators()

This impl gets the total number of actuators involved.

Overrides:
getNumActuators in class ShadySim.Motion

stepState

protected void stepState()

Steps state on each submotion.

Specified by:
stepState in class ShadySim.Motion

toString

public java.lang.String toString()

Return a human-readable description of this motion.

Specified by:
toString in class ShadySim.Motion
Returns:
a human-readable description of this motion