|
@@ -7,6 +7,7 @@ import java.awt.event.ActionEvent;
|
|
|
import java.awt.event.ActionListener;
|
|
|
import java.awt.event.WindowAdapter;
|
|
|
import java.awt.event.WindowEvent;
|
|
|
+
|
|
|
import java.util.Collection;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.LinkedList;
|
|
@@ -16,10 +17,11 @@ import java.util.stream.Collectors;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.Controller;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.control.NetworkController;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Connection;
|
|
|
-import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.ConnectionPerformance;
|
|
|
+import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.ConnectionPrecision;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Link;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Model;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Port;
|
|
|
+import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.PrecisionLink;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.Protocol;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.SmartDevice;
|
|
|
import de.tu_darmstadt.tk.SmartHomeNetworkSim.core.protocols.MQTT_protocol;
|
|
@@ -187,13 +189,13 @@ public class ConnectionCreationPanel extends JScrollPane {
|
|
|
* if link null -> create new link
|
|
|
*/
|
|
|
if(l == null){
|
|
|
- l = new SimpleLink("New Link");
|
|
|
+ l = new PrecisionLink("New Link");
|
|
|
for(Port device: ports){
|
|
|
controller.getNetworkController().addLinkToDevice(l, device.getOwner());
|
|
|
}
|
|
|
newLink = true;
|
|
|
}
|
|
|
- connection = new ConnectionPerformance(l, new MQTT_protocol());
|
|
|
+ connection = new ConnectionPrecision(l, new MQTT_protocol());
|
|
|
this.ports = new Port[ports.size()];
|
|
|
int i = 0;
|
|
|
for (Port d : ports) {
|