// Constructor for the Navigation class public Navigation(JaguarCtrl jc) { // Initialize vars jaguarControl = jc; realJaguar = jc.realJaguar; simulatedJaguar = jc.simulatedJaguar; genAlg_ = new Genetic(numGenerations, popSize, mutationRate, mutationFactor, this, numParents, maxSteps); this.Initialize(); // Start Control Thread controlThread = new Thread(new ThreadStart(runControlLoop)); controlThread.Start(); }
// This function is called from the dialogue window "Reset Button" // click function. It resets all variables. public void Reset() { genAlg_ = new Genetic(numGenerations, popSize, mutationRate, mutationFactor, this, numParents, maxSteps); InternalReset(); }