logo


vectorsources
Class CellModel

java.lang.Object
  extended by vectorsources.CellModel

public class CellModel
extends java.lang.Object


Nested Class Summary
 class CellModel.Cell
 class CellModel.CellDrawer
 class CellModel.Environment
 
Field Summary
 boolean antialiased
 boolean colored
 java.awt.image.BufferedImage display
 java.awt.image.DataBuffer display_data
 java.awt.Graphics display_graphics
 CellModel.CellDrawer[] drawers
 int renderer
 boolean running
static java.awt.image.BufferedImage trailer
 
Constructor Summary
CellModel(int w, int h)
 
Method Summary
 void addCell(float x, float y)
 boolean isAntiAliased()
 void iterate(int frames)
 void resetAll()
 void resetCellArray()
 void resetCounter()
 void resetEnvironment()
 void resetGraphics()
 void resetImage()
 void seedUniformRandom(int n)
 void setAntiAliased(boolean antialias)
 void setArea(float f)
 void setGrowth(float pow)
 void setRate(float f)
 void setRenderer(int n)
 void setSigma(float f)
static java.awt.image.BufferedImage trailer()
 void updateEnvironment()
 void updateImage()
 void updatePopulation()
 void updateRegions()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

running

public boolean running

antialiased

public boolean antialiased

display

public java.awt.image.BufferedImage display

display_data

public java.awt.image.DataBuffer display_data

display_graphics

public java.awt.Graphics display_graphics

renderer

public int renderer

colored

public boolean colored

trailer

public static java.awt.image.BufferedImage trailer

drawers

public CellModel.CellDrawer[] drawers
Constructor Detail

CellModel

public CellModel(int w,
                 int h)
Parameters:
w -
h -
Method Detail

setRenderer

public void setRenderer(int n)
Parameters:
n -

isAntiAliased

public boolean isAntiAliased()
Returns:

setAntiAliased

public void setAntiAliased(boolean antialias)
Parameters:
antialias -

setArea

public void setArea(float f)
Parameters:
f -

setGrowth

public void setGrowth(float pow)
Parameters:
pow -

setRate

public void setRate(float f)
Parameters:
f -

setSigma

public void setSigma(float f)
Parameters:
f -

resetAll

public void resetAll()

resetEnvironment

public void resetEnvironment()

resetCellArray

public void resetCellArray()

resetCounter

public void resetCounter()

resetGraphics

public void resetGraphics()

resetImage

public void resetImage()

seedUniformRandom

public void seedUniformRandom(int n)
Parameters:
n -

addCell

public void addCell(float x,
                    float y)
Parameters:
x -
y -

iterate

public void iterate(int frames)
Parameters:
frames -

updatePopulation

public void updatePopulation()

updateEnvironment

public void updateEnvironment()

updateRegions

public void updateRegions()

updateImage

public void updateImage()

trailer

public static java.awt.image.BufferedImage trailer()
Returns: