mininet-sample/src/mpPvAt.py
Benjamin Hesmans 6576eb330f add changePvAt to control application rate
During an experiment, you can change the application rate with the
param changePvAt:when,-L XX(unit)

Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
2015-02-10 11:03:21 +01:00

10 lines
206 B
Python

class MpPvAt:
def __init__(self, at, cmd):
self.at = at
self.cmd = cmd
self.delta = 0
def __str__(self):
return "Pv... at " + str(self.at) + "(" + str(self.delta) + \
") will be " + self.cmd