Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/10 15:31:15 (14 years ago)
Author:
cneumuel
Message:
  • reorganized HiveExperiment code
  • disabled snapshot-functionality... this needs more refactoring serverside
  • added short documentation which explains how to use hive
  • some minor changes
Location:
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/HiveExperimentView.Designer.cs

    r4144 r4173  
    5454      this.hiveStatusTabPage = new System.Windows.Forms.TabPage();
    5555      this.jobListView = new HeuristicLab.Hive.Experiment.Views.JobItemListView();
     56      this.runsTabPage = new System.Windows.Forms.TabPage();
     57      this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView();
    5658      this.logTabPage = new System.Windows.Forms.TabPage();
    5759      this.logView = new HeuristicLab.Core.Views.LogView();
     
    6870      this.disconnectButton = new System.Windows.Forms.Button();
    6971      this.reconnectButton = new System.Windows.Forms.Button();
    70       this.runsTabPage = new System.Windows.Forms.TabPage();
    71       this.runCollectionView = new HeuristicLab.Optimization.Views.RunCollectionView();
    7272      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    7373      this.tabControl.SuspendLayout();
    7474      this.experimentTabPage.SuspendLayout();
    7575      this.hiveStatusTabPage.SuspendLayout();
     76      this.runsTabPage.SuspendLayout();
    7677      this.logTabPage.SuspendLayout();
    77       this.runsTabPage.SuspendLayout();
    7878      this.SuspendLayout();
    7979      //
     
    187187      this.jobListView.TabIndex = 0;
    188188      //
     189      // runsTabPage
     190      //
     191      this.runsTabPage.Controls.Add(this.runCollectionView);
     192      this.runsTabPage.Location = new System.Drawing.Point(4, 22);
     193      this.runsTabPage.Name = "runsTabPage";
     194      this.runsTabPage.Size = new System.Drawing.Size(727, 369);
     195      this.runsTabPage.TabIndex = 4;
     196      this.runsTabPage.Text = "Runs";
     197      this.runsTabPage.UseVisualStyleBackColor = true;
     198      //
     199      // runCollectionView
     200      //
     201      this.runCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     202                  | System.Windows.Forms.AnchorStyles.Left)
     203                  | System.Windows.Forms.AnchorStyles.Right)));
     204      this.runCollectionView.Caption = "RunCollection View";
     205      this.runCollectionView.Content = null;
     206      this.runCollectionView.Location = new System.Drawing.Point(0, 3);
     207      this.runCollectionView.Name = "runCollectionView";
     208      this.runCollectionView.ReadOnly = false;
     209      this.runCollectionView.Size = new System.Drawing.Size(727, 366);
     210      this.runCollectionView.TabIndex = 0;
     211      //
    189212      // logTabPage
    190213      //
     
    322345      this.disconnectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    323346      this.disconnectButton.Enabled = false;
    324       this.disconnectButton.Image = ((System.Drawing.Image)(resources.GetObject("disconnectButton.Image")));
    325       this.disconnectButton.Location = new System.Drawing.Point(120, 500);
     347      this.disconnectButton.Location = new System.Drawing.Point(131, 500);
    326348      this.disconnectButton.Name = "disconnectButton";
    327       this.disconnectButton.Size = new System.Drawing.Size(24, 24);
     349      this.disconnectButton.Size = new System.Drawing.Size(120, 24);
    328350      this.disconnectButton.TabIndex = 15;
     351      this.disconnectButton.Text = "Disconnect from Hive";
    329352      this.toolTip.SetToolTip(this.disconnectButton, "Disconnect from Hive (Jobs will be continue to be calculated)");
    330353      this.disconnectButton.UseVisualStyleBackColor = true;
     
    335358      this.reconnectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    336359      this.reconnectButton.Enabled = false;
    337       this.reconnectButton.Image = ((System.Drawing.Image)(resources.GetObject("reconnectButton.Image")));
    338       this.reconnectButton.Location = new System.Drawing.Point(150, 500);
     360      this.reconnectButton.Location = new System.Drawing.Point(257, 500);
    339361      this.reconnectButton.Name = "reconnectButton";
    340       this.reconnectButton.Size = new System.Drawing.Size(24, 24);
     362      this.reconnectButton.Size = new System.Drawing.Size(77, 24);
    341363      this.reconnectButton.TabIndex = 16;
     364      this.reconnectButton.Text = "Reconnect";
    342365      this.toolTip.SetToolTip(this.reconnectButton, "Reconnect to Hive");
    343366      this.reconnectButton.UseVisualStyleBackColor = true;
    344367      this.reconnectButton.Click += new System.EventHandler(this.reconnectButton_Click);
    345368      //
    346       // runsTabPage
    347       //
    348       this.runsTabPage.Controls.Add(this.runCollectionView);
    349       this.runsTabPage.Location = new System.Drawing.Point(4, 22);
    350       this.runsTabPage.Name = "runsTabPage";
    351       this.runsTabPage.Size = new System.Drawing.Size(727, 369);
    352       this.runsTabPage.TabIndex = 4;
    353       this.runsTabPage.Text = "Runs";
    354       this.runsTabPage.UseVisualStyleBackColor = true;
    355       //
    356       // runCollectionView
    357       //
    358       this.runCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    359                   | System.Windows.Forms.AnchorStyles.Left)
    360                   | System.Windows.Forms.AnchorStyles.Right)));
    361       this.runCollectionView.Caption = "RunCollection View";
    362       this.runCollectionView.Content = null;
    363       this.runCollectionView.Location = new System.Drawing.Point(0, 3);
    364       this.runCollectionView.Name = "runCollectionView";
    365       this.runCollectionView.ReadOnly = false;
    366       this.runCollectionView.Size = new System.Drawing.Size(727, 366);
    367       this.runCollectionView.TabIndex = 0;
    368       //
    369369      // HiveExperimentView
    370370      //
    371371      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    372372      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    373       this.Controls.Add(this.reconnectButton);
    374       this.Controls.Add(this.disconnectButton);
    375373      this.Controls.Add(this.resourceIdsTextBox);
    376374      this.Controls.Add(this.serverUrlTextBox);
    377375      this.Controls.Add(this.resourceIdsLabel);
    378376      this.Controls.Add(this.tabControl);
     377      this.Controls.Add(this.disconnectButton);
    379378      this.Controls.Add(this.startButton);
    380379      this.Controls.Add(this.executionTimeTextBox);
     
    384383      this.Controls.Add(this.stopButton);
    385384      this.Controls.Add(this.resetButton);
     385      this.Controls.Add(this.reconnectButton);
    386386      this.Name = "HiveExperimentView";
    387387      this.Size = new System.Drawing.Size(735, 524);
     388      this.Controls.SetChildIndex(this.reconnectButton, 0);
    388389      this.Controls.SetChildIndex(this.resetButton, 0);
    389390      this.Controls.SetChildIndex(this.stopButton, 0);
     
    393394      this.Controls.SetChildIndex(this.executionTimeTextBox, 0);
    394395      this.Controls.SetChildIndex(this.startButton, 0);
     396      this.Controls.SetChildIndex(this.disconnectButton, 0);
    395397      this.Controls.SetChildIndex(this.tabControl, 0);
    396398      this.Controls.SetChildIndex(this.resourceIdsLabel, 0);
    397399      this.Controls.SetChildIndex(this.serverUrlTextBox, 0);
    398400      this.Controls.SetChildIndex(this.resourceIdsTextBox, 0);
    399       this.Controls.SetChildIndex(this.disconnectButton, 0);
    400       this.Controls.SetChildIndex(this.reconnectButton, 0);
    401401      this.Controls.SetChildIndex(this.nameLabel, 0);
    402402      this.Controls.SetChildIndex(this.descriptionLabel, 0);
     
    407407      this.experimentTabPage.ResumeLayout(false);
    408408      this.hiveStatusTabPage.ResumeLayout(false);
     409      this.runsTabPage.ResumeLayout(false);
    409410      this.logTabPage.ResumeLayout(false);
    410       this.runsTabPage.ResumeLayout(false);
    411411      this.ResumeLayout(false);
    412412      this.PerformLayout();
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/HiveExperimentView.resx

    r4144 r4173  
    128128    <value>
    129129        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    130         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDQAA
    131         Cw0B7QfALAAAAn9JREFUOE+lk2tI01EYxhf0oU8WqVEIRpaIBWJgSPUhROmippS3QkkTylsXDMW8ts3b
     130        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDAAA
     131        CwwBP0AiyAAAAn9JREFUOE+lk2tI01EYxhf0oU8WqVEIRpaIBWJgSPUhROmippS3QkkTylsXDMW8ts3b
    132132        1G06daVibuqaOq0sxbBCKBSJ0PJCialZUFSKqaGSt1//TbIsww8deOBwznl+5zkv71kHiP5rGAFrKb1Q
    133133        5ypR6bmaVU6m2kCiXJv007Om2XgwJEaNT4QiyDi/GF9mKRVgsWkav+CYQkR1utwAQfypphqZ4l/JIhOL
     
    146146    <value>
    147147        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    148         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDQAA
    149         Cw0B7QfALAAAAaJJREFUOE+Nkk1LAkEYx5egU9Sla9AX6NKhLlH3IujSoXtBn0EI+gB5qVBIKyIMtEDo
     148        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDAAA
     149        CwwBP0AiyAAAAaJJREFUOE+Nkk1LAkEYx5egU9Sla9AX6NKhLlH3IujSoXtBn0EI+gB5qVBIKyIMtEDo
    150150        BUIhK6qDSUj4gqYloilmvqa5rrr/Zlx3dkU0B/48z87O/zfzPDMcAE7SOg8sB2AkqYdIXIoAK4LyX17X
    151151        HiVzYPhC0NBUB1yR6Jfy5lx59rQXRAKEhl6Y4YhMnXOSmUDywRlYHV5YbG6YLp1UW2pgEyBoSdARbdNP
     
    160160    <value>
    161161        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    162         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAgAA
    163         CwIBm8luNgAAALZJREFUOE9j/P//PwNFAGQAOi7bn+2GTRybGIZmkKKEGRH/iTUEpwGWZfpEGYLVgKgp
     162        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAQAA
     163        CwEBNnBPWwAAALZJREFUOE9j/P//PwNFAGQAOi7bn+2GTRybGIZmkKKEGRH/iTUEpwGWZfpEGYLVgKgp
    164164        Qf833Fr8nxhDsBoQPMEbZDtRhmA1wKfLGWwACEctCsDrEqwGODZb/M/YEAvWbNus/1+nWOG/RBo3iFZD
    165165        jwmsBpjX6KFo5k9gwaoZnIawxa1eqTLcZnyacRqgki8FdjYhzTgNkM4QJEozTgNEkjlx+pmoQMQW2rjy
     
    170170    <value>
    171171        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    172         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAgAA
    173         CwIBm8luNgAAAXJJREFUOE+tkj1IQmEYhWsoaIi2xmhpiYSgKFoiCMLJJYSEJiEI0mgIyqjA6vaLUKIU
     172        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAQAA
     173        CwEBNnBPWwAAAXJJREFUOE+tkj1IQmEYhWsoaIi2xmhpiYSgKFoiCMLJJYSEJiEI0mgIyqjA6vaLUKIU
    174174        iZlJKKUoWEbZDzVYCYlQYVxcNDIoRND8ud7idD83C27g7YNvPM8573nfcgBlgh4BCPmCxIX0Qtx/ATTu
    175175        Lyy78ph3ZKC2pTBlSWB86w2jhleMrD9jWB9N/jQsSkDEj5FPPERZ+J7yOL5j4PYzsPsYGL1piKR7nL64
     
    183183    <value>
    184184        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    185         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAgAA
    186         CwIBm8luNgAAAYNJREFUOE9j/P//PwNFAGQAJZgizWDXI9veu/nvfxhuW/vtf+OKz/9rF7//XzHv1f+S
     185        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAQAA
     186        CwEBNnBPWwAAAYNJREFUOE9j/P//PwNFAGQAJZgizWDXI9veu/nvfxhuW/vtf+OKz/9rF7//XzHv1f+S
    187187        2c//F0x//L901mOgFoSrUQzo2vDr/6aT3/6vPPTl/4I9n/5ffvDzf+/ad/+bl74BG5I3/cV/3dBVuA0A
    188188        2bri4Jf/83Z9+n/ryS+Qwv8NS978L5378n/O1Of/k3qf/Vf1W4TbAJCT5+z49P/hyx9gzSBQMvvl/6wp
     
    196196    <value>
    197197        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    198         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAgAA
    199         CwIBm8luNgAAAMZJREFUOE9j/P//PwNFAGQAJZgizWDXU2I7VgN6N//937Xh1/+8qY8+gRSg89EtxHAB
    200         SPPVh3/+64auAqr9z4DOJ2hA29pv/289/f1f1W8R2AB0PkEDGld8/n/54e//cm6zwAag8wkaULv4/f8T
    201         13//F7ObBDYAnU/QgIp5r/7vvvDzP79ZN9gAdD5BA0pmP/+//uTP/5wGrWAD0PkEDSiY/vj/gj2f/7Pq
    202         NIINQOcTNAAU/2y6TXAD0PkEDSA1ZVI/KZPqAgBmE8VVB/UQsAAAAABJRU5ErkJggg==
    203 </value>
    204   </data>
    205   <data name="disconnectButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    206     <value>
    207         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    208198        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAQAA
    209199        CwEBNnBPWwAAAMZJREFUOE9j/P//PwNFAGQAJZgizWDXU2I7VgN6N//937Xh1/+8qY8+gRSg89EtxHAB
     
    213203</value>
    214204  </data>
    215   <data name="reconnectButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    216     <value>
    217         iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    218         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALAAAA
    219         CwAB5DetvwAAAMZJREFUOE9j/P//PwNFAGQAJZgizWDXU2I7VgN6N//937Xh1/+8qY8+gRSg89EtxHAB
    220         SPPVh3/+64auAqr9z4DOJ2hA29pv/289/f1f1W8R2AB0PkEDGld8/n/54e//cm6zwAag8wkaULv4/f8T
    221         13//F7ObBDYAnU/QgIp5r/7vvvDzP79ZN9gAdD5BA0pmP/+//uTP/5wGrWAD0PkEDSiY/vj/gj2f/7Pq
    222         NIINQOcTNAAU/2y6TXAD0PkEDSA1ZVI/KZPqAgBmE8VVB/UQsAAAAABJRU5ErkJggg==
    223 </value>
    224   </data>
    225205</root>
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/JobItemView.Designer.cs

    r4170 r4173  
    262262      this.snapshotGroupBox.TabStop = false;
    263263      this.snapshotGroupBox.Text = "Latest Snapshot";
     264      this.snapshotGroupBox.Visible = false;
    264265      //
    265266      // requestSnapshotButton
     
    433434      this.logTabPage.Name = "logTabPage";
    434435      this.logTabPage.Padding = new System.Windows.Forms.Padding(3);
    435       this.logTabPage.Size = new System.Drawing.Size(545, 453);
     436      this.logTabPage.Size = new System.Drawing.Size(619, 492);
    436437      this.logTabPage.TabIndex = 1;
    437438      this.logTabPage.Text = "Log";
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/JobItemView.cs

    r4170 r4173  
    102102
    103103    protected override void SetEnabledStateOfControls() {
    104       base.SetEnabledStateOfControls();
    105       if (Content != null) {
    106         openSnapshotButton.Enabled = Content.LatestSnapshot != null && Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
    107         requestSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     104      if (InvokeRequired) {
     105        this.InvokeIfRequired(c => { SetEnabledStateOfControls(); });
     106      } else {
     107        base.SetEnabledStateOfControls();
     108        if (Content != null) {
     109          openSnapshotButton.Enabled = Content.LatestSnapshot != null && Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     110          requestSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     111        }
     112        this.jobIdTextBox.ReadOnly = this.ReadOnly;
     113        this.stateTextBox.ReadOnly = this.ReadOnly;
     114        this.userIdTextBox.ReadOnly = this.ReadOnly;
     115        this.percentageTextBox.ReadOnly = this.ReadOnly;
     116        this.dateCreatedTextBox.ReadOnly = this.ReadOnly;
     117        this.dateCalculatedText.ReadOnly = this.ReadOnly;
     118        this.dateFinishedTextBox.ReadOnly = this.ReadOnly;
     119        this.priorityTextBox.ReadOnly = this.ReadOnly;
     120        this.coresNeededTextBox.ReadOnly = this.ReadOnly;
     121        this.memoryNeededTextBox.ReadOnly = this.ReadOnly;
     122        this.exceptionTextBox.ReadOnly = this.ReadOnly;
     123        this.projectTextBox.ReadOnly = this.ReadOnly;
     124        this.snapshotStatusText.ReadOnly = this.ReadOnly;
     125        this.snapshotTimeText.ReadOnly = this.ReadOnly;
    108126      }
    109       this.jobIdTextBox.ReadOnly = this.ReadOnly;
    110       this.stateTextBox.ReadOnly = this.ReadOnly;
    111       this.userIdTextBox.ReadOnly = this.ReadOnly;
    112       this.percentageTextBox.ReadOnly = this.ReadOnly;
    113       this.dateCreatedTextBox.ReadOnly = this.ReadOnly;
    114       this.dateCalculatedText.ReadOnly = this.ReadOnly;
    115       this.dateFinishedTextBox.ReadOnly = this.ReadOnly;
    116       this.priorityTextBox.ReadOnly = this.ReadOnly;
    117       this.coresNeededTextBox.ReadOnly = this.ReadOnly;
    118       this.memoryNeededTextBox.ReadOnly = this.ReadOnly;
    119       this.exceptionTextBox.ReadOnly = this.ReadOnly;
    120       this.projectTextBox.ReadOnly = this.ReadOnly;
    121       this.snapshotStatusText.ReadOnly = this.ReadOnly;
    122       this.snapshotTimeText.ReadOnly = this.ReadOnly;
    123127    }
    124128
Note: See TracChangeset for help on using the changeset viewer.