private void setSimulation(boolean simulating) {
        if (simulating) {
            simulation.launchSimulation(getSelectedAccessPoint(), model, panel.getWidth(), panel.getHeight());
        } else {
            simulation.clear();
        }
        panel.updateSimulationDisplay(simulation);
        panel.repaint();
        displayingSimulation = simulating;
        actionLaunchSimulation.setEnabled(!simulating);
        actionStopSimulation.setEnabled(simulating);
        btnSimulation.setAction(simulating ? actionStopSimulation : actionLaunchSimulation);
        toolWall.setEnabled(!simulating);
        toolRoom.setEnabled(!simulating);
        Brush.setNoTool();
    }