edu.uiuc.ge.illigal.gale.config
Class GALEConfiguration

java.lang.Object
  |
  +--edu.uiuc.ge.illigal.gale.config.GALEConfiguration
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FileGALEConfiguration

public abstract class GALEConfiguration
extends java.lang.Object
implements java.io.Serializable

This abstract class contains the access to the GA configuration object

Since:
0.9alpha
Version:
0.9alpha
Author:
Xavier Llorà <xllora@illigal.ge.uiuc.edu>
See Also:
Serialized Form

Field Summary
protected  edu.uiuc.ge.illigal.gale.agents.Agent aAgent
          Agents to use in the run
protected  boolean bPrune
          Check if pruning is activates
protected  edu.uiuc.ge.illigal.gale.distance.Distance dis
          Distance function to use
protected  float fInitialAggregates
          Initial aggregates number
protected  float fKThreshold
          KThreshold for survival pressure
protected  float fMaxSplitP
          Maximal split probability
protected  float fMergeP
          Merge Probability
protected  float fProportion
          Random picking proportion
protected  float fSomaticMP
          Somatic Mutation Probability
protected  int iAgentInitFeatures
          The number of initial features used by the agent
protected  int iAgentMaxInitDepth
          Maximal initial agent depth
protected  int iAgentMaxInitWidth
          Maximal initial agent width
protected  int iMaxX
          Board X width
protected  int iMaxY
          Board Y height
protected  int iNumClasses
          Number of possible target classes
protected  int iNumFeatures
          Number of problem features
protected  int iTestMode
          Test mode.
protected  int iWorldIterations
          The number of world iterations
protected  long lSeed
          Random Number Generator seed
protected  long lSeedRuns
          Random Number Generator seed for board runs
protected  java.util.Random rndGen
          Random Number Generator
protected  java.lang.String sMappingStrategy
          The mapping allocation strategy
static int TEST_BAGGING
          Test constant for using bagging
static int TEST_BEST
          Test constant for using the best
 
Constructor Summary
GALEConfiguration()
           
 
Method Summary
 edu.uiuc.ge.illigal.gale.agents.Agent getAgent()
          Returns the distance function to use
 int getAgentInitAttributes()
          Returns the number of initial features used.
 int getAgentMaxInitDepth()
          Returns the agent initial maximal depth.
 int getAgentMaxInitWidth()
          Returns the agent initial maximal width.
 edu.uiuc.ge.illigal.gale.distance.Distance getDistance()
          Returns the distance function to use
 float getInitialAggregates()
          Returns the initial aggregates present in the board.
 float getInstancesProportion()
          Returns the proportion of instances to pick randomly.
 float getKThreshold()
          Returns the extinctive kThreshold pressure.
 java.lang.String getMappingStrategy()
          Returns the resource allocation strategy.
 float getMaxSplitP()
          Returns the maximal Split Probability.
 int getMaxX()
          Returns the board X width.
 int getMaxY()
          Returns the board Y height.
 float getMergeP()
          Returns the merge probability.
 int getNumAttributes()
          Returns the number of features that describes the problem.
 int getNumClasses()
          Returns the number of target classes for the problem.
 boolean getPrune()
          Check for pruning.
 java.util.Random getRandom()
          Returns the random number generator.
 long getSeed()
          Returns the initial random seed
 long getSeedRuns()
          Returns the initial random seed
 float getSomaticMP()
          Returns the somatic mutation probability.
 int getTestMode()
          Returns the test mode.
 int getWorldIterations()
          Returns the number of the world iterations
 java.lang.String toString()
          Returns the GA Param Configuration as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_BEST

public static final int TEST_BEST
Test constant for using the best

See Also:
Constant Field Values

TEST_BAGGING

public static final int TEST_BAGGING
Test constant for using bagging

See Also:
Constant Field Values

iNumFeatures

protected int iNumFeatures
Number of problem features


iNumClasses

protected int iNumClasses
Number of possible target classes


rndGen

protected java.util.Random rndGen
Random Number Generator


lSeed

protected long lSeed
Random Number Generator seed


lSeedRuns

protected long lSeedRuns
Random Number Generator seed for board runs


iAgentInitFeatures

protected int iAgentInitFeatures
The number of initial features used by the agent


iWorldIterations

protected int iWorldIterations
The number of world iterations


fSomaticMP

protected float fSomaticMP
Somatic Mutation Probability


fMergeP

protected float fMergeP
Merge Probability


fKThreshold

protected float fKThreshold
KThreshold for survival pressure


fMaxSplitP

protected float fMaxSplitP
Maximal split probability


iAgentMaxInitWidth

protected int iAgentMaxInitWidth
Maximal initial agent width


iAgentMaxInitDepth

protected int iAgentMaxInitDepth
Maximal initial agent depth


fInitialAggregates

protected float fInitialAggregates
Initial aggregates number


iMaxX

protected int iMaxX
Board X width


iMaxY

protected int iMaxY
Board Y height


sMappingStrategy

protected java.lang.String sMappingStrategy
The mapping allocation strategy


fProportion

protected float fProportion
Random picking proportion


bPrune

protected boolean bPrune
Check if pruning is activates


iTestMode

protected int iTestMode
Test mode.


dis

protected edu.uiuc.ge.illigal.gale.distance.Distance dis
Distance function to use


aAgent

protected edu.uiuc.ge.illigal.gale.agents.Agent aAgent
Agents to use in the run

Constructor Detail

GALEConfiguration

public GALEConfiguration()
Method Detail

getNumAttributes

public int getNumAttributes()
Returns the number of features that describes the problem.

Returns:
The number of features

getNumClasses

public int getNumClasses()
Returns the number of target classes for the problem.

Returns:
The number of classes

getRandom

public java.util.Random getRandom()
Returns the random number generator.

Returns:
the random number generator

getSeed

public long getSeed()
Returns the initial random seed

Returns:
The initial random seed

getSeedRuns

public long getSeedRuns()
Returns the initial random seed

Returns:
The initial random seed

getAgentInitAttributes

public int getAgentInitAttributes()
Returns the number of initial features used.

Returns:
The number of initial features

getWorldIterations

public int getWorldIterations()
Returns the number of the world iterations

Returns:
The world iteration numbers

getSomaticMP

public float getSomaticMP()
Returns the somatic mutation probability.

Returns:
The somatic mutation probability

getMergeP

public float getMergeP()
Returns the merge probability.

Returns:
The merge probability

getKThreshold

public float getKThreshold()
Returns the extinctive kThreshold pressure.

Returns:
The kThreshold pressure

getMaxSplitP

public float getMaxSplitP()
Returns the maximal Split Probability.

Returns:
The split probability

getAgentMaxInitWidth

public int getAgentMaxInitWidth()
Returns the agent initial maximal width.

Returns:
The maximal width

getAgentMaxInitDepth

public int getAgentMaxInitDepth()
Returns the agent initial maximal depth.

Returns:
The maximal depth

getInitialAggregates

public float getInitialAggregates()
Returns the initial aggregates present in the board.

Returns:
The number of aggregates

getInstancesProportion

public float getInstancesProportion()
Returns the proportion of instances to pick randomly.

Returns:
The proportion of instances used

getMaxX

public int getMaxX()
Returns the board X width.

Returns:
The width in cells

getMaxY

public int getMaxY()
Returns the board Y height.

Returns:
The height in cells

getPrune

public boolean getPrune()
Check for pruning.

Returns:
true if prune is required

getTestMode

public int getTestMode()
Returns the test mode.

Returns:
the test mode

getMappingStrategy

public java.lang.String getMappingStrategy()
Returns the resource allocation strategy.

Returns:
The name of the mapping strategy

getDistance

public edu.uiuc.ge.illigal.gale.distance.Distance getDistance()
Returns the distance function to use

Returns:
The distance function

getAgent

public edu.uiuc.ge.illigal.gale.agents.Agent getAgent()
Returns the distance function to use

Returns:
The distance function

toString

public java.lang.String toString()
Returns the GA Param Configuration as a String.

Overrides:
toString in class java.lang.Object
Returns:
The GA parameters configuration