Free cookie consent management tool by TermsFeed Policy Generator

Changeset 553


Ignore:
Timestamp:
09/11/08 21:11:24 (16 years ago)
Author:
gkronber
Message:

added a results-tab in the cedma console which contains a data chart that can be used to display histograms and scatter plots for any result value.

Location:
trunk/sources/HeuristicLab.CEDMA.Core
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Core/Console.cs

    r492 r553  
    3333  public class Console : ItemBase, IEditable {
    3434    private AgentList agentList;
     35    private ResultList resultsList;
    3536    private DatabaseOperatorLibrary operatorLibary;
    3637    private ChannelFactory<IDatabase> factory;
     
    4546    }
    4647
     48    public ResultList ResultsList {
     49      get { return resultsList; }
     50    }
     51
    4752    public IOperatorLibrary OperatorLibrary {
    4853      get { return operatorLibary; }
     
    5257      : base() {
    5358      agentList = new AgentList();
     59      resultsList = new ResultList();
    5460      operatorLibary = new DatabaseOperatorLibrary();
    5561    }
     
    8995      agentList.Database = database;
    9096      operatorLibary.Database = database;
     97
     98      ChannelFactory<IStore> storeFactory = new ChannelFactory<IStore>(binding);
     99      IStore store = storeFactory.CreateChannel(new EndpointAddress(serverUri + "/RdfStore"));
     100      resultsList.Store = store;
    91101    }
    92102    #endregion
  • trunk/sources/HeuristicLab.CEDMA.Core/ConsoleEditor.cs

    r510 r553  
    2828using System.ServiceModel;
    2929using HeuristicLab.PluginInfrastructure;
     30using HeuristicLab.Charting;
     31using System.Drawing;
     32using HeuristicLab.CEDMA.DB.Interfaces;
    3033
    3134namespace HeuristicLab.CEDMA.Core {
     
    3942    private Label projectLabel;
    4043    private Button newButton;
    41     private System.ComponentModel.IContainer components;
    4244    private Button opLibButton;
    4345    private Label label1;
     46    private TabPage resultsTabPage;
    4447    private Console console;
    4548
     
    5457      this.tabControl = new System.Windows.Forms.TabControl();
    5558      this.agentsPage = new System.Windows.Forms.TabPage();
     59      this.resultsTabPage = new System.Windows.Forms.TabPage();
    5660      this.connectButton = new System.Windows.Forms.Button();
    5761      this.comboBox1 = new System.Windows.Forms.ComboBox();
     
    8589                  | System.Windows.Forms.AnchorStyles.Right)));
    8690      this.tabControl.Controls.Add(this.agentsPage);
     91      this.tabControl.Controls.Add(this.resultsTabPage);
    8792      this.tabControl.Enabled = false;
    8893      this.tabControl.Location = new System.Drawing.Point(6, 85);
     
    101106      this.agentsPage.Text = "Agents";
    102107      this.agentsPage.UseVisualStyleBackColor = true;
     108      //
     109      // resultsTabPage
     110      //
     111      this.resultsTabPage.Location = new System.Drawing.Point(4, 22);
     112      this.resultsTabPage.Name = "resultsTabPage";
     113      this.resultsTabPage.Padding = new System.Windows.Forms.Padding(3);
     114      this.resultsTabPage.Size = new System.Drawing.Size(498, 352);
     115      this.resultsTabPage.TabIndex = 2;
     116      this.resultsTabPage.Text = "Results";
     117      this.resultsTabPage.UseVisualStyleBackColor = true;
    103118      //
    104119      // connectButton
     
    189204        agentsPage.Controls.Add((Control)console.AgentList.CreateView());
    190205        agentsPage.Controls[0].Dock = DockStyle.Fill;
     206        resultsTabPage.Controls.Clear();
     207        resultsTabPage.Controls.Add((Control)console.ResultsList.CreateView());
     208        resultsTabPage.Controls[0].Dock = DockStyle.Fill;
    191209        opLibButton.Enabled = true;
    192210        opLibButton.Enabled = true;
  • trunk/sources/HeuristicLab.CEDMA.Core/HeuristicLab.CEDMA.Core.csproj

    r514 r553  
    3333    <WarningLevel>4</WarningLevel>
    3434  </PropertyGroup>
     35  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     36    <DebugSymbols>true</DebugSymbols>
     37    <OutputPath>bin\Debug\</OutputPath>
     38    <DefineConstants>DEBUG;TRACE</DefineConstants>
     39    <DebugType>full</DebugType>
     40    <PlatformTarget>x86</PlatformTarget>
     41    <ErrorReport>prompt</ErrorReport>
     42  </PropertyGroup>
     43  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
     44    <OutputPath>bin\x86\Release\</OutputPath>
     45    <DefineConstants>TRACE</DefineConstants>
     46    <Optimize>true</Optimize>
     47    <DebugType>pdbonly</DebugType>
     48    <PlatformTarget>x86</PlatformTarget>
     49    <ErrorReport>prompt</ErrorReport>
     50  </PropertyGroup>
    3551  <ItemGroup>
     52    <Reference Include="HeuristicLab.Charting, Version=3.0.0.91, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     53      <SpecificVersion>False</SpecificVersion>
     54      <HintPath>..\HeuristicLab.Charting\bin\Debug\HeuristicLab.Charting.dll</HintPath>
     55    </Reference>
    3656    <Reference Include="System" />
    3757    <Reference Include="System.Core">
     
    6282      <SubType>UserControl</SubType>
    6383    </Compile>
     84    <Compile Include="Histogram.cs" />
     85    <Compile Include="ResultList.cs" />
    6486    <Compile Include="ResultTable.cs" />
    6587    <Compile Include="ResultExporter.cs" />
     
    92114      <DependentUpon>AgentView.cs</DependentUpon>
    93115    </Compile>
     116    <Compile Include="ResultListView.cs">
     117      <SubType>UserControl</SubType>
     118    </Compile>
     119    <Compile Include="ResultListView.Designer.cs">
     120      <DependentUpon>ResultListView.cs</DependentUpon>
     121    </Compile>
    94122  </ItemGroup>
    95123  <ItemGroup>
     
    100128      <Project>{4F9BB789-D561-436B-B226-2BF44B7D0804}</Project>
    101129      <Name>HeuristicLab.CEDMA.DB.Interfaces</Name>
     130    </ProjectReference>
     131    <ProjectReference Include="..\HeuristicLab.Charting.Data\HeuristicLab.Charting.Data.csproj">
     132      <Project>{E0740131-AA3E-4A3F-BA03-C9FF8327F4EE}</Project>
     133      <Name>HeuristicLab.Charting.Data</Name>
    102134    </ProjectReference>
    103135    <ProjectReference Include="..\HeuristicLab.Core\HeuristicLab.Core.csproj">
     
    131163      <SubType>Designer</SubType>
    132164    </EmbeddedResource>
     165    <EmbeddedResource Include="ResultListView.resx">
     166      <DependentUpon>ResultListView.cs</DependentUpon>
     167      <SubType>Designer</SubType>
     168    </EmbeddedResource>
    133169  </ItemGroup>
    134170  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset for help on using the changeset viewer.