Exemplo n.º 1
0
    def __init__(self, K, config):
        self.K = K / 2 * 2
        self.config = config
        self.json = json.load(config.json)
        self.min_delay = 60

        Case.__init__(self)
Exemplo n.º 2
0
    def __init__(self, K, config, json):
        self.K = K / 2 * 2
        self.config = config
        self.json = json
        self.min_delay = 60

        Case.__init__(self)
Exemplo n.º 3
0
 def __init__(self, config):
     self.config = config
     self.json = json.load(config.json)
     if type(self.json) == list:
         self.flow = self.json
         self.capacity = []
     else:
         self.flow = self.json['flow']
         self.capacity = self.json['capacity']
     self.N = max([max(x['from'], x['to']) for x in self.flow]) + 1
     self.F = len(self.flow)
     if not self.capacity:
         self.capacity = [self.config.bw] * self.N
     Case.__init__(self)
Exemplo n.º 4
0
 def __init__(self, N, config):
     self.N = N
     self.config = config
     Case.__init__(self)
Exemplo n.º 5
0
 def __init__(self, config):
     self.config = config
     self.json = json.load(config.json)
     Case.__init__(self)