Main.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package de.tu_darmstadt.tk.SmartHomeNetworkSim;
  2. import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.Controller;
  3. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Model;
  4. import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.MainFrame;
  5. import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.menuBar.HeaterScenario;
  6. import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.menuBar.HeaterScenarioFakeData;
  7. import de.tu_darmstadt.tk.SmartHomeNetworkSim.view.menuBar.LightScenario;
  8. /**
  9. * Main class which initializes and connects the different parts and starts the program
  10. *
  11. * @author Andreas T. Meyer-Berg
  12. */
  13. public class Main {
  14. /**
  15. * Model of the smart home
  16. */
  17. static Model model;
  18. /**
  19. * Visualization of the smart home network
  20. */
  21. static MainFrame view;
  22. /**
  23. * Controller of the program
  24. */
  25. static Controller controller;
  26. /**
  27. * Starts the program
  28. * @param args will be ignored
  29. */
  30. public static void main(String[] args) {
  31. model = new Model();
  32. controller = new Controller(model);
  33. view = new MainFrame(controller);
  34. //view.menu.mnExamples.createSWCExample(true);
  35. //new HeaterScenario(controller, controller.getNetworkController()).createSWCExample(true);
  36. //new LightScenario(controller).createSWCExample(true);
  37. new HeaterScenarioFakeData(controller, controller.getNetworkController()).createSWCExample(true);
  38. System.exit(0);
  39. }
  40. }