Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/10 03:14:37 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on engines and algorithms
Location:
trunk/sources/HeuristicLab.Algorithms.SGA/3.3/Tests
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.SGA/3.3/Tests

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • trunk/sources/HeuristicLab.Algorithms.SGA/3.3/Tests/HeuristicLab.Algorithms.SGA-3.3.Tests.csproj

    r2906 r2916  
    114114      <Name>HeuristicLab.Operators-3.3</Name>
    115115    </ProjectReference>
     116    <ProjectReference Include="..\..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
     117      <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
     118      <Name>HeuristicLab.Optimization-3.3</Name>
     119    </ProjectReference>
    116120    <ProjectReference Include="..\..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    117121      <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>
     
    152156  </ItemGroup>
    153157  <ItemGroup>
    154     <None Include="SGAEngine.hl">
     158    <None Include="SGA.hl">
    155159      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    156160    </None>
  • trunk/sources/HeuristicLab.Algorithms.SGA/3.3/Tests/UnitTest.cs

    r2884 r2916  
    1 using System;
    2 using System.Diagnostics;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    323using System.Threading;
    4 using HeuristicLab.Core;
     24using HeuristicLab.Optimization;
    525using HeuristicLab.Persistence.Default.Xml;
    626using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    5878
    5979    [TestMethod]
    60     [DeploymentItem(@"SGAEngine.hl")]
     80    [DeploymentItem(@"SGA.hl")]
    6181    public void SGAPerformanceTest() {
    62       IEngine engine = (IEngine)XmlParser.Deserialize("SGAEngine.hl");
    63       engine.Stopped += new EventHandler(engine_Stopped);
    64       engine.Prepare();
    65       engine.Start();
     82      IAlgorithm sga = (IAlgorithm)XmlParser.Deserialize("SGA.hl");
     83      sga.Stopped += new EventHandler(sga_Stopped);
     84      sga.Prepare();
     85      sga.Start();
    6686      trigger.WaitOne();
    67       TestContext.WriteLine("Runtime: {0}", engine.ExecutionTime.ToString());
     87      TestContext.WriteLine("Runtime: {0}", sga.ExecutionTime.ToString());
    6888    }
    6989
    70     private void engine_Stopped(object sender, EventArgs e) {
     90    private void sga_Stopped(object sender, EventArgs e) {
    7191      trigger.Set();
    7292    }
Note: See TracChangeset for help on using the changeset viewer.