Class TwoDeeAggregation
java.lang.Object
|
+--MathSystem
|
+--TwoDeeAggregation
- public class TwoDeeAggregation
- extends MathSystem
Mathematical Model of the Rotor Router Object
|
Method Summary |
void |
draw(int sizeX,
int sizeY,
Graphics g)
Draws the current state of the sytem on the graphics buffer. |
String |
getInfo()
Returns a long string describing some info about current state. |
void |
iterate(int number)
Iterates the system. |
void |
printArray()
|
void |
reset()
Restarts the system. |
void |
subiterate(int numsub)
Does a subiteration, if applicable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxSize
public int maxSize
aSize
public int aSize
minRadius
public double minRadius
maxRadius
public double maxRadius
n
public int n
subiteration
public int subiteration
animate
public double animate
TwoDeeAggregation
public TwoDeeAggregation()
- Creates a new empty RotorRouter
TwoDeeAggregation
public TwoDeeAggregation(int n)
reset
public void reset()
- Description copied from class:
MathSystem
- Restarts the system. You will lose all state information.
- Overrides:
reset in class MathSystem
subiterate
public void subiterate(int numsub)
- Description copied from class:
MathSystem
- Does a subiteration, if applicable.
- Overrides:
subiterate in class MathSystem
- Following copied from class:
MathSystem
- Parameters:
subiterations - is the number of subiterations. Usually 1.
iterate
public void iterate(int number)
- Description copied from class:
MathSystem
- Iterates the system.
- Overrides:
iterate in class MathSystem
- Following copied from class:
MathSystem
- Parameters:
iterations - is the number of iterations. Usually 1.
printArray
public void printArray()
draw
public void draw(int sizeX,
int sizeY,
Graphics g)
- Description copied from class:
MathSystem
- Draws the current state of the sytem on the graphics buffer.
- Overrides:
draw in class MathSystem
- Following copied from class:
MathSystem
- Parameters:
sizeX - is the x size of region on which to draw.sizeY - is the y size of region on which to draw.gb - is the graphics buffer on which to draw. It
may be from an image or a canvas.
getInfo
public String getInfo()
- Description copied from class:
MathSystem
- Returns a long string describing some info about current state.
Override if you want such a function.
- Overrides:
getInfo in class MathSystem