ashu | 34c3ee0 | 2015-03-25 14:41:14 -0500 | [diff] [blame^] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | from ndn.experiments.experiment import Experiment |
| 4 | |
| 5 | import time |
| 6 | |
| 7 | class PingallExperiment(Experiment): |
| 8 | |
| 9 | def __init__(self, net, nodes, convergenceTime, nPings, strategy): |
| 10 | |
| 11 | Experiment.__init__(self, net, nodes, convergenceTime, nPings, strategy) |
| 12 | self.COLLECTION_PERIOD_BUFFER = 10 |
| 13 | |
| 14 | |
| 15 | def run(self): |
| 16 | self.startPings() |
| 17 | |
| 18 | # For pingall experiment sleep for the number of pings + some offset |
| 19 | time.sleep(self.nPings + self.COLLECTION_PERIOD_BUFFER) |