コード例 #1
0
        public void RenderDefaultMultiQueueGraphTest()
        {
            var rand  = new Random(DEF_RAND_INIT);
            var tasks = TestTaskFactory.CreateMeshedCascade(rand,
                                                            DEF_TASK_COUNT, DEF_TASK_LEVELS, DEF_TASK_MIN_DEPS, DEF_TASK_MAX_DEPS,
                                                            "A", "B", "C");

            TaskGraphRenderer.DisplayGraph(tasks);
        }
コード例 #2
0
        private void RenderAfterFinish(TaskManager tm, EventMonitor <TaskManager> tmMon,
                                       TaskGraphMonitor tgMon, string fileName)
        {
            Console.WriteLine("Rendering the task graph processing animation");
            TaskGraphRenderer.RenderTaskGraphAnimation(tgMon.Tasks, tgMon,
                                                       System.IO.Path.Combine(
                                                           Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory),
                                                           fileName + ".avi"),
                                                       maxWidth: 1024, format: TaskGraphRenderer.VideoFormat.AviMjpeg, fps: 3.333f);

            tgMon.AssertTaskEventsRespectDependencies();
        }