def __init__(self, name: str, capacity: int, memory: int):
     Hardware.__init__(self, name, "Power", int(capacity * 0.25),
                       int(memory + (memory * 0.75)))
Beispiel #2
0
    def __init__(self, name, capacity, memory):
        Hardware.__init__(self, name, "Heavy", int(capacity*2), int(0.75*memory))

# test = HeavyHardware("HDD", 200, 200)
#
# print(test.name, test.type, test.capacity, test.memory)
Beispiel #3
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, "Power", int(0.25 * capacity),
                       int(1.75 * memory))
 def __init__(self, name: str, capacity: int, memory: int):
     Hardware.__init__(self, name, "Heavy", capacity * 2,
                       int(memory * 0.75))
 def __init__(self, name: str, capacity, memory):
     Hardware.__init__(self, name, "Power", capacity * 0.25, memory * 1.75)
Beispiel #6
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, 'Heavy', capacity * 2, memory * 0.75)
Beispiel #7
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, 'Power', capacity * 0.25, memory * 1.75)