art.cs
Class CsConfiguration

java.lang.Object
  extended byart.ga.GaConfiguration
      extended byart.cs.CsConfiguration

public class CsConfiguration
extends GaConfiguration

This class manage all the parameters of the CS reading them from an XML file. Basically all the parameters are read from an XML file and stored in memory. All the other classes know which is their Configuration instance and ask to their instance for the required information via get methods. In this way is possible to create instance of other classes (like for example create two different Populations) that use two different Configuration, and than different parameters. This can be very useful in AB model This class extend GaConfiguration.

Author:
Marco Lamieri and Gianluigi Ferraris

Constructor Summary
CsConfiguration()
          Constructor of this class and of the parent class.
 
Method Summary
 double getBaseBidRate()
          Percentage of the classifier's asset to be used for bid in the auction process not proportion to the specificity of the classifier.
 double getBidTax()
          Percentage of the classifier's asset to be payed as tax.
 double getCoverDetectorStrategy()
          Get the covering strategy.
 double getDifferentiationRate()
          Part of the classifier population used during the selection for die process to differentiate the children from the parents.
 double getEvolutionBrake()
          Get the evolution brake value.
 double getEvolutionRate()
          Probability at every short term computation of the CS to evolve the population.
 double getInitialFitness()
          Initial fitness of all the classifiers.
 double getLifeTax()
          Percentage of the classifier's asset to be payed as life tax.
 double getMaxActions()
          Maximum number of actions returned to the user after one cycle of computations.
 double getMaxAuctionWinners()
          Maximum number of message winning the auction.
 double getMovingAverageLag()
          Get the moving average lag rate.
 double getProportionalBidRate()
          Percentage of the classifier's asset used as bid proportional to the specificity of the classifier.
 double getRandomBidBias()
          Get the randomBidBias rate.
 double getSelectionForDieStrategy()
          Get the selection for die algorithm for CS.
 double getWildCardRate()
          Percentage of the classifier's condition part generated as wildcard.
 void setBaseBidRate(double baseBidRate)
          Percentage of the classifier's asset used for bid not proportional to the specificity.
 void setBidTax(double bidTax)
          Set bid tax.
 void setCoverDetectorStrategy(double coverDetectorStrategy)
          Set the covering strategy.
 void setDifferentiationRate(double differentiationRate)
          Set differentiation rate.
 void setEvolutionBrake(double evolutionBrake)
          Set the evolution brake value.
 void setEvolutionRate(double evolutionRate)
          Set evolution rate.
 void setInitialFitness(double initialFitness)
          Set initial fitness.
 void setLifeTax(double lifeTax)
          Set life tax.
 void setMaxActions(double maxActions)
          Maximum number of actions returned to the user after one cycle of computations.
 void setMaxAuctionWinners(double maxAuctionWinners)
          Set max auction winners number.
 void setMovingAverageLag(double movingAverageLag)
          Set the moving average lag rate.
 void setProportionalBidRate(double proportionalBidRate)
          Set bid rate proportional to specificity.
 void setRandomBidBias(double randomBidBias)
          Set the randomBidBias rate.
 void setSelectionForDieStrategy(double selectionForDieStrategy)
          Set the selection for die algorithm for CS.
 void setWildCardRate(double wildCardRate)
          Set wild card rate.
 
Methods inherited from class art.ga.GaConfiguration
getChromosomeLength, getChromosomeToReturn, getCrossOverPointNumber, getCrossOverRate, getDomain, getGenomeLabel, getGenomeLength, getGenomeType, getLogStatistics, getMutationRate, getPopulationSize, getProjectDesc, getProjectName, getProjectType, getRandomMaker, getStoppingMethod, getStoppingValue, getTurnoverRate, getVerboseness, initGenomeArrays, isFittestNeverDie, isMutateAdults, isNormalizeFitness, isPlotGraph, readParametersFromFile, setChromosomeLength, setChromosomeToReturn, setCrossOverPointNumber, setCrossOverRate, setDomain, setFittestNeverDie, setGenomeLabel, setGenomeLength, setGenomeType, setLogStatistics, setMutateAdults, setMutationRate, setNormalizeFitness, setPlotGraph, setPopulationSize, setProjectDesc, setProjectName, setProjectType, setRandomSeed, setStoppingMethod, setStoppingValue, setTurnoverRate, setVerboseness
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsConfiguration

public CsConfiguration()
Constructor of this class and of the parent class.

Method Detail

getBaseBidRate

public double getBaseBidRate()
Percentage of the classifier's asset to be used for bid in the auction process not proportion to the specificity of the classifier.

Returns:
Returns the baseBidRate.

getBidTax

public double getBidTax()
Percentage of the classifier's asset to be payed as tax.

Returns:
Returns the bidTax.

getDifferentiationRate

public double getDifferentiationRate()

Part of the classifier population used during the selection for die process to differentiate the children from the parents.<\p>

This is a technical parameter that deal with the modification of the standard GA algorithm required by the CS.<\p>

Returns:
Returns the differentiationRate.

getEvolutionRate

public double getEvolutionRate()
Probability at every short term computation of the CS to evolve the population.

Returns:
Returns the evolutionRate.

getInitialFitness

public double getInitialFitness()
Initial fitness of all the classifiers.

Returns:
Returns the initialFitness.

getLifeTax

public double getLifeTax()
Percentage of the classifier's asset to be payed as life tax.

Returns:
Returns the lifeTax.

getMaxActions

public double getMaxActions()
Maximum number of actions returned to the user after one cycle of computations.

Returns:
Returns the maxActions.

getMaxAuctionWinners

public double getMaxAuctionWinners()
Maximum number of message winning the auction.

Returns:
Returns the maxAuctionWinners.

getProportionalBidRate

public double getProportionalBidRate()
Percentage of the classifier's asset used as bid proportional to the specificity of the classifier.

Returns:
Returns the proportionalBidRate.

getWildCardRate

public double getWildCardRate()
Percentage of the classifier's condition part generated as wildcard.

Returns:
Returns the wildCardRate.

setBaseBidRate

public void setBaseBidRate(double baseBidRate)
Percentage of the classifier's asset used for bid not proportional to the specificity.

Parameters:
baseBidRate - The baseBidRate to set.

setBidTax

public void setBidTax(double bidTax)
Set bid tax.

Parameters:
bidTax - The bidTax to set.

setDifferentiationRate

public void setDifferentiationRate(double differentiationRate)
Set differentiation rate.

Parameters:
differentiationRate - The differentiationRate to set.

setEvolutionRate

public void setEvolutionRate(double evolutionRate)
Set evolution rate.

Parameters:
evolutionRate - The evolutionRate to set.

setInitialFitness

public void setInitialFitness(double initialFitness)
Set initial fitness.

Parameters:
initialFitness - The initialFitness to set.

setLifeTax

public void setLifeTax(double lifeTax)
Set life tax.

Parameters:
lifeTax - The lifeTax to set.

setMaxActions

public void setMaxActions(double maxActions)
Maximum number of actions returned to the user after one cycle of computations.

Parameters:
maxActions - The maxActions to set.

setMaxAuctionWinners

public void setMaxAuctionWinners(double maxAuctionWinners)
Set max auction winners number.

Parameters:
maxAuctionWinners - The maxAuctionWinners to set.

setProportionalBidRate

public void setProportionalBidRate(double proportionalBidRate)
Set bid rate proportional to specificity.

Parameters:
proportionalBidRate - The proportionalBidRate to set.

setWildCardRate

public void setWildCardRate(double wildCardRate)
Set wild card rate.

Parameters:
wildCardRate - The wildCardRate to set.

getEvolutionBrake

public double getEvolutionBrake()
Get the evolution brake value.

Returns:
Returns the evolutionBrakeRate.

setEvolutionBrake

public void setEvolutionBrake(double evolutionBrake)
Set the evolution brake value.

Parameters:
evolutionBrake - The evolutionBrake to set.

getMovingAverageLag

public double getMovingAverageLag()
Get the moving average lag rate.

Returns:
Returns the movingAverageLag.

setMovingAverageLag

public void setMovingAverageLag(double movingAverageLag)
Set the moving average lag rate.

Parameters:
movingAverageLag - The movingAverageLag to set.

getRandomBidBias

public double getRandomBidBias()
Get the randomBidBias rate.

Returns:
Returns the randomBidBias.

setRandomBidBias

public void setRandomBidBias(double randomBidBias)
Set the randomBidBias rate.

Parameters:
randomBidBias - The randomBidBias to set.

getCoverDetectorStrategy

public double getCoverDetectorStrategy()
Get the covering strategy.

Returns:
Returns the coverDetectorStrategy.

setCoverDetectorStrategy

public void setCoverDetectorStrategy(double coverDetectorStrategy)
Set the covering strategy.

Parameters:
coverDetectorStrategy - The coverDetectorStrategy to set.

getSelectionForDieStrategy

public double getSelectionForDieStrategy()
Get the selection for die algorithm for CS.

Returns:
Returns the selectionForDieStrategy.

setSelectionForDieStrategy

public void setSelectionForDieStrategy(double selectionForDieStrategy)
Set the selection for die algorithm for CS.

Parameters:
selectionForDieStrategy - The selectionForDieStrategy to set.