|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.univ.paris5.GameOfLife.States
public class States
Every Algoritm have a states, it is this objet. It is a Collection of the objet State.
Constructor Summary | |
---|---|
States()
Instance of the States. |
|
States(int number_State,
java.awt.Color[] state_colors)
Instance of the States, this instance set the valeu of the state. |
Method Summary | |
---|---|
State |
getDefaultState()
The method get default state, i s so 1re index state. |
State |
getNextState(State state)
Get next state. |
int |
getNumberState()
The method get the size of the states. |
State |
getStateByIndex(java.lang.String index)
get the State with index. |
void |
initState(int number)
The method of init the state map. |
void |
setState(State state)
Modified or Add a new state. |
void |
setState(java.lang.String index,
State state)
Modified or Add a new state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public States()
public States(int number_State, java.awt.Color[] state_colors)
amount_State
- Method Detail |
---|
public void initState(int number)
amount
- public State getDefaultState()
public State getStateByIndex(java.lang.String index)
index
-
public void setState(java.lang.String index, State state)
index
- state
- public void setState(State state)
state
- public int getNumberState()
public State getNextState(State state)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |