Ejemplo n.º 1
0
 def test_schedule_with_earliest_start_Case21(self):
     self.assertEqual(TaskBlock(time820, time920, task13, 2), 
         schedule_with_earliest_start(task13, time8, start, end, 
                                      [block_8_815, block_925_935], zero, five))
     self.assertEqual(TaskBlock(time820, time920, task13, 1), 
         schedule_with_earliest_start(task13, time8, start, end, 
                                      [block_8_815, block_nextday_10_11], zero, five))
Ejemplo n.º 2
0
 def test_schedule_with_earliest_start_Case1(self):
     self.assertEqual(TaskBlock(time8, time9, task1, 2),
         schedule_with_earliest_start(task1, time8, start, end, [], zero, zero))
     self.assertEqual(TaskBlock(time8, time9, task11, 2), 
         schedule_with_earliest_start(task11, time8, start, end, [block_905_935], zero, five))
     self.assertEqual(TaskBlock(time835, time935, task12, 2), 
         schedule_with_earliest_start(task12, time8, start, end, [block_8_830], zero, five))
     # case where release time is not during working hours
     self.assertEqual(TaskBlock(time630, time750, task4, 3), 
         schedule_with_earliest_start(task4, time0, start, end, [], zero, five))
Ejemplo n.º 3
0
 def test_schedule_with_earliest_start_Case32(self):
     self.assertEqual(TaskBlock(time_nextday630, time_nextday730, task22, 2), 
         schedule_with_earliest_start(task22, time8, start, end, [block_830_1930], zero, five))
Ejemplo n.º 4
0
 def test_schedule_with_earliest_start_Case31(self):
     self.assertEqual(TaskBlock(time_nextday10, time_nextday11, task21, 2), 
         schedule_with_earliest_start(task21, time8, start, end, 
                                      [block_830_1930, block_nextday_630_955], zero, five))