add new experiments for NLSR bot
refs: #3975
Change-Id: Iad1db7fca4c475d308d2f5c79cdd737967a986b2
diff --git a/ndn/experiments/experiment.py b/ndn/experiments/experiment.py
index a107905..d13f088 100644
--- a/ndn/experiments/experiment.py
+++ b/ndn/experiments/experiment.py
@@ -1,8 +1,8 @@
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
-# Copyright (C) 2015 The University of Memphis,
-# Arizona Board of Regents,
-# Regents of the University of California.
+# Copyright (C) 2015-2017 The University of Memphis,
+# Arizona Board of Regents,
+# Regents of the University of California.
#
# This file is part of Mini-NDN.
# See AUTHORS.md for a complete list of Mini-NDN authors and contributors.
@@ -40,7 +40,6 @@
# Used to restart pings on the recovered node if any
self.pingedDict = {}
-
def start(self):
self.setup()
self.run()
@@ -56,9 +55,15 @@
# Create folder to store ping data
host.cmd("mkdir ping-data")
+ self.checkConvergence()
+
+ def checkConvergence(self, convergenceTime = None):
+ if convergenceTime is None:
+ convergenceTime = self.convergenceTime
+
# Wait for convergence time period
- print "Waiting " + str(self.convergenceTime) + " seconds for convergence..."
- time.sleep(self.convergenceTime)
+ print "Waiting " + str(convergenceTime) + " seconds for convergence..."
+ time.sleep(convergenceTime)
print "...done"
# To check whether all the nodes of NLSR have converged