wodka.ga.selection
Class FavourFittest

java.lang.Object
  extended bywodka.ga.selection.FavourFittest
All Implemented Interfaces:
wwan.commons.param.Configurable, wwan.commons.param.Informative, SelectionPolicy, java.io.Serializable, StreamPersistable

public class FavourFittest
extends java.lang.Object
implements SelectionPolicy, wwan.commons.param.Configurable

See Also:
Serialized Form

Constructor Summary
FavourFittest()
           
 
Method Summary
 void checkParameterList(wwan.commons.param.ListParam lp)
           
 void fromStream(java.io.DataInputStream s, int version)
           
 java.lang.String getInfo()
           
 int getInitialPopulationSize()
           
 java.lang.String getLabel()
           
 wwan.commons.param.ListParamDesc getParameterDescription()
           
 int getPopSize()
           
 double getRandomRate()
           
 double getReproductionRate()
           
 int getVersion()
           
 double getWildcardRate()
           
 Population selectNewPopulation(Population current, GenotypeDesc desc, double mr)
           
 void setFieldsFromParameterList(wwan.commons.param.ListParam lp)
           
 void setParameterListFromFields(wwan.commons.param.ListParam lp)
           
 void setPopSize(int popSize)
           
 void setRandomRate(double randomRate)
           
 void setReproductionRate(double reproductionRate)
           
 void setWildcardRate(double wildcardRate)
           
 void toStream(java.io.DataOutputStream s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavourFittest

public FavourFittest()
Method Detail

selectNewPopulation

public Population selectNewPopulation(Population current,
                                      GenotypeDesc desc,
                                      double mr)
Specified by:
selectNewPopulation in interface SelectionPolicy

getInitialPopulationSize

public int getInitialPopulationSize()
Specified by:
getInitialPopulationSize in interface SelectionPolicy

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface SelectionPolicy

getInfo

public java.lang.String getInfo()
Specified by:
getInfo in interface SelectionPolicy

getParameterDescription

public wwan.commons.param.ListParamDesc getParameterDescription()
                                                         throws wwan.commons.param.ParamException
Specified by:
getParameterDescription in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException

setFieldsFromParameterList

public void setFieldsFromParameterList(wwan.commons.param.ListParam lp)
Specified by:
setFieldsFromParameterList in interface wwan.commons.param.Configurable

setParameterListFromFields

public void setParameterListFromFields(wwan.commons.param.ListParam lp)
                                throws wwan.commons.param.ParamException
Specified by:
setParameterListFromFields in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException

fromStream

public void fromStream(java.io.DataInputStream s,
                       int version)
                throws java.io.IOException
Specified by:
fromStream in interface StreamPersistable
Throws:
java.io.IOException

getVersion

public int getVersion()
Specified by:
getVersion in interface StreamPersistable

toStream

public void toStream(java.io.DataOutputStream s)
              throws java.io.IOException
Specified by:
toStream in interface StreamPersistable
Throws:
java.io.IOException

getPopSize

public int getPopSize()

setPopSize

public void setPopSize(int popSize)

getReproductionRate

public double getReproductionRate()

setReproductionRate

public void setReproductionRate(double reproductionRate)

checkParameterList

public void checkParameterList(wwan.commons.param.ListParam lp)
                        throws wwan.commons.param.ParamException
Specified by:
checkParameterList in interface wwan.commons.param.Configurable
Throws:
wwan.commons.param.ParamException

getRandomRate

public double getRandomRate()
Returns:
Returns the randomRate.

setRandomRate

public void setRandomRate(double randomRate)
Parameters:
randomRate - The randomRate to set.

getWildcardRate

public double getWildcardRate()
Returns:
Returns the wildcardRate.

setWildcardRate

public void setWildcardRate(double wildcardRate)
Parameters:
wildcardRate - The wildcardRate to set.