// METHODS FOR ITaskManager_Tasking ------------------------------------------------ public void AddChildTask(string name, WithTasking with_task, double period, PiagetTask parent) { ((ITaskingManagement)with_task).NewTask(name, period, this.clock, (ITaskPoolManager)this); // If the user use the same task state to add several child tasks, // only the first one added will be the top one if (parent == task_pool.Current.task) { MoveToChildTask(((ITaskingManagement)with_task).Task, parent); } }
public void AddChildTask(string name, WithTasking task, double period) { this.task_manager.AddChildTask(name, task, period, this); }
public void AddParallelTask(string name, WithTasking task, double period) { this.task_manager.AddParallelTask(name, task, period); }
// METHODS FOR ITaskManager_Launcher, ITaskManager_Tasking ------------------------------------------------ public void AddParallelTask(string name, WithTasking with_task, double period) { ((ITaskingManagement)with_task).NewTask(name, period, this.clock, (ITaskPoolManager)this); this.task_pool.Add(((ITaskingManagement)with_task).Task); }