Exemplo n.º 1
0
def zero_test():
    System.register_power_hardware("HDD", 200, 200)
    System.register_heavy_hardware("SSD", 400, 400)
    print(System.analyze())
    System.register_light_software("HDD", "Test", 0, 10)
    print(System.register_express_software("HDD", "Test2", 100, 100))
    System.register_express_software("HDD", "Test3", 50, 100)
    System.register_light_software("SSD", "Windows", 20, 50)
    System.register_express_software("SSD", "Linux", 50, 100)
    System.register_light_software("SSD", "Unix", 20, 50)
    print(System.analyze())
    System.release_software_component("SSD", "Linux")
    print(System.system_split())
Exemplo n.º 2
0
#     System.register_power_hardware("HDD", 200, 200)
#     System.register_heavy_hardware("SSD", 400, 400)
#     print(System.analyze())
#     System.register_light_software("HDD", "Test", 0, 10)
#     print(System.register_express_software("HDD", "Test2", 100, 100))
#     System.register_express_software("HDD", "Test3", 50, 100)
#     System.register_light_software("SSD", "Windows", 20, 50)
#     System.register_express_software("SSD", "Linux", 50, 100)
#     System.register_light_software("SSD", "Unix", 20, 50)
#     print(System.analyze())
#     System.release_software_component("SSD", "Linux")
#     # print(System.system_split())
#
#
# if __name__ == "__main__":
#     zero_test()
from system import System

System.register_power_hardware("HDD", 200, 200)
System.register_heavy_hardware("SSD", 400, 400)
print(System.analyze())
System.register_light_software("HDD", "Test", 0, 10)
print(System.register_express_software("HDD", "Test2", 100, 100))
print(System.register_express_software("HDDD", "Test3", 50, 100))
System.register_light_software("SSD", "Windows", 20, 50)
System.register_express_software("SSD", "Linux", 50, 100)
System.register_light_software("SSD", "Unix", 20, 50)
print(System.analyze())
print(System.release_software_component("SSD", "Lin"))
print(System.system_split())