Main.java 852 B

12345678910111213141516171819202122232425262728293031323334353637
  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. }
  32. }