Free cookie consent management tool by TermsFeed Policy Generator

Changeset 283


Ignore:
Timestamp:
06/02/08 11:23:03 (16 years ago)
Author:
gkronber
Message:
  • added a more generic logging operator that allows to specify which variable to read from the sub-scopes and log.
  • changed LogView to display entries by calling .ToString() instead of the hard-coded cast to DoubleArrayData.
Location:
trunk/sources/HeuristicLab.Logging
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Logging/HeuristicLab.Logging.csproj

    r30 r283  
    4646  <ItemGroup>
    4747    <Compile Include="BestAverageWorstQualityCalculator.cs" />
     48    <Compile Include="Logger.cs" />
    4849    <Compile Include="Linechart.cs" />
    4950    <Compile Include="HeuristicLabLoggingPlugin.cs" />
  • trunk/sources/HeuristicLab.Logging/LogView.Designer.cs

    r2 r283  
    5858      this.qualityLogTextBox.Name = "qualityLogTextBox";
    5959      this.qualityLogTextBox.ReadOnly = true;
    60       this.qualityLogTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     60      this.qualityLogTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
    6161      this.qualityLogTextBox.Size = new System.Drawing.Size(150, 150);
    6262      this.qualityLogTextBox.TabIndex = 0;
     63      this.qualityLogTextBox.WordWrap = false;
    6364      //
    64       // QualityLogDataView
     65      // LogView
    6566      //
    6667      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    6768      this.Controls.Add(this.qualityLogTextBox);
    68       this.Name = "QualityLogDataView";
     69      this.Name = "LogView";
    6970      this.ResumeLayout(false);
    7071      this.PerformLayout();
  • trunk/sources/HeuristicLab.Logging/LogView.cs

    r2 r283  
    6969        string[] lines = new string[Log.Items.Count];
    7070        for (int i = 0; i < Log.Items.Count; i++) {
    71           double[] values = ((DoubleArrayData)Log.Items[i]).Data;
    72           lines[i] = values[0].ToString() + "     " +
    73                      values[1].ToString() + "     " +
    74                      values[2].ToString();
     71          lines[i] = Log.Items[i].ToString().Replace(';','\t');
    7572        }
    7673        qualityLogTextBox.Lines = lines;
     
    104101        Array.Copy(qualityLogTextBox.Lines, 0, lines, 0, index);
    105102        Array.Copy(qualityLogTextBox.Lines, index, lines, index + 1, qualityLogTextBox.Lines.Length - index);
    106         double[] values = ((DoubleArrayData)Log.Items[index]).Data;
    107         lines[index] = values[0].ToString() + "     " +
    108                        values[1].ToString() + "     " +
    109                        values[2].ToString();
     103        lines[index] = Log.Items[index].ToString().Replace(';', '\t');
    110104        qualityLogTextBox.Lines = lines;
    111105      }
Note: See TracChangeset for help on using the changeset viewer.