wodka.ga.selection
Class AddRandom40

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

public class AddRandom40
extends java.lang.Object
implements SelectionPolicy

See Also:
Serialized Form

Constructor Summary
AddRandom40()
           
 
Method Summary
 void fromStream(java.io.DataInputStream s, int version)
           
 java.lang.String getInfo()
           
 int getInitialPopulationSize()
           
 java.lang.String getLabel()
           
 int getVersion()
           
 Population selectNewPopulation(Population currentPop, GenotypeDesc desc, double mr)
           
 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

AddRandom40

public AddRandom40()
Method Detail

selectNewPopulation

public Population selectNewPopulation(Population currentPop,
                                      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

fromStream

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

toStream

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

getVersion

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