GeneThello Home

net.sf.genethello.applet
Class ChromosomeCreator

java.lang.Object
  extended by net.sf.genethello.applet.ChromosomeCreator

public class ChromosomeCreator
extends java.lang.Object

Creates chromosome and optionally with String/JGAP representation and minimum/maximum value of opening/end game step and features.

Author:
praz

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(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

minOpening

protected int minOpening
Minimum value of opening game step.


maxOpening

protected int maxOpening
Maximum value of opening game step.


minEnd

protected int minEnd
Minimum value of end game step.


maxEnd

protected int maxEnd
Maximum value of end game step.


min

protected int min
Minimum value of features.


max

protected int max
Maximum value of features.

Constructor Detail

ChromosomeCreator

public ChromosomeCreator()
Creates new instance of creator.


ChromosomeCreator

public ChromosomeCreator(int min,
                         int max)
Creates new instance of creator with minimum-maximum value of features.

Parameters:
min - minimum value of features
max - maximum value of features

ChromosomeCreator

public 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.

Parameters:
minOpening - minimum value of opening game step
maxOpening - maximum value of opening game step
minEnd - minimum value of end game step
maxEnd - maximum value of end game step
min - minimum value of features
max - maximum value of features
Method Detail

getMinOpening

public int getMinOpening()
Gets the value of minOpening

Returns:
the value of minOpening

setMinOpening

public void setMinOpening(int minOpening)
Sets the value of minOpening

Parameters:
minOpening - new value of minOpening

getMaxOpening

public int getMaxOpening()
Gets the value of maxOpening

Returns:
the value of maxOpening

setMaxOpening

public void setMaxOpening(int maxOpening)
Sets the value of maxOpening

Parameters:
maxOpening - new value of maxOpening

getMinEnd

public int getMinEnd()
Gets the value of minEnd

Returns:
the value of minEnd

setMinEnd

public void setMinEnd(int minEnd)
Sets the value of minEnd

Parameters:
minEnd - new value of minEnd

getMaxEnd

public int getMaxEnd()
Gets the value of maxEnd

Returns:
the value of maxEnd

setMaxEnd

public void setMaxEnd(int maxEnd)
Sets the value of maxEnd

Parameters:
maxEnd - new value of maxEnd

getMin

public int getMin()
Gets the value of min

Returns:
the value of min

setMin

public void setMin(int min)
Sets the value of min

Parameters:
min - new value of min

getMax

public int getMax()
Gets the value of max

Returns:
the value of max

setMax

public void setMax(int max)
Sets the value of max

Parameters:
max - new value of max

createChromosome

public Chromosome createChromosome()
Creates chromosome with default minimum and maximum values.

Returns:
chromosome

createChromosome

public 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.

Parameters:
min - minimum value of features
max - maximum value of features
Returns:
chromosome

createChromosome

public 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.

Parameters:
minOpening - minimum value of opening game step
maxOpening - maximum value of opening game step
minEnd - minimum value of end game step
maxEnd - maximum value of end game step
min - minimum value of features
max - maximum value of features
Returns:
chromosome

createChromosome

public Chromosome createChromosome(java.lang.String str)
Creates chromosome of specific String representation with default minimum and maximum values.

Parameters:
str - String representation of chromosome
Returns:
chromosome

createChromosome

public 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.

Parameters:
str - String representation of chromosome
min - minimum value of features
max - maximum value of features
Returns:
chromosome

createChromosome

public 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.

Parameters:
str - String representation of chromosome
minOpening - minimum value of opening game step
maxOpening - maximum value of opening game step
minEnd - minimum value of end game step
maxEnd - maximum value of end game step
min - minimum value of features
max - maximum value of features
Returns:
chromosome

GeneThello Home

Get GeneThello: Genetic Othello at SourceForge.net. Fast, secure and Free Open Source software downloads