ConfigurationManager.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package de.tu_darmstadt.tk.SmartHomeNetworkSim.core;
  2. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration.ImportConfiguration;
  3. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration.LinkColorManager;
  4. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration.NetworkTreeSettings;
  5. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration.SelectionModel;
  6. import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.configuration.VisualizationConfiguration;
  7. /**
  8. * Class which stores and returns the different configuration classes
  9. *
  10. * @author Andreas T. Meyer-Berg
  11. */
  12. public class ConfigurationManager {
  13. /**
  14. * Visual Configuration
  15. */
  16. private VisualizationConfiguration visual;
  17. /**
  18. * Import Configuration
  19. */
  20. private ImportConfiguration importConf;
  21. /**
  22. * Selection model
  23. */
  24. private SelectionModel selection;
  25. /**
  26. * Settings of the networkTree
  27. */
  28. private NetworkTreeSettings networkTree;
  29. /**
  30. * Link Color manager
  31. */
  32. private LinkColorManager linkColors;
  33. /**
  34. * Initialize the Configuration Manager
  35. */
  36. public ConfigurationManager() {
  37. visual = new VisualizationConfiguration();
  38. importConf = new ImportConfiguration();
  39. selection = new SelectionModel();
  40. networkTree = new NetworkTreeSettings();
  41. linkColors = new LinkColorManager();
  42. }
  43. /**
  44. * Returns the visualization configuration
  45. *
  46. * @return the visualization configuration
  47. */
  48. public VisualizationConfiguration getVisualizationConfiguration() {
  49. return visual;
  50. }
  51. /**
  52. * Returns the import configuration
  53. *
  54. * @return the import configuration
  55. */
  56. public ImportConfiguration getImportConfiguration(){
  57. return importConf;
  58. }
  59. /**
  60. * Returns the selection model
  61. *
  62. * @return selection model
  63. */
  64. public SelectionModel getSelectionModel(){
  65. return selection;
  66. }
  67. /**
  68. * Returns the NetworkTreeSettings
  69. * @return network tree settings
  70. */
  71. public NetworkTreeSettings getNetworkTreeSettings(){
  72. return networkTree;
  73. }
  74. /**
  75. * @return the linkColors
  76. */
  77. public LinkColorManager getLinkColors() {
  78. return linkColors;
  79. }
  80. }