public CopyTaskEnvironment(CopyTaskProperties props)
 {
     _vectorSize           = props.VectorSize;
     MaxSequenceLength     = props.MaxSequenceLength;
     LengthRule            = props.LengthRule;
     _fitnessFunction      = props.FitnessFunction;
     RandomSeed            = props.RandomSeed;
     EliminiateZeroVectors = props.EliminateZeroVectors;
 }
Exemple #2
0
 public override void Initialize(XmlElement xmlConfig)
 {
     base.Initialize(xmlConfig);
     _copyTaskProps = new CopyTaskProperties(xmlConfig.SelectSingleNode("CopyTaskParams") as XmlElement);
 }
 private CopyTaskEnvironment CreateEnvironment(FitnessFunction fitnessFunction)
 {
     CopyTaskProperties props = new CopyTaskProperties
     {
         Iterations = 10,
         VectorSize = 2,
         FitnessFunction = fitnessFunction,
         MaxSequenceLength = 10,
         LengthRule = LengthRule.Fixed,
     };
     return new CopyTaskEnvironment(props);
 }