|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.distr.Culture
public class Culture
Culture is a memory not being bound to a generation, but possibly persistent during the whole history of a genotype (over all generations).
Also see http://cs.gmu.edu/~sean/papers/culture-gp96.pdf
| Constructor Summary | |
|---|---|
Culture(int a_size)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the memory. |
int |
compareTo(java.lang.Object a_other)
The compareTo-method. |
boolean |
equals(java.lang.Object a_other)
The equals-method. |
CultureMemoryCell |
get(int a_index)
Retrieves the memory cell at the given index. |
CultureMemoryCell |
get(java.lang.String a_name)
Retrieves the memory cell at the given index. |
java.util.List |
getMemoryNames()
|
CultureMemoryCell |
set(int a_index,
double a_value,
int a_historySize,
java.lang.String a_name)
Sets a memory cell with a given value. |
CultureMemoryCell |
set(int a_index,
java.lang.Object a_value,
int a_historySize,
java.lang.String a_name)
Sets a memory cell with a given value. |
CultureMemoryCell |
set(java.lang.String a_name,
java.lang.Object a_value,
int a_historySize)
Sets a memory cell with a given value. |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Culture(int a_size)
a_size - the size of the memory in cells (CultureMemoryCell instances)| Method Detail |
|---|
public CultureMemoryCell set(int a_index,
double a_value,
int a_historySize,
java.lang.String a_name)
a_index - index of the memory cella_value - value to set in the memorya_historySize - size of history to use, or less than 1 for turning
history offa_name - informative name of the memory cell
public CultureMemoryCell set(int a_index,
java.lang.Object a_value,
int a_historySize,
java.lang.String a_name)
a_index - index of the memory cella_value - value to set in the memorya_historySize - size of history to use, or less than 1 for turning
history offa_name - informative name of the memory cell
public CultureMemoryCell set(java.lang.String a_name,
java.lang.Object a_value,
int a_historySize)
a_name - named index of the memory cella_value - value to set in the memorya_historySize - size of history to use, or less than 1 for turning
history off
public CultureMemoryCell get(int a_index)
a_index - index of the memory cell to read out
public CultureMemoryCell get(java.lang.String a_name)
a_name - name of the memory cell to read out
public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
public java.util.List getMemoryNames()
public boolean equals(java.lang.Object a_other)
equals in class java.lang.Objecta_other - the other object to compare
public int compareTo(java.lang.Object a_other)
compareTo in interface java.lang.Comparablea_other - the other object to compare
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||