X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fns3%2Fns3dceapplication.py;h=10b2433cfb5bfe2b85fb1fa73e859defe298b936;hp=2b0f9749d85644dc601e46068d340150be27814a;hb=19a601bf2df7a723df749f478e052978a8552154;hpb=a55b5cf0818ced6ab8dc3e88fad7f6616675e826 diff --git a/src/nepi/resources/ns3/ns3dceapplication.py b/src/nepi/resources/ns3/ns3dceapplication.py index 2b0f9749..10b2433c 100644 --- a/src/nepi/resources/ns3/ns3dceapplication.py +++ b/src/nepi/resources/ns3/ns3dceapplication.py @@ -60,6 +60,13 @@ class NS3BaseDceApplication(NS3BaseApplication): "DCE environment variables.", flags = Flags.Design) + """ + use_dlm = Attribute("useDlmLoader", + "Use ns3::DlmLoaderFactory as library loader", + type = Types.Bool, + flags = Flags.Design) + """ + starttime = Attribute("StartTime", "Time at which the application will start", default = "+0.0ns", @@ -74,6 +81,9 @@ class NS3BaseDceApplication(NS3BaseApplication): cls._register_attribute(stack_size) cls._register_attribute(arguments) cls._register_attribute(environment) + """ + cls._register_attribute(use_dlm) + """ cls._register_attribute(stoptime) cls._register_attribute(starttime) @@ -92,7 +102,14 @@ class NS3BaseDceApplication(NS3BaseApplication): @property def dce_manager_helper_uuid(self): if not self._dce_manager_helper_uuid: - self._dce_manager_helper_uuid = self.simulation.create("DceManagerHelper") + self._dce_manager_helper_uuid = self.simulation.create( + "DceManagerHelper") + """ + if self.get("useDlmLoader"): + self.simulation.invoke( + self._dce_manager_helper_uuid, "SetLoader", + "ns3::DlmLoaderFactory") + """ return self._dce_manager_helper_uuid @property