|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--life.Life
|
+--life.GBLife
GB specific Implementation of Conway's Life genetic algorithim. Demonstrates: Caching a row of a 2d array to avoid the lookup penalty Manually reversing a loop to avoid the get field penalty
| Fields inherited from class life.Life |
age, count, dx, dy |
| Constructor Summary | |
GBLife()
|
|
| Method Summary | |
protected void |
cls()
_Very_ dumb clear screen |
static void |
main()
|
protected void |
render()
Implemented by the sub class to render the board |
| Methods inherited from class life.Life |
countNeighbours, evolve, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GBLife()
| Method Detail |
protected final void cls()
protected final void render()
Liferender in class Lifepublic static void main()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||