protected override PopInitInstruction <P, S> LoadDefaultInstruction() { GEPPopInitInstruction_Random <P, S> instruction = new GEPPopInitInstruction_Random <P, S>(); instruction.ChromosomeLengthRequested += () => { return(ChromosomeLengthRequested()); }; return(instruction); }
protected override PopInitInstruction <P, S> LoadInstructionFromXml(string selected_strategy, XmlElement xml_level1) { if (selected_strategy == "random") { GEPPopInitInstruction_Random <P, S> instruction = new GEPPopInitInstruction_Random <P, S>(xml_level1); instruction.ChromosomeLengthRequested += () => { return(ChromosomeLengthRequested()); }; return(instruction); } else { throw new NotImplementedException(); } }
public override PopInitInstruction <P, S> Clone() { GEPPopInitInstruction_Random <P, S> clone = new GEPPopInitInstruction_Random <P, S>(); return(clone); }