blob: 3bbfc1f1d6caa9787e4f36d9f4970bd9f0ae9630 [file] [log] [blame]
ashu34c3ee02015-03-25 14:41:14 -05001#!/usr/bin/python
2
3from ndn.experiments.experiment import Experiment
4
5import time
6
7class 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)