Esempio n. 1
0
        public List <CompletionNode> CalculateCompletionList(List <Job> schedule)
        {
            List <CompletionNode> completionList = new List <CompletionNode>();
            var scheduleClock = 0;

            foreach (var job in schedule)
            {
                scheduleClock += job.execTime;

                var delay = (scheduleClock - job.dueTime) < 0 ? 0 : (scheduleClock - job.dueTime);

                var tempCompletionNode = new CompletionNode()
                {
                    Job        = job.jobID,
                    Completion = scheduleClock,
                    Delay      = delay
                };

                completionList.Add(tempCompletionNode);
            }

            return(completionList);
        }
Esempio n. 2
0
 public CompletionViewNode <T> CreateViewTree(CompletionNode node)
 {
     return(ViewNodeFactory.CreateCompletionNode(node));
 }
Esempio n. 3
0
 protected void CompleteBranch()
 {
     RepresentingNode = new CompletionNode();
 }
Esempio n. 4
0
        internal CompletionViewNode <T> CreateCompletionNode(CompletionNode node)
        {
            var nodeView = ViewFactory.GetView(node);

            return(new CompletionViewNode <T>(nodeView));
        }