add none experiment
Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
This commit is contained in:
parent
63a6e85890
commit
c0ef540e9c
@ -4,6 +4,8 @@ class MpExperience:
|
||||
PING = "ping"
|
||||
NCPV = "ncpv"
|
||||
NC = "nc"
|
||||
NONE = "none"
|
||||
|
||||
def __init__(self, xpParam, mpTopo, mpConfig):
|
||||
self.xpParam = xpParam
|
||||
self.mpTopo = mpTopo
|
||||
|
16
src/mpExperienceNone.py
Normal file
16
src/mpExperienceNone.py
Normal file
@ -0,0 +1,16 @@
|
||||
from mpExperience import MpExperience
|
||||
from mpParamXp import MpParamXp
|
||||
|
||||
class MpExperienceNone(MpExperience):
|
||||
def __init__(self, xpParamFile, mpTopo, mpConfig):
|
||||
MpExperience.__init__(self, xpParamFile, mpTopo, mpConfig)
|
||||
MpExperience.classicRun(self)
|
||||
|
||||
def prepapre(self):
|
||||
MpExperience.prepare(self)
|
||||
|
||||
def clean(self):
|
||||
MpExperience.clean(self)
|
||||
|
||||
def run(self):
|
||||
self.mpTopo.getCLI()
|
@ -51,7 +51,7 @@ class MpParamXp(MpParam):
|
||||
|
||||
defaultValue[CLIENTPCAP] = "no"
|
||||
defaultValue[SERVERPCAP] = "no"
|
||||
defaultValue[XPTYPE] = "ping"
|
||||
defaultValue[XPTYPE] = "none"
|
||||
defaultValue[PINGCOUNT] = "5"
|
||||
defaultValue[DDIBS] = "1k"
|
||||
defaultValue[DDOBS] = "1k"
|
||||
|
@ -65,15 +65,15 @@ class MpXpRunner:
|
||||
if xp == MpExperience.PING:
|
||||
MpExperiencePing(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
self.mpTopo.getCLI()
|
||||
elif xp == MpExperience.NCPV:
|
||||
MpExperienceNCPV(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
self.mpTopo.getCLI()
|
||||
elif xp == MpExperience.NC:
|
||||
MpExperienceNC(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
self.mpTopo.getCLI()
|
||||
elif xp == MpExperience.NONE:
|
||||
MpExperienceNC(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
else:
|
||||
print("Unfound xp type..." + xp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user