this.taskContext = new TaskGankerContext(
this.buildSupervisorToWorker(workers),
Common.buildSpoutOutoputAndBoltInputMap(context));
this.componentSelector = new ComponentNumSelector(taskContext);
this.inputComponentSelector = new InputComponentNumSelector(taskContext);
this.totalTaskNumSelector = new TotalTaskNumSelector(taskContext);
if (tasks.size() == 0)
return;
this.setTaskNum();
}