Class TwoDeeAggregation

java.lang.Object
  |
  +--MathSystem
        |
        +--TwoDeeAggregation

public class TwoDeeAggregation
extends MathSystem

Mathematical Model of the Rotor Router Object


Field Summary
 double animate
           
 int aSize
           
 double maxRadius
           
 int maxSize
           
 double minRadius
           
 int n
           
 int subiteration
           
 
Fields inherited from class MathSystem
subit
 
Constructor Summary
TwoDeeAggregation()
          Creates a new empty RotorRouter
TwoDeeAggregation(int n)
           
 
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 MathSystem
animateNum, drawAnimate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TwoDeeAggregation

public TwoDeeAggregation()
Creates a new empty RotorRouter

TwoDeeAggregation

public TwoDeeAggregation(int n)
Method Detail

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