예제 #1
0
        /// <summary>
        /// Remove Task from all lists of agent
        /// </summary>
        /// <param name="pTaskToRemove"></param>
        public void RemoveTask(Task pTaskToRemove)
        {
            int position = PreferredTasks.IndexOf(pTaskToRemove);

            if (position != -1)
            {
                PreferredTasks.RemoveAt(position);
            }

            position = ImpossibleTasks.IndexOf(pTaskToRemove);
            if (position != -1)
            {
                ImpossibleTasks.RemoveAt(position);
            }
        }
예제 #2
0
 public void AddPreferredTask(Task pPreferred)
 {
     PreferredTasks.Add(pPreferred);
 }