GeneThello Home

net.sf.genethello.applet
Class ChromosomeFactory

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

public class ChromosomeFactory
extends java.lang.Object

Creates chromosome with specific and default values. Usually used by ChromosomeCreator class.

Author:
praz

Field Summary
static int DEFAULT_MAX_END
          Default maximum weight of feature end game step.
static int DEFAULT_MAX_FEATURE
          Default maximum weight of feature flips number.
static int DEFAULT_MAX_OPENING
          Default maximum weight of feature opening game step.
static int DEFAULT_MIN_END
          Default minimum weight of feature end game step.
static int DEFAULT_MIN_FEATURE
          Default minimum weight of feature flips number.
static int DEFAULT_MIN_OPENING
          Default minimum weight of feature opening game step.
 
Constructor Summary
ChromosomeFactory()
           
 
Method Summary
static Chromosome create(java.lang.String str)
          Creates chromosome of specific string representation with default minimum/maximum values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIN_OPENING

public static final int DEFAULT_MIN_OPENING
Default minimum weight of feature opening game step.

See Also:
Constant Field Values

DEFAULT_MAX_OPENING

public static final int DEFAULT_MAX_OPENING
Default maximum weight of feature opening game step.

See Also:
Constant Field Values

DEFAULT_MIN_END

public static final int DEFAULT_MIN_END
Default minimum weight of feature end game step.

See Also:
Constant Field Values

DEFAULT_MAX_END

public static final int DEFAULT_MAX_END
Default maximum weight of feature end game step.

See Also:
Constant Field Values

DEFAULT_MIN_FEATURE

public static final int DEFAULT_MIN_FEATURE
Default minimum weight of feature flips number.

See Also:
Constant Field Values

DEFAULT_MAX_FEATURE

public static final int DEFAULT_MAX_FEATURE
Default maximum weight of feature flips number.

See Also:
Constant Field Values
Constructor Detail

ChromosomeFactory

public ChromosomeFactory()
Method Detail

create

public static Chromosome create(java.lang.String str)
Creates chromosome of specific string representation with default minimum/maximum values.

Parameters:
str - string representation of chromosome
Returns:
chromosome

GeneThello Home

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