|
Spirograph Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspirograph.AccelHandler
This class contains a Thread that continuously prompts the
user's class for an acceleration and stores the result in a Coord
.
Other objects (such as DotPanel
) can monitor the Coord
for updates.
Copyright © 1998 Massachusetts Institute of Technology.
Copyright © 2002-2003 Franklin W. Olin College of Engineering.
Accelerator
,
DotPanel
,
Coord
Field Summary | |
static int |
ACCELMODE
Acceleration control mode |
static int |
POSMODE
Position control mode |
static int |
VELMODE
Velocity control mdde |
Constructor Summary | |
AccelHandler(Accelerator Accel,
Coord myCoord,
Coord otherCoord)
Creates a new AccelHandler. |
Method Summary | |
void |
run()
Prompt the user's class for an accleration and pass the info to a Coord. |
void |
setAccel(Accelerator Accel)
Changes the current Accelerator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int POSMODE
public static final int VELMODE
public static final int ACCELMODE
Constructor Detail |
public AccelHandler(Accelerator Accel, Coord myCoord, Coord otherCoord)
Accel
- Provides behavior based on student codemyCoord
- Our position for this DimensionotherCoord
- Our position in the other DimensionMethod Detail |
public void setAccel(Accelerator Accel)
Accel
- the new Acceleratorpublic void run()
run
in interface java.lang.Runnable
|
Spirograph Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |