def loadPlantAndOrderList(args): plantName = args[0] orderListName = args[1] configName = args[2] plant = Plant.fromXmlFile(plantFileExists(plantName)) orderList = OrderList.fromXmlFile(orderListExists(orderListName), plant) configFile = configFileExists(configName) return plant, orderList, configFile
def loadNewPlantAndOrderList(testNum): plantFilename, orderListFilename = benchmarkFileExists(testNum) plant = Plant.fromXmlFile(plantFilename) orderList = OrderList.fromXmlFile(orderListFilename, plant) return plant, orderList
def schedulerPerf(args): testNum = args[0] plantFilename, orderListFilename = benchmarkFileExists(testNum) plant = Plant.fromXmlFile(plantFilename) orderList = OrderList.fromXmlFile(orderListFilename, plant) Controller(plant, orderList).schedulerPerf(testNum)