return uuid
def invoke(self, uuid, operation, *args, **kwargs):
+ if operation == "isRunning":
+ return self._is_running()
if operation == "isAppRunning":
return self._is_app_running(uuid)
if operation == "addStaticRoute":
return realkwargs
+ def _is_running(self):
+ if self.ns3.Simulator.IsFinished():
+ return False
+
+ now = self.ns3.Simulator.Now()
+ if now.IsZero():
+ return False
+
+ return True
+
def _is_app_running(self, uuid):
now = self.ns3.Simulator.Now()
if now.IsZero():