def dev_source(self):
     if self.cur_xml.get('type') not in [
             'dev', 'file', 'unix', 'pipe', 'udp', 'tcp', 'spiceport'
     ]:
         return self.go_on()
     return utils_random.int_exp(1)
 def controller_bus(self):
     index = int(self.parent.get('index'))
     cnt = utils_random.int_exp(max_inc=index)
     return str(cnt)
 def time_delta(self):
     num = utils_random.int_exp(lambd=10)
     if random.random() < 0.5:
         num = -num
     return str(num)
 def get_max_vcpu(self):
     if 'max_vcpu' in self.params:
         cnt = self.params['max_vcpu']
     else:
         cnt = self.params['max_vcpu'] = utils_random.int_exp(1)
     return cnt
 def get_max_iothread(self):
     if 'max_iothread' in self.params:
         cnt = self.params['max_iothread']
     else:
         cnt = self.params['max_iothread'] = utils_random.int_exp(1)
     return cnt
 def dev_source(self):
     if self.cur_xml.get('type') not in [
             'dev', 'file', 'unix', 'pipe', 'udp', 'tcp', 'spiceport']:
         return self.go_on()
     return utils_random.int_exp(1)
 def time_delta(self):
     num = utils_random.int_exp(lambd=10)
     if random.random() < 0.5:
         num = -num
     return str(num)
 def controller_bus(self):
     index = int(self.parent.get('index'))
     cnt = utils_random.int_exp(max_inc=index)
     return str(cnt)
 def get_max_iothread(self):
     if 'max_iothread' in self.params:
         cnt = self.params['max_iothread']
     else:
         cnt = self.params['max_iothread'] = utils_random.int_exp(1)
     return cnt
 def get_max_vcpu(self):
     if 'max_vcpu' in self.params:
         cnt = self.params['max_vcpu']
     else:
         cnt = self.params['max_vcpu'] = utils_random.int_exp(1)
     return cnt