blob: 28ad27fb46ab35e833e0da12c09cee07038b07a7 [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
Vince Lehman3b8bc652015-06-18 15:01:47 -05009 def __init__(self, args):
ashu34c3ee02015-03-25 14:41:14 -050010
Vince Lehman3b8bc652015-06-18 15:01:47 -050011 Experiment.__init__(self, args)
ashu34c3ee02015-03-25 14:41:14 -050012 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)
Vince Lehman3b8bc652015-06-18 15:01:47 -050020
21Experiment.register("pingall", PingallExperiment)