Ejemplo n.º 1
0
class RandomDemandDialog(QDialog):
    def __init__(self):
        QDialog.__init__(self)
        self.ui = Ui_RandomDemandDialog()
        self.ui.setupUi(self)
        
    def GetResult(self):
        return {"n":int(self.ui.n.text()), 
                "vm_min":int(self.ui.t1.text()), 
                "vm_max":int(self.ui.t2.text()), 
                "ram_min":int(self.ui.r1.text()), 
                "ram_max":int(self.ui.r2.text()), 
                "st_min":int(self.ui.v1.text()), 
                "st_max":int(self.ui.v2.text()),
                "vms": int(self.ui.vms.text()),
                "storages": int(self.ui.storages.text()),
                "cap_min": int(self.ui.c1.text()),
                "cap_max": int(self.ui.c2.text()),
                "cons_cap_min": int(self.ui.cc1.text()),
                "cons_cap_max": int(self.ui.cc2.text()),
                "start": int(self.ui.starttime.text()),
                "end": int(self.ui.endtime.text()),
                "vmvm": self.ui.vmvm.isChecked(),
                "stst": self.ui.stst.isChecked()
                }
Ejemplo n.º 2
0
class RandomDemandDialog(QDialog):
    def __init__(self):
        QDialog.__init__(self)
        self.ui = Ui_RandomDemandDialog()
        self.ui.setupUi(self)

    def GetResult(self):
        return {
            "n": int(self.ui.n.text()),
            "vm_min": int(self.ui.t1.text()),
            "vm_max": int(self.ui.t2.text()),
            "ram_min": int(self.ui.r1.text()),
            "ram_max": int(self.ui.r2.text()),
            "st_min": int(self.ui.v1.text()),
            "st_max": int(self.ui.v2.text()),
            "vms": int(self.ui.vms.text()),
            "storages": int(self.ui.storages.text()),
            "cap_min": int(self.ui.c1.text()),
            "cap_max": int(self.ui.c2.text()),
            "cons_cap_min": int(self.ui.cc1.text()),
            "cons_cap_max": int(self.ui.cc2.text()),
            "start": int(self.ui.starttime.text()),
            "end": int(self.ui.endtime.text()),
            "vmvm": self.ui.vmvm.isChecked(),
            "stst": self.ui.stst.isChecked()
        }
Ejemplo n.º 3
0
 def __init__(self):
     QDialog.__init__(self)
     self.ui = Ui_RandomDemandDialog()
     self.ui.setupUi(self)
Ejemplo n.º 4
0
 def __init__(self):
     QDialog.__init__(self)
     self.ui = Ui_RandomDemandDialog()
     self.ui.setupUi(self)