Main.java 925 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /**
  6. * Main class which initializes and connects the different parts and starts the program
  7. *
  8. * @author Andreas T. Meyer-Berg
  9. */
  10. public class Main {
  11. /**
  12. * Model of the smart home
  13. */
  14. static Model model;
  15. /**
  16. * Visualization of the smart home network
  17. */
  18. static MainFrame view;
  19. /**
  20. * Controller of the program
  21. */
  22. static Controller controller;
  23. /**
  24. * Starts the program
  25. * @param args will be ignored
  26. */
  27. public static void main(String[] args) {
  28. model = new Model();
  29. controller = new Controller(model);
  30. view = new MainFrame(controller);
  31. view.menu.mnExamples.createSWCExample(true);
  32. System.exit(0);
  33. }
  34. }