public override void ApplyRandomChangeToNodeValue(GeneticAlgorithmManager ga_mgr) { //TODO add somet logic here to handle the different test type... maybe pass this into the test next if (ga_mgr.rando.NextDouble() < 0.8) { //just change the value bool result = this.Test.ChangeTestValue(ga_mgr); this._tree._source = "new test value"; } else { this.Test = TreeTest.TreeTestFactory(ga_mgr); this._tree._source = "new test"; } }
public override void CreateRandom(GeneticAlgorithmManager ga_mgr) { this.Test = TreeTest.TreeTestFactory(ga_mgr); }