示例#1
0
        public override void InitializeFrom(NonPrimitiveChromosome source)
        {
            var sourceAsEnum = source as EnumChromosome;

            if (sourceAsEnum == null)
            {
                return;
            }
            for (int idx = 0; idx < sourceAsEnum.Count; idx++)
            {
                Add(Enum.Parse(Parameter.ParameterType, Enum.GetName(source.Parameter.ParameterType, sourceAsEnum.GetValue(idx))));
            }
        }
示例#2
0
 public abstract void InitializeFrom(NonPrimitiveChromosome source);