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); }
public CompletionViewNode <T> CreateViewTree(CompletionNode node) { return(ViewNodeFactory.CreateCompletionNode(node)); }
protected void CompleteBranch() { RepresentingNode = new CompletionNode(); }
internal CompletionViewNode <T> CreateCompletionNode(CompletionNode node) { var nodeView = ViewFactory.GetView(node); return(new CompletionViewNode <T>(nodeView)); }