|
@@ -73,9 +73,9 @@ public class Main {
|
|
|
conf = controller.getSettingsController();
|
|
|
sim = controller.getSimulationController();
|
|
|
//initializeTest();
|
|
|
- //initializeMQTTTest();
|
|
|
+ initializeMQTTTest();
|
|
|
//initializeUserStudy();
|
|
|
- initializePerformanceTest();
|
|
|
+ //initializePerformanceTest();
|
|
|
//Test packetCapture
|
|
|
//sim.getPacketCaptureController().addPacketCollector(new PacketCollector(new SimplePacketSniffer()));
|
|
|
v = new MainFrame(controller);
|
|
@@ -87,6 +87,7 @@ public class Main {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @SuppressWarnings("unused")
|
|
|
private static void initializePerformanceTest(){
|
|
|
SmartDevice tic = new SmartDevice("Tic");
|
|
|
tic.setX(100);
|
|
@@ -244,9 +245,9 @@ public class Main {
|
|
|
/**
|
|
|
* Initializes a basic test Network, which contains a few SmartDevices, one Link and one Connection
|
|
|
*/
|
|
|
- @SuppressWarnings("unused")
|
|
|
+ //@SuppressWarnings("unused")
|
|
|
private static void initializeMQTTTest(){
|
|
|
- Link link = new SimpleLink("LossLess TCP-Network");
|
|
|
+ Link link = new SimpleLink("WIFI");
|
|
|
|
|
|
SmartDevice broker = new SmartDevice("MQTT-Broker");
|
|
|
broker.setX((int)(Math.random()*conf.getWidth()-2*conf.getDeviceVisualizationRadius())+conf.getDeviceVisualizationRadius());
|