示例#1
0
        // 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);
            }
        }
示例#2
0
 public void AddChildTask(string name, WithTasking task, double period)
 {
     this.task_manager.AddChildTask(name, task, period, this);
 }
示例#3
0
 public void AddParallelTask(string name, WithTasking task, double period)
 {
     this.task_manager.AddParallelTask(name, task, period);
 }
示例#4
0
 // 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);
 }