Module Import alias Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareGtE AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num orelse If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num Return Num decorator_list If CompareEq NameLoad Str body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Num Num body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body Assign NameStore Str orelse Raise Call NameLoad Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore Call NameLoad Num NameLoad body For NameStore NameLoad body If BoolOpAnd CompareEq BinOpMod BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num CompareGtE NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore BinOpDiv Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad Num body Print Str AugAssignAdd NameStore Str Assign NameStore Num For NameStore Call NameLoad Num NameLoad NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If CompareLtE AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Print Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str Print Str orelse Print Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str Print Str AugAssignAdd NameStore Str For NameStore NameLoad body Print BinOpAdd Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A string N/A random prime lcm TaskIns N/A object N/A __init__ N/A N/A self start end priority name N/A N/A N/A N/A self start start N/A N/A self end end N/A N/A self usage 0 N/A N/A self priority priority N/A N/A self name N/A N/A name replace N/A N/A self id N/A int N/A N/A N/A random random 10000 N/A use N/A N/A self usage N/A N/A N/A N/A self usage usage N/A N/A N/A self usage N/A N/A self end N/A self start N/A N/A True N/A False N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A str N/A self name # N/A str N/A self id  - start:  N/A str N/A self start  priority:  N/A str N/A self priority budget_text N/A get_unique_name N/A N/A self N/A N/A N/A N/A N/A N/A str N/A self name # N/A str N/A self id N/A N/A TaskType N/A object N/A __init__ N/A N/A self period release execution deadline name N/A N/A N/A N/A self period period N/A N/A self release release N/A N/A self execution execution N/A N/A self deadline deadline N/A N/A self name name N/A N/A priority_cmp N/A N/A one other N/A N/A N/A N/A N/A one priority N/A other priority N/A N/A -1 N/A N/A N/A N/A one priority N/A other priority N/A N/A 1 N/A 0 N/A tasktype_cmp N/A N/A self other N/A N/A N/A N/A N/A self period N/A other period N/A N/A -1 N/A N/A N/A self period N/A other period N/A N/A 1 N/A 0 N/A N/A N/A __name__ __main__ N/A N/A html_color N/A Task1 Task2 Task3 Task4 Task5 Empty Finish red blue green aqua coral grey black N/A taskfile N/A open tasks.txt N/A lines N/A N/A taskfile readlines N/A task_types N/A N/A tasks N/A N/A hyperperiod N/A N/A line lines N/A N/A line N/A N/A line split N/A i N/A range 0 4 N/A N/A N/A line N/A i N/A int N/A line N/A i N/A N/A N/A len line 5 N/A N/A name N/A line N/A 4 N/A N/A N/A N/A len line 4 N/A N/A name Task N/A N/A N/A Exception Invalid tasks.txt file structure N/A N/A N/A int N/A line N/A 0 0 N/A N/A N/A N/A task_types append N/A TaskType period N/A line N/A 0 release N/A line N/A 1 execution N/A line N/A 2 deadline N/A line N/A 3 name name N/A task_type task_types N/A N/A N/A N/A hyperperiod append N/A task_type period N/A hyperperiod N/A lcm hyperperiod N/A task_types N/A sorted task_types tasktype_cmp N/A i N/A xrange 0 hyperperiod N/A N/A task_type task_types N/A N/A N/A N/A N/A N/A i N/A task_type release N/A task_type period 0 N/A i N/A task_type release N/A N/A start i N/A end N/A start N/A task_type execution N/A priority N/A task_type period N/A N/A N/A tasks append N/A TaskIns start start end end priority priority name N/A task_type name N/A html <!DOCTYPE html><html><head><title>RM Scheduling</title></head><body> N/A utilization 0 N/A task_type task_types N/A N/A utilization N/A N/A float N/A task_type execution N/A float N/A task_type period N/A N/A utilization 1 N/A N/A Utilization error! N/A html <br /><br />Utilization error!<br /><br /> N/A clock_step 1 N/A i N/A xrange 0 hyperperiod clock_step N/A N/A possible N/A N/A t tasks N/A N/A N/A N/A t start i N/A N/A N/A N/A possible append t N/A possible N/A sorted possible priority_cmp N/A N/A N/A len possible 0 N/A N/A on_cpu N/A possible N/A 0 N/A N/A N/A on_cpu get_unique_name  uses the processor.  N/A html N/A N/A N/A N/A <div style="float: left; text-align: center; width: 110px; height: 20px; background-color: N/A html_color N/A N/A on_cpu name ;"> N/A N/A on_cpu get_unique_name </div> N/A N/A N/A on_cpu use clock_step N/A N/A N/A N/A tasks remove on_cpu N/A html N/A N/A <div style="float: left; text-align: center; width: 10px; height: 20px; background-color: N/A html_color N/A Finish ;"></div> N/A Finish! N/A N/A No task uses the processor.  N/A html N/A N/A <div style="float: left; text-align: center; width: 110px; height: 20px; background-color: N/A html_color N/A Empty ;">Empty</div> N/A N/A html <br /><br /> N/A p tasks N/A N/A N/A N/A N/A p get_unique_name  is dropped due to overload! N/A html N/A N/A <p> N/A N/A p get_unique_name  is dropped due to overload!</p> N/A html </body></html> N/A output N/A open output.html w N/A N/A N/A output write html N/A N/A N/A output close