main_controller
Main controller module for the BRMS application.
Classes:
-
MainController–Main controller class for the Simulation.
MainController
MainController(model: Simulation, view: MainWindow)
Bases: BRMSController
Main controller class for the Simulation.
Methods:
-
connect_signals–Connect signals from the view to the controller's slots.
-
connect_signals_for_debugging–Connect signals only used for debugging.
-
init–Initialize the simulation and set the starting scenario.
-
on_exit–Handle the exit signal from the view.
-
on_scenario_changed–Handle changes to the scenario.
connect_signals
connect_signals() -> None
Connect signals from the view to the controller's slots.
connect_signals_for_debugging
connect_signals_for_debugging() -> None
Connect signals only used for debugging.
init
init() -> None
Initialize the simulation and set the starting scenario.
These should be init actions on a fresh stimulation start.
on_exit
on_exit() -> None
Handle the exit signal from the view.
on_scenario_changed
on_scenario_changed(scenario: Scenario) -> None
Handle changes to the scenario.
These should be repeated actions on each scenario change