|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.univ.paris5.GameOfLife.Algorithm
public abstract class Algorithm
Every Algorithm must implement this Class.
Field Summary | |
---|---|
int |
neighbor_loop
|
java.lang.String |
rules
|
States |
states
This three variable must redefine in your new class Algorithm |
Constructor Summary | |
---|---|
Algorithm()
|
Method Summary | |
---|---|
abstract State |
getCellStateByNeighbor(State state,
Cell[] neighbor)
The method abstract, you must redefine this method in your class Algorithm. |
int |
getNumberLoop()
Get number loop. |
java.lang.String |
getRules()
Get rules String. |
States |
getStates()
Get objet States. |
void |
setNumberLoop(int number)
Set number loop. |
void |
setRules(java.lang.String rulesText)
Set rules String. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public States states
public int neighbor_loop
public java.lang.String rules
Constructor Detail |
---|
public Algorithm()
Method Detail |
---|
public abstract State getCellStateByNeighbor(State state, Cell[] neighbor)
state
- neighbor
-
public java.lang.String getRules()
public void setRules(java.lang.String rulesText)
rules
- the rules to setpublic States getStates()
public void setNumberLoop(int number)
number
- public int getNumberLoop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |