#!/usr/bin/python# coding=utf-8fromsimso.core.SchedulerimportSchedulerInfofromEDF_monoimportEDF_monofromsimso.utilsimportPartitionedSchedulerclassFixed_PEDF(PartitionedScheduler):definit(self):PartitionedScheduler.init(self,SchedulerInfo("EDF_mono",EDF_mono))defpacker(self):fortaskinself.task_list:# Affect it to the task.cpu=next(procforprocinself.processorsifproc.identifier==task.data["cpu"])self.affect_task_to_processor(task,cpu)returnTrue