Beispiel #1
0
endPi = int(sys.argv[2])
startφi = int(sys.argv[3])
endφi = int(sys.argv[4])

exe = Execution()

exe.create_Task(startPi,endPi,startφi,endφi)
exe.sort_pi()
exe.doc.write("start value of task pi: "+str(startPi)+", end value of task pi: "+str(endPi)+'\n')
exe.doc.write("start value of task φi: "+str(startφi)+", end value of task φi: "+str(endφi)+'\n')
exe.doc.write("--------------------------------------------------------------------------------------------------"+'\n')
  
task = Tasks()

exe.display_task()
exe.display_sortedTask()
exe.display_intervalle()



for i,ival in enumerate(exe.LT_sorted):
	task.pi,task.φi,task.si = ival
	exe.doc.write("--------------------------------------------------------------------------------------------------"+'\n')
	exe.doc.write("Task "+str(i)+" = "+str(task.pi)+","+str(task.φi)+","+str(task.si)+ '\n')
	exe.CreateAvailability(task.pi,task.φi,task.si,i)

#check if RejectedTasks list is empty to get result
if not exe.RejectedTasks:
	exe.getMakespan()
	exe.display_Mbusy()
	exe.PrintGraphic()