예제 #1
0
def qpa_split_off_chunk(partition, task_to_split):
    ts = schedcat.sched.get_native_taskset(partition)
    max_wcet = native.qpa_get_max_C_equal_D_cost(ts, task_to_split.cost,
                                                 task_to_split.period)
    return max_wcet
예제 #2
0
파일: apa.py 프로젝트: RSpliet/schedcat
 def test_qpa_get_max_C_equal_D_cost_4(self):
     ts = sched.get_native_taskset(self.ts4)
     max_wcet = native.qpa_get_max_C_equal_D_cost(
         ts, 21, 30)
     self.assertEqual(max_wcet, 16)
예제 #3
0
파일: apa.py 프로젝트: RSpliet/schedcat
def qpa_split_off_chunk(partition, task_to_split):
    ts = schedcat.sched.get_native_taskset(partition)
    max_wcet = native.qpa_get_max_C_equal_D_cost(
            ts, task_to_split.cost, task_to_split.period)
    return max_wcet
예제 #4
0
파일: apa.py 프로젝트: RSpliet/schedcat
 def test_qpa_get_max_C_equal_D_cost_3(self):
     ts = sched.get_native_taskset(self.ts3)
     max_wcet = native.qpa_get_max_C_equal_D_cost(
         ts, 6, 12)
     self.assertEqual(max_wcet, 1)
예제 #5
0
파일: apa.py 프로젝트: RSpliet/schedcat
 def test_qpa_get_max_C_equal_D_cost_1(self):
     ts = sched.get_native_taskset(self.ts1[:1])
     max_wcet = native.qpa_get_max_C_equal_D_cost(
         ts, self.ts1[1].cost, self.ts1[1].period)
     self.assertEqual(max_wcet, 34)
예제 #6
0
 def test_qpa_get_max_C_equal_D_cost_4(self):
     ts = sched.get_native_taskset(self.ts4)
     max_wcet = native.qpa_get_max_C_equal_D_cost(ts, 21, 30)
     self.assertEqual(max_wcet, 16)
예제 #7
0
 def test_qpa_get_max_C_equal_D_cost_3(self):
     ts = sched.get_native_taskset(self.ts3)
     max_wcet = native.qpa_get_max_C_equal_D_cost(ts, 6, 12)
     self.assertEqual(max_wcet, 1)
예제 #8
0
 def test_qpa_get_max_C_equal_D_cost_1(self):
     ts = sched.get_native_taskset(self.ts1[:1])
     max_wcet = native.qpa_get_max_C_equal_D_cost(ts, self.ts1[1].cost,
                                                  self.ts1[1].period)
     self.assertEqual(max_wcet, 34)