|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genethello.brain.ChromosomeCreator
public class ChromosomeCreator
Creates chromosome and optionally with String/JGAP representation and minimum/maximum value of opening/end game step and features.
| Field Summary | |
|---|---|
protected int |
max
Maximum value of features. |
protected int |
maxEnd
Maximum value of end game step. |
protected int |
maxOpening
Maximum value of opening game step. |
protected int |
min
Minimum value of features. |
protected int |
minEnd
Minimum value of end game step. |
protected int |
minOpening
Minimum value of opening game step. |
| Constructor Summary | |
|---|---|
ChromosomeCreator()
Creates new instance of creator. |
|
ChromosomeCreator(int min,
int max)
Creates new instance of creator with minimum-maximum value of features. |
|
ChromosomeCreator(int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
Creates new instance of creator with minimum-maximum value of opening game step, end game step, and features. |
|
| Method Summary | |
|---|---|
Chromosome |
createChromosome()
Creates chromosome with default minimum and maximum values. |
Chromosome |
createChromosome(org.jgap.IChromosome ic)
Creates chromosome of JGAP representation with default minimum and maximum values. |
Chromosome |
createChromosome(org.jgap.IChromosome ic,
int min,
int max)
Creates chromosome of JGAP representation, and minimum/ maximum values of features with default minimum/maximum values of opening/end game step. |
Chromosome |
createChromosome(org.jgap.IChromosome ic,
int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
Creates chromosome of JGAP representation, and minimum/ maximum values of features with default minimum/maximum values of opening/end game step. |
Chromosome |
createChromosome(int min,
int max)
Creates chromosome of minimum/maximum value of features with default minimum/maximum value of opening and end game step. |
Chromosome |
createChromosome(int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
Creates chromosome of specific minimum/maximum value of features and minimum/maximum value of opening and end game step. |
Chromosome |
createChromosome(java.lang.String str)
Creates chromosome of specific String representation with default minimum and maximum values. |
Chromosome |
createChromosome(java.lang.String str,
int min,
int max)
Creates chromosome of specific String representation, and minimum/ maximum values of features with default minimum/maximum values of opening/end game step. |
Chromosome |
createChromosome(java.lang.String str,
int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
Creates chromosome of specific String representation, and minimum/ maximum values of features with default minimum/maximum values of opening/end game step. |
int |
getMax()
Gets the value of max |
int |
getMaxEnd()
Gets the value of maxEnd |
int |
getMaxOpening()
Gets the value of maxOpening |
int |
getMin()
Gets the value of min |
int |
getMinEnd()
Gets the value of minEnd |
int |
getMinOpening()
Gets the value of minOpening |
void |
setMax(int max)
Sets the value of max |
void |
setMaxEnd(int maxEnd)
Sets the value of maxEnd |
void |
setMaxOpening(int maxOpening)
Sets the value of maxOpening |
void |
setMin(int min)
Sets the value of min |
void |
setMinEnd(int minEnd)
Sets the value of minEnd |
void |
setMinOpening(int minOpening)
Sets the value of minOpening |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int minOpening
protected int maxOpening
protected int minEnd
protected int maxEnd
protected int min
protected int max
| Constructor Detail |
|---|
public ChromosomeCreator()
public ChromosomeCreator(int min,
int max)
min - minimum value of featuresmax - maximum value of features
public ChromosomeCreator(int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
minOpening - minimum value of opening game stepmaxOpening - maximum value of opening game stepminEnd - minimum value of end game stepmaxEnd - maximum value of end game stepmin - minimum value of featuresmax - maximum value of features| Method Detail |
|---|
public int getMinOpening()
public void setMinOpening(int minOpening)
minOpening - new value of minOpeningpublic int getMaxOpening()
public void setMaxOpening(int maxOpening)
maxOpening - new value of maxOpeningpublic int getMinEnd()
public void setMinEnd(int minEnd)
minEnd - new value of minEndpublic int getMaxEnd()
public void setMaxEnd(int maxEnd)
maxEnd - new value of maxEndpublic int getMin()
public void setMin(int min)
min - new value of minpublic int getMax()
public void setMax(int max)
max - new value of maxpublic Chromosome createChromosome()
public Chromosome createChromosome(int min,
int max)
min - minimum value of featuresmax - maximum value of features
public Chromosome createChromosome(int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
minOpening - minimum value of opening game stepmaxOpening - maximum value of opening game stepminEnd - minimum value of end game stepmaxEnd - maximum value of end game stepmin - minimum value of featuresmax - maximum value of features
public Chromosome createChromosome(java.lang.String str)
str - String representation of chromosome
public Chromosome createChromosome(java.lang.String str,
int min,
int max)
str - String representation of chromosomemin - minimum value of featuresmax - maximum value of features
public Chromosome createChromosome(java.lang.String str,
int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
str - String representation of chromosomeminOpening - minimum value of opening game stepmaxOpening - maximum value of opening game stepminEnd - minimum value of end game stepmaxEnd - maximum value of end game stepmin - minimum value of featuresmax - maximum value of features
public Chromosome createChromosome(org.jgap.IChromosome ic)
ic - JGAP representation of chromosome
public Chromosome createChromosome(org.jgap.IChromosome ic,
int min,
int max)
ic - JGAP representation of chromosomemin - minimum value of featuresmax - maximum value of features
public Chromosome createChromosome(org.jgap.IChromosome ic,
int minOpening,
int maxOpening,
int minEnd,
int maxEnd,
int min,
int max)
ic - JGAP representation of chromosomeminOpening - minimum value of opening game stepmaxOpening - maximum value of opening game stepminEnd - minimum value of end game stepmaxEnd - maximum value of end game stepmin - minimum value of featuresmax - maximum value of features
|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||