|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--MathSystem
|
+--TwoDeeWalk
Two-Dimensional Rotor-Walk System
| Field Summary | |
static int |
MAX_SIZE
Maximum size I want this system to get to. |
int |
n
Current Iteration Number |
int |
subit
Current Subiteration Number |
| Constructor Summary | |
TwoDeeWalk()
The Constructor |
|
| Method Summary | |
int |
animateNum()
Returns number of intermediate steps in the animation. |
void |
draw(int sizeX,
int sizeY,
Graphics gb)
draw() Draws itself on the graphics buffer. |
void |
drawAnimate(int sizeX,
int sizeY,
Graphics gb,
int animate)
Draws the Nth intermediate animation. |
String |
getInfo()
Returns a long string describing some info about current state. |
void |
iterate(int number)
iterate the system. |
void |
printArray()
print the current system out to System.out. |
void |
reset()
Restarts the system |
void |
subiterate(int subits)
Does a subiteration, if applicable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int MAX_SIZE
public int n
public int subit
| Constructor Detail |
public TwoDeeWalk()
| Method Detail |
public void reset()
reset in class MathSystempublic void iterate(int number)
iterate in class MathSystemnumber - how many times to iterate. usually 1.public void subiterate(int subits)
subiterate in class MathSystemMathSystemsubiterations - is the number of subiterations. Usually 1.public void printArray()
public void draw(int sizeX,
int sizeY,
Graphics gb)
draw in class MathSystemsizeX - is the x size of region on which to draw.sizeY - is the y size of region on which to draw.public String getInfo()
MathSystemgetInfo in class MathSystempublic int animateNum()
animateNum in class MathSystem
public void drawAnimate(int sizeX,
int sizeY,
Graphics gb,
int animate)
drawAnimate in class MathSystem
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||