Пример #1
0
 def __str__(self):
     s = MpParam.__str__(self)
     s = s + "\n"
     for p in self.linkCharacteristics[:-1]:
         s = s + p.__str__() + "\n"
     s = s + self.linkCharacteristics[-1].__str__()
     return s
Пример #2
0
 def getParam(self, key):
     val = MpParam.getParam(self, key)
     if val is None:
         if key in MpParamXp.defaultValue:
             return MpParamXp.defaultValue[key]
         else:
             raise Exception("Param not found " + key)
     else:
         return val
Пример #3
0
 def __str__(self):
     s = MpParam.__str__(self)
     return s
Пример #4
0
 def __init__(self, paramFile):
     MpParam.__init__(self, paramFile)
Пример #5
0
 def __init__(self, paramFile):
     MpParam.__init__(self, paramFile)
     self.linkCharacteristics = []
     self.loadLinkCharacteristics()
     self.loadNetemAt()
     print(self.__str__())