|
@@ -32,7 +32,12 @@ public class Controller {
|
|
/**
|
|
/**
|
|
* Controller which allows configuration of the program
|
|
* Controller which allows configuration of the program
|
|
*/
|
|
*/
|
|
- private ConfigurationController configurationController;
|
|
|
|
|
|
+ private SettingsController settingsController;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * NetworkController for manipulation of the network model
|
|
|
|
+ */
|
|
|
|
+ private NetworkController networkController;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Create a new Controller, which controls the given model and allows
|
|
* Create a new Controller, which controls the given model and allows
|
|
@@ -43,8 +48,9 @@ public class Controller {
|
|
*/
|
|
*/
|
|
public Controller(Model model) {
|
|
public Controller(Model model) {
|
|
this.model = model;
|
|
this.model = model;
|
|
- configurationController = new ConfigurationController(this.model, this);
|
|
|
|
|
|
+ settingsController = new SettingsController(this.model, this);
|
|
importController = new ImportController(this.model, this);
|
|
importController = new ImportController(this.model, this);
|
|
|
|
+ networkController = new NetworkController(this.model, this);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -58,10 +64,18 @@ public class Controller {
|
|
|
|
|
|
/**
|
|
/**
|
|
* Returns the controller responsible for configuration of the program
|
|
* Returns the controller responsible for configuration of the program
|
|
- * @return {@link ConfigurationController}
|
|
|
|
|
|
+ * @return {@link SettingsController}
|
|
|
|
+ */
|
|
|
|
+ public SettingsController getControllerConfiguration(){
|
|
|
|
+ return settingsController;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Return the controller, managing the networkModel
|
|
|
|
+ * @return
|
|
*/
|
|
*/
|
|
- public ConfigurationController getControllerConfiguration(){
|
|
|
|
- return configurationController;
|
|
|
|
|
|
+ public NetworkController getNetworkController(){
|
|
|
|
+ return networkController;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -365,7 +379,7 @@ public class Controller {
|
|
* @return the device_visualization_radius
|
|
* @return the device_visualization_radius
|
|
*/
|
|
*/
|
|
private int getDevice_visualization_radius() {
|
|
private int getDevice_visualization_radius() {
|
|
- return configurationController.getDeviceVisualizationRadius();
|
|
|
|
|
|
+ return settingsController.getDeviceVisualizationRadius();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|