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

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

public class FileGALEConfiguration
extends GALEConfiguration
implements java.io.Serializable

This interface contains the access to the configuration object

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

Field Summary
 
Fields inherited from class edu.uiuc.ge.illigal.gale.config.GALEConfiguration
aAgent, bPrune, dis, fInitialAggregates, fKThreshold, fMaxSplitP, fMergeP, fProportion, fSomaticMP, iAgentInitFeatures, iAgentMaxInitDepth, iAgentMaxInitWidth, iMaxX, iMaxY, iNumClasses, iNumFeatures, iTestMode, iWorldIterations, lSeed, lSeedRuns, rndGen, sMappingStrategy, TEST_BAGGING, TEST_BEST
 
Constructor Summary
FileGALEConfiguration(java.lang.String sParamFile)
          Loads a GA parameter configuration and features range from file.
 
Method Summary
private  void processParamLine(java.lang.String sLine)
          Processes a line read from the configuration file.
 
Methods inherited from class edu.uiuc.ge.illigal.gale.config.GALEConfiguration
getAgent, getAgentInitAttributes, getAgentMaxInitDepth, getAgentMaxInitWidth, getDistance, getInitialAggregates, getInstancesProportion, getKThreshold, getMappingStrategy, getMaxSplitP, getMaxX, getMaxY, getMergeP, getNumAttributes, getNumClasses, getPrune, getRandom, getSeed, getSeedRuns, getSomaticMP, getTestMode, getWorldIterations, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileGALEConfiguration

public FileGALEConfiguration(java.lang.String sParamFile)
                      throws java.io.FileNotFoundException,
                             java.io.IOException,
                             java.lang.Exception
Loads a GA parameter configuration and features range from file.

Parameters:
sParamFile - Contains the file name for the Ale parameters configuration file
Throws:
java.io.FileNotFoundException - The requested GALE parameters configuration file is not found
java.io.IOException - Some IO exception occurs when loading the GALE parameters configuration file
java.lang.Exception - Class dynamic loading exception
Method Detail

processParamLine

private void processParamLine(java.lang.String sLine)
                       throws java.io.IOException,
                              java.lang.Exception
Processes a line read from the configuration file.

Parameters:
sLine - Contains the file to be processed
Throws:
java.io.IOException - Some IO exception occurs when loading the GALE parameters configuration file
java.lang.Exception - Class dynamic loading exception