GLMutatorCombined::TParameters Struct Reference

#include <GLMutatorCombined.h>

Inheritance diagram for GLMutatorCombined::TParameters:

GLBaseParameters

List of all members.

Public Member Functions

 TParameters (const vector< GLBaseMutator * > &mutators, const vector< double > &weights=vector< double >(0), TUsage apply_mutators=COMBINED)
 TParameters (const TParameters *source)
virtual GLBaseParameterscopy () const

Public Attributes

TUsage t_apply_mutators
vector< GLBaseMutator * > tv_mutators
 Vector of 'basic' mutators.
vector< double > tv_weights


Detailed Description

Internal class of the additional (to base mutator's) parameters necessary to initialise this class.

Definition at line 160 of file GLMutatorCombined.h.


Constructor & Destructor Documentation

GLMutatorCombined::TParameters::TParameters ( const vector< GLBaseMutator * > &  mutators,
const vector< double > &  weights = vector<double>(0),
TUsage  apply_mutators = COMBINED 
) [inline]

Creates new exemplar of GLMutatorCombined:: TParameters class.

Parameters:
mutators vector of mutators to be used in combine mutator. These 'submutators' will be destroyed in the combined mutator's destructor.
apply_mutators the way, how 'submutators' will be applyed -- all of them to the single organism during the mutation (SEPARATE) or just one of them will be randomly chosen (COMBINED). In first case the vector of weights must be supplied and be of the same size as the vector of 'submutators'.
weights determine the probability with which particular 'submutator' from the set will be chosen (see description of the GLMutatorCombined constructor for more information). When supplied must be the size of 'mutators' vector.

Definition at line 177 of file GLMutatorCombined.h.

GLMutatorCombined::TParameters::TParameters ( const TParameters source  )  [inline]

Copying constructor. Note, that pointers in the 'mutators' vector will be copied as pointers -- no actual copies of classes will be created.

Parameters:
source source of the data to copy;

Definition at line 190 of file GLMutatorCombined.h.


Member Function Documentation

virtual GLBaseParameters* GLMutatorCombined::TParameters::copy (  )  const [inline, virtual]

Creates the copy of the parameters.

Returns:
pointer to identical copy of the current class exemplar.

Implements GLBaseParameters.

Definition at line 200 of file GLMutatorCombined.h.


Member Data Documentation

Determines how the multiple mutators will be applied to organisim (all together or one at a time).

Definition at line 205 of file GLMutatorCombined.h.

vector of weights (probability that one of the mutator will be chosen to mutate given organism, make sense only when t_apply_mutators == SEPARATE)

Definition at line 211 of file GLMutatorCombined.h.


The documentation for this struct was generated from the following file:

Generated on Sat Jun 13 13:58:10 2009 for GenLib by  doxygen 1.5.9