Search in sources :

Example 1 with Task

use of edu.iu.dsc.tws.tsched.utils.Task in project twister2 by DSC-SPIDAL.

the class TaskScheduling method schedule.

public void schedule() {
    System.out.println("I am inside init method");
    Job job = new Job();
    job.setJob(job);
    Task[] taskList = new Task[4];
    RoundRobinTaskScheduling roundRobinTaskScheduling = new RoundRobinTaskScheduling();
    // Config config = null;
    // roundRobinTaskScheduling.initialize(config, job);
    roundRobinTaskScheduling.initialize(job);
    TaskSchedulePlan taskSchedulePlan = roundRobinTaskScheduling.tschedule();
}
Also used : TaskSchedulePlan(edu.iu.dsc.tws.tsched.spi.taskschedule.TaskSchedulePlan) Task(edu.iu.dsc.tws.tsched.utils.Task) Job(edu.iu.dsc.tws.tsched.utils.Job)

Aggregations

TaskSchedulePlan (edu.iu.dsc.tws.tsched.spi.taskschedule.TaskSchedulePlan)1 Job (edu.iu.dsc.tws.tsched.utils.Job)1 Task (edu.iu.dsc.tws.tsched.utils.Task)1