Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/09/11 14:12:10 (14 years ago)
Author:
cneumuel
Message:

#1233

  • removed Job-dto objects from slave core (since it stores outdated objects)
  • added command textbox to HiveJobView
  • improved the way the control buttons behave in HiveJobView
  • improved job control (pause and stop is also possible when job is not currently calculating)
  • improved gantt chart view (last state log entry is also displayed)
  • unified code for downloading jobs between experiment manager and hive engine
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveJobView.cs

    r6033 r6168  
    124124        if (Content != null && Content.Job != null) {
    125125          this.stateTextBox.Text = Content.Job.State.ToString();
     126          this.commandTextBox.Text = Content.Job.Command.ToString();
    126127          this.executionTimeTextBox.Text = Content.Job.ExecutionTime.ToString();
    127128          this.dateFinishedTextBox.Text = Content.Job.DateFinished.ToString();
     
    137138        } else {
    138139          this.stateTextBox.Text = string.Empty;
     140          this.commandTextBox.Text = string.Empty;
    139141          this.executionTimeTextBox.Text = string.Empty;
    140142          this.dateCalculatedText.Text = string.Empty;
     
    152154      this.jobIdTextBox.ReadOnly = true;
    153155      this.stateTextBox.ReadOnly = true;
     156      this.commandTextBox.ReadOnly = true;
    154157      this.executionTimeTextBox.ReadOnly = true;
    155158      this.dateCreatedTextBox.ReadOnly = true;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/HiveJobView.designer.cs

    r6033 r6168  
    5858      this.jobIdTextBox = new System.Windows.Forms.TextBox();
    5959      this.tabControl = new System.Windows.Forms.TabControl();
     60      this.commandTextBox = new System.Windows.Forms.TextBox();
     61      this.commandLabel = new System.Windows.Forms.Label();
    6062      this.stateLogTabPage.SuspendLayout();
    6163      this.detailsTabPage.SuspendLayout();
     
    122124      //
    123125      this.splitContainer1.Panel2.Controls.Add(this.jobStatusGroupBox);
    124       this.splitContainer1.Size = new System.Drawing.Size(551, 155);
     126      this.splitContainer1.Size = new System.Drawing.Size(551, 178);
    125127      this.splitContainer1.SplitterDistance = 275;
    126128      this.splitContainer1.TabIndex = 33;
     
    139141      this.configurationGroupBox.Location = new System.Drawing.Point(0, 0);
    140142      this.configurationGroupBox.Name = "configurationGroupBox";
    141       this.configurationGroupBox.Size = new System.Drawing.Size(275, 155);
     143      this.configurationGroupBox.Size = new System.Drawing.Size(275, 178);
    142144      this.configurationGroupBox.TabIndex = 27;
    143145      this.configurationGroupBox.TabStop = false;
     
    219221      // jobStatusGroupBox
    220222      //
     223      this.jobStatusGroupBox.Controls.Add(this.commandTextBox);
     224      this.jobStatusGroupBox.Controls.Add(this.commandLabel);
    221225      this.jobStatusGroupBox.Controls.Add(this.stateTextBox);
    222226      this.jobStatusGroupBox.Controls.Add(this.dateCalculatedLabel);
     
    234238      this.jobStatusGroupBox.Location = new System.Drawing.Point(0, 0);
    235239      this.jobStatusGroupBox.Name = "jobStatusGroupBox";
    236       this.jobStatusGroupBox.Size = new System.Drawing.Size(272, 155);
     240      this.jobStatusGroupBox.Size = new System.Drawing.Size(272, 178);
    237241      this.jobStatusGroupBox.TabIndex = 24;
    238242      this.jobStatusGroupBox.TabStop = false;
     
    251255      //
    252256      this.dateCalculatedLabel.AutoSize = true;
    253       this.dateCalculatedLabel.Location = new System.Drawing.Point(7, 85);
     257      this.dateCalculatedLabel.Location = new System.Drawing.Point(7, 108);
    254258      this.dateCalculatedLabel.Name = "dateCalculatedLabel";
    255259      this.dateCalculatedLabel.Size = new System.Drawing.Size(83, 13);
     
    270274      this.dateCalculatedText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    271275                  | System.Windows.Forms.AnchorStyles.Right)));
    272       this.dateCalculatedText.Location = new System.Drawing.Point(95, 85);
     276      this.dateCalculatedText.Location = new System.Drawing.Point(95, 108);
    273277      this.dateCalculatedText.Name = "dateCalculatedText";
    274278      this.dateCalculatedText.Size = new System.Drawing.Size(171, 20);
     
    279283      this.dateFinishedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    280284                  | System.Windows.Forms.AnchorStyles.Right)));
    281       this.dateFinishedTextBox.Location = new System.Drawing.Point(95, 107);
     285      this.dateFinishedTextBox.Location = new System.Drawing.Point(95, 130);
    282286      this.dateFinishedTextBox.Name = "dateFinishedTextBox";
    283287      this.dateFinishedTextBox.Size = new System.Drawing.Size(171, 20);
     
    288292      this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    289293                  | System.Windows.Forms.AnchorStyles.Right)));
    290       this.executionTimeTextBox.Location = new System.Drawing.Point(95, 41);
     294      this.executionTimeTextBox.Location = new System.Drawing.Point(95, 64);
    291295      this.executionTimeTextBox.Name = "executionTimeTextBox";
    292296      this.executionTimeTextBox.Size = new System.Drawing.Size(171, 20);
     
    297301      this.dateCreatedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    298302                  | System.Windows.Forms.AnchorStyles.Right)));
    299       this.dateCreatedTextBox.Location = new System.Drawing.Point(95, 63);
     303      this.dateCreatedTextBox.Location = new System.Drawing.Point(95, 86);
    300304      this.dateCreatedTextBox.Name = "dateCreatedTextBox";
    301305      this.dateCreatedTextBox.Size = new System.Drawing.Size(171, 20);
     
    305309      //
    306310      this.executionTimeLabel.AutoSize = true;
    307       this.executionTimeLabel.Location = new System.Drawing.Point(7, 41);
     311      this.executionTimeLabel.Location = new System.Drawing.Point(7, 64);
    308312      this.executionTimeLabel.Name = "executionTimeLabel";
    309313      this.executionTimeLabel.Size = new System.Drawing.Size(80, 13);
     
    314318      //
    315319      this.exceptionLabel.AutoSize = true;
    316       this.exceptionLabel.Location = new System.Drawing.Point(7, 129);
     320      this.exceptionLabel.Location = new System.Drawing.Point(7, 152);
    317321      this.exceptionLabel.Name = "exceptionLabel";
    318322      this.exceptionLabel.Size = new System.Drawing.Size(57, 13);
     
    323327      //
    324328      this.dateCreatedLabel.AutoSize = true;
    325       this.dateCreatedLabel.Location = new System.Drawing.Point(7, 63);
     329      this.dateCreatedLabel.Location = new System.Drawing.Point(7, 86);
    326330      this.dateCreatedLabel.Name = "dateCreatedLabel";
    327331      this.dateCreatedLabel.Size = new System.Drawing.Size(70, 13);
     
    332336      //
    333337      this.dateFinishedLabel.AutoSize = true;
    334       this.dateFinishedLabel.Location = new System.Drawing.Point(7, 107);
     338      this.dateFinishedLabel.Location = new System.Drawing.Point(7, 130);
    335339      this.dateFinishedLabel.Name = "dateFinishedLabel";
    336340      this.dateFinishedLabel.Size = new System.Drawing.Size(72, 13);
     
    342346      this.exceptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    343347                  | System.Windows.Forms.AnchorStyles.Right)));
    344       this.exceptionTextBox.Location = new System.Drawing.Point(95, 129);
     348      this.exceptionTextBox.Location = new System.Drawing.Point(95, 152);
    345349      this.exceptionTextBox.Name = "exceptionTextBox";
    346350      this.exceptionTextBox.Size = new System.Drawing.Size(171, 20);
     
    435439      this.tabControl.Size = new System.Drawing.Size(571, 401);
    436440      this.tabControl.TabIndex = 25;
     441      //
     442      // commandTextBox
     443      //
     444      this.commandTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     445                  | System.Windows.Forms.AnchorStyles.Right)));
     446      this.commandTextBox.Location = new System.Drawing.Point(95, 41);
     447      this.commandTextBox.Name = "commandTextBox";
     448      this.commandTextBox.Size = new System.Drawing.Size(171, 20);
     449      this.commandTextBox.TabIndex = 24;
     450      //
     451      // commandLabel
     452      //
     453      this.commandLabel.AutoSize = true;
     454      this.commandLabel.Location = new System.Drawing.Point(7, 41);
     455      this.commandLabel.Name = "commandLabel";
     456      this.commandLabel.Size = new System.Drawing.Size(57, 13);
     457      this.commandLabel.TabIndex = 25;
     458      this.commandLabel.Text = "Command:";
    437459      //
    438460      // HiveJobView
     
    497519    protected System.Windows.Forms.Label dateCreatedLabel;
    498520    protected System.Windows.Forms.SplitContainer splitContainer1;
     521    protected System.Windows.Forms.TextBox commandTextBox;
     522    protected System.Windows.Forms.Label commandLabel;
    499523
    500524  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/OptimizerHiveJobView.cs

    r6033 r6168  
    5454      base.SetEnabledStateOfControls();
    5555
    56       this.restartButton.Enabled = Content != null && Content.Job.State == JobState.Paused;
    57       this.pauseButton.Enabled = Content != null && Content.Job.State == JobState.Calculating;
    58       this.stopButton.Enabled = Content != null && (Content.Job.State == JobState.Calculating || Content.Job.State == JobState.Waiting || Content.Job.State == JobState.Paused);
     56      this.restartButton.Enabled = Content != null && !Content.Job.Command.HasValue && Content.Job.State == JobState.Paused;
     57      this.pauseButton.Enabled = Content != null && !Content.Job.Command.HasValue && Content.Job.State == JobState.Calculating;
     58      this.stopButton.Enabled = Content != null && !Content.Job.Command.HasValue && (Content.Job.State == JobState.Calculating || Content.Job.State == JobState.Waiting || Content.Job.State == JobState.Paused);
    5959    }
    6060    #endregion
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/StateLogGanttChartListView.cs

    r6004 r6168  
    6464        if (Content.Count > 0) {
    6565          DateTime maxValue = Content.Max(x => x.Count > 0 ? x.Max(y => y.DateTime) : DateTime.MinValue);
    66           var upperLimit = DateTime.FromOADate(Math.Min(DateTime.Now.AddSeconds(10).ToOADate(), maxValue.AddSeconds(10).ToOADate()));
     66          DateTime upperLimit;
     67          if (Content.All(x => x.Count > 0 ? (x.Last().State == JobState.Finished || x.Last().State == JobState.Failed || x.Last().State == JobState.Aborted) : true)) {
     68            upperLimit = DateTime.FromOADate(Math.Min(DateTime.Now.AddSeconds(10).ToOADate(), maxValue.AddSeconds(10).ToOADate()));
     69          } else {
     70            upperLimit = DateTime.Now;
     71          }
    6772
    6873          for (int i = 0; i < Content.Count; i++) {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/StateLogGanttChartView.cs

    r5779 r6168  
    6262        StateLogGanttChartListView.SetupCategories(ganttChart);
    6363        if (Content.Count > 0) {
    64           var upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate()));
     64          DateTime upperLimit;
     65          if(Content.Last().State == JobState.Finished || Content.Last().State == JobState.Failed || Content.Last().State == JobState.Aborted) {
     66            upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate()));
     67          } else {
     68            upperLimit = DateTime.Now;
     69          }
    6570
    6671          for (int i = 0; i < Content.Count - 1; i++) {
Note: See TracChangeset for help on using the changeset viewer.