Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/15 10:35:04 (9 years ago)
Author:
mkommend
Message:

#2521: Intermediate version of schedule encoding refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding.Views/3.3/ScheduleView.cs

    r12012 r13435  
    6767    private void RedrawGanttChart(Schedule content) {
    6868      ResetGanttChart();
    69       int resCount = 0;
    70       Random random = new Random(1);
    71       foreach (Resource r in content.Resources) {
    72         foreach (ScheduledTask t in content.Resources[resCount].Tasks) {
    73           int categoryNr = 0;
    74           string toolTip = "Task#" + t.TaskNr;
    75           string categoryName = "ScheduleTasks";
    76           if (t is ScheduledTask) {
    77             categoryNr = ((ScheduledTask)t).JobNr;
    78             categoryName = "Job" + categoryNr;
    79             toolTip = categoryName + " - " + toolTip;
    80           }
    81           ganttChart.AddData("Resource" + r.Index,
     69      foreach (Resource resource in content.Resources) {
     70        foreach (ScheduledTask task in resource.Tasks) {
     71          int categoryNr = task.JobNr;
     72          string categoryName = "Job" + categoryNr;
     73          string toolTip = categoryName + " - " + "Task#" + task.TaskNr;
     74
     75          ganttChart.AddData("Resource" + resource.Index,
    8276            categoryNr,
    83             t.TaskNr,
    84             t.StartTime,
    85             t.EndTime,
     77            task.TaskNr,
     78            task.StartTime,
     79            task.EndTime,
    8680            toolTip);
    8781        }
    88         resCount++;
    8982      }
    90     }
    91 
    92     private void RefreshChartInformations(Schedule content) {
    93 
    9483    }
    9584
Note: See TracChangeset for help on using the changeset viewer.