possible bug fix: reason why pyQt was freezing when shutting down the experiment
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Tue, 7 Jun 2011 16:36:40 +0000 (18:36 +0200)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Tue, 7 Jun 2011 16:36:40 +0000 (18:36 +0200)
src/nepi/core/execute.py
src/nepi/testbeds/netns/metadata_v01.py
src/nepi/testbeds/ns3/connection_metadata_v3_9.py
src/nepi/testbeds/ns3/factories_metadata_v3_9.py

index 0799060..075b0a5 100644 (file)
@@ -572,7 +572,9 @@ class ExperimentController(object):
         except:
             # Just print exceptions, this is just cleanup
             import traceback
-            traceback.print_exc(file=sys.stderr)
+            ######## BUG ##########
+            #BUG: If the next line is uncomented pyQt explodes when shutting down the experiment !!!!!!!!
+            #traceback.print_exc(file=sys.stderr)
 
     def stop(self):
        for testbed in self._testbeds.values():
index b849482..45be3b1 100644 (file)
@@ -189,6 +189,11 @@ def start_application(testbed_instance, guid):
             stderr = stderr, user = user)
     testbed_instance.elements[guid] = element
 
+def stop_application(testbed_instance, guid):
+    #app = testbed_instance.elements[guid]
+    #app.signal()
+    pass
+
 ### Status functions ###
 
 def status_application(testbed_instance, guid):
@@ -511,6 +516,7 @@ factories_info = dict({
             "category": "applications",
             "create_function": create_application,
             "start_function": start_application,
+            "stop_function": stop_application,
             "status_function": status_application,
             "box_attributes": ["command", "user"],
             "connector_types": ["node"],
index f25d9d1..a3f993d 100644 (file)
@@ -443,6 +443,18 @@ connections = [
             "init_code": connect_mac_device,
             "can_cross": False
     }),
+    dict({
+            "from": ( "ns3", "ns3::NqapWifiMac", "dev" ),
+            "to":   ( "ns3", "ns3::WifiNetDevice", "mac" ),
+            "init_code": connect_mac_device,
+            "can_cross": False
+    }),
+    dict({
+            "from": ( "ns3", "ns3::NqstaWifiMac", "dev" ),
+            "to":   ( "ns3", "ns3::WifiNetDevice", "mac" ),
+            "init_code": connect_mac_device,
+            "can_cross": False
+    }),
     dict({
             "from": ( "ns3", "ns3::RateErrorModel", "dev" ),
             "to":   ( "ns3", "ns3::CsmaNetDevice", "err" ),
index c220593..6afc7f6 100644 (file)
@@ -718,7 +718,7 @@ factories_info = dict({
         "tags": [tags.MOBILE],
     }),
      "ns3::Node": dict({
-        "category": "Topology",
+        "category": "Node",
         "create_function": create_node,
         "configure_function": configure_node,
         "help": "",
@@ -1076,10 +1076,10 @@ factories_info = dict({
     }),
      "ns3::NqstaWifiMac": dict({
         "category": "Mac",
-        "create_function": create_element,
+        "create_function": create_wifi_standard_model,
         "configure_function": configure_element,
         "help": "",
-        "connector_types": [],
+        "connector_types": ["dev"],
         "box_attributes": ["ProbeRequestTimeout",
             "AssocRequestTimeout",
             "MaxMissedBeacons",
@@ -1336,10 +1336,10 @@ factories_info = dict({
     }),
      "ns3::NqapWifiMac": dict({
         "category": "Mac",
-        "create_function": create_element,
+        "create_function": create_wifi_standard_model,
         "configure_function": configure_element,
         "help": "",
-        "connector_types": [],
+        "connector_types": ["dev"],
         "box_attributes": ["BeaconInterval",
             "BeaconGeneration",
             "CtsTimeout",
@@ -1568,7 +1568,7 @@ factories_info = dict({
         "box_attributes": ["DefaultLoss"],
     }),
      "ns3::WifiNetDevice": dict({
-        "category": "Wifi",
+        "category": "Device",
         "create_function": create_element,
         "configure_function": configure_device,
         "help": "",
@@ -1577,7 +1577,7 @@ factories_info = dict({
         "box_attributes": ["Mtu"],
     }),
      "ns3::CsmaChannel": dict({
-        "category": "Topology",
+        "category": "Channel",
         "create_function": create_element,
         "configure_function": configure_element,
         "help": "",
@@ -1745,7 +1745,7 @@ factories_info = dict({
             "EnableBeaconCollisionAvoidance"],
     }),
      "ns3::MeshPointDevice": dict({
-        "category": "Topology",
+        "category": "Device",
         "create_function": create_element,
         "configure_function": configure_element,
         "help": "",