Encog.App.Analyst.Script.AnalystScript.GetTask C# (CSharp) Method

GetTask() public method

Get the specified task.
public GetTask ( String name ) : AnalystTask
name String The name of the testk.
return Encog.App.Analyst.Script.Task.AnalystTask
        public AnalystTask GetTask(String name)
        {
            if (!_tasks.ContainsKey(name))
            {
                return null;
            }
            return _tasks[name];
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Save the tasks.
        /// </summary>
        ///
        /// <param name="xout">The output file.</param>
        private void SaveTasks(EncogWriteHelper xout)
        {
            xout.AddSection("TASKS");
            var list = _script.Tasks.Keys.ToList();

            list.Sort();

            foreach (String key  in  list)
            {
                AnalystTask task = _script.GetTask(key);
                xout.AddSubSection(task.Name);

                foreach (String line  in  task.Lines)
                {
                    xout.AddLine(line);
                }
            }
        }