/* * Completely erases the current state of the Simulation */ public void reset() { e.purgeAgents(); paint.clearHistory(); children.clear(); fillWithAgents(); Agent a = new Agent(); a.setName("My Agent"); a.setChrome("000 000 000 000 000 000 000 011 011 011 011 011 100 101 101 101"); children.add(a); cur_gen = 0; current_elite = null; prev_elite_total = 0; running = true; }