Minor cosmetics.
This commit is contained in:
parent
4c77fb6927
commit
e2e3e504a7
@ -22,9 +22,9 @@ import eva2.tools.EVAERROR;
|
|||||||
/** This is the abstract EA individual implementing the most important methods giving
|
/** This is the abstract EA individual implementing the most important methods giving
|
||||||
* access to mutation and crossover rates and operators, fitness values and selection
|
* access to mutation and crossover rates and operators, fitness values and selection
|
||||||
* probabilities. All EA individuals should typically extend this abstract EA individual.
|
* probabilities. All EA individuals should typically extend this abstract EA individual.
|
||||||
* In that case the EA individuals only implement the genotype and phenotype interfaces.
|
* In that case the EA individuals only implement the genotpye and phenotype interfaces.
|
||||||
* The names of the implementation should be build like this:
|
* The names of the implementation should be build like this:
|
||||||
* (Genotype)Individual(Phenotype)
|
* (Genotpye)Individual(Phenotype)
|
||||||
* Thus a binary individual coding double values is named GAIndividualDoubleData and a
|
* Thus a binary individual coding double values is named GAIndividualDoubleData and a
|
||||||
* real-valued individual coding binary values is named ESIndividualBinaryData.
|
* real-valued individual coding binary values is named ESIndividualBinaryData.
|
||||||
* Created by IntelliJ IDEA.
|
* Created by IntelliJ IDEA.
|
||||||
@ -34,9 +34,7 @@ import eva2.tools.EVAERROR;
|
|||||||
* To change this template use Options | File Templates.
|
* To change this template use Options | File Templates.
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractEAIndividual implements IndividualInterface, java.io.Serializable {
|
public abstract class AbstractEAIndividual implements IndividualInterface, java.io.Serializable {
|
||||||
|
|
||||||
public int m_FunctionCalls = 0; // TODO ist irgendwie eine Kruecke
|
public int m_FunctionCalls = 0; // TODO ist irgendwie eine Kruecke
|
||||||
protected int m_ObjectIncrement = 5;
|
|
||||||
protected int m_Age = 0;
|
protected int m_Age = 0;
|
||||||
// protected String m_Name = GONamingBox.getRandomName();
|
// protected String m_Name = GONamingBox.getRandomName();
|
||||||
|
|
||||||
@ -61,7 +59,9 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
|||||||
// protected String[] m_Identifiers = new String[m_ObjectIncrement];
|
// protected String[] m_Identifiers = new String[m_ObjectIncrement];
|
||||||
// protected Object[] m_Objects = new Object[m_ObjectIncrement];
|
// protected Object[] m_Objects = new Object[m_ObjectIncrement];
|
||||||
protected HashMap<String,Object> m_dataHash = new HashMap<String,Object>();
|
protected HashMap<String,Object> m_dataHash = new HashMap<String,Object>();
|
||||||
protected int individualIndex;
|
|
||||||
|
// introduced for the nichingPSO/ANPSO (M.Aschoff)
|
||||||
|
private int individualIndex;
|
||||||
|
|
||||||
public AbstractEAIndividual() {
|
public AbstractEAIndividual() {
|
||||||
m_IDcounter++;
|
m_IDcounter++;
|
||||||
@ -73,7 +73,6 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
|||||||
return m_ID;
|
return m_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public int getIndividualIndex() {
|
public int getIndividualIndex() {
|
||||||
return individualIndex;
|
return individualIndex;
|
||||||
}
|
}
|
||||||
@ -747,7 +746,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
|||||||
|
|
||||||
/** This method allows you to store an arbitrary value under an arbitrary
|
/** This method allows you to store an arbitrary value under an arbitrary
|
||||||
* name.
|
* name.
|
||||||
* @param name The identifing name.
|
* @param name The identifying name.
|
||||||
* @param obj The object that is to be stored.
|
* @param obj The object that is to be stored.
|
||||||
*/
|
*/
|
||||||
public void SetData(String name, Object obj) {
|
public void SetData(String name, Object obj) {
|
||||||
@ -914,4 +913,3 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user