TROIA-282 Scheduler algorythmic part