Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/10/15 16:38:17 (10 years ago)
Author:
abeham
Message:

#2208:

  • Added missing license headers
  • Updates copyright year
  • Renamed analyzer (us spelling)
  • Removed script
  • Implemented samples unit test
  • Changed solution view to use horizontal splitting, removed viewhosts
  • Updated instance provider to use .NET45 zip compression
  • Restructuring and reformatting
Location:
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/HeuristicLab.Problems.Instances.Orienteering-3.3.csproj

    r11305 r12721  
    1010    <RootNamespace>HeuristicLab.Problems.Instances.Orienteering</RootNamespace>
    1111    <AssemblyName>HeuristicLab.Problems.Instances.Orienteering-3.3</AssemblyName>
    12     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     12    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    1313    <FileAlignment>512</FileAlignment>
     14    <TargetFrameworkProfile />
    1415  </PropertyGroup>
    1516  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     
    2122    <ErrorReport>prompt</ErrorReport>
    2223    <WarningLevel>4</WarningLevel>
     24    <Prefer32Bit>false</Prefer32Bit>
    2325  </PropertyGroup>
    2426  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     
    2931    <ErrorReport>prompt</ErrorReport>
    3032    <WarningLevel>4</WarningLevel>
     33    <Prefer32Bit>false</Prefer32Bit>
    3134  </PropertyGroup>
    3235  <PropertyGroup>
     
    3841  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    3942    <DebugSymbols>true</DebugSymbols>
    40     <OutputPath>bin\x64\Debug\</OutputPath>
     43    <OutputPath>..\..\bin\</OutputPath>
    4144    <DefineConstants>DEBUG;TRACE</DefineConstants>
    4245    <DebugType>full</DebugType>
     
    4447    <ErrorReport>prompt</ErrorReport>
    4548    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     49    <Prefer32Bit>false</Prefer32Bit>
    4650  </PropertyGroup>
    4751  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    48     <OutputPath>bin\x64\Release\</OutputPath>
     52    <OutputPath>..\..\bin\</OutputPath>
    4953    <DefineConstants>TRACE</DefineConstants>
    5054    <Optimize>true</Optimize>
     
    5357    <ErrorReport>prompt</ErrorReport>
    5458    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     59    <Prefer32Bit>false</Prefer32Bit>
    5560  </PropertyGroup>
    5661  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    5762    <DebugSymbols>true</DebugSymbols>
    58     <OutputPath>bin\x86\Debug\</OutputPath>
     63    <OutputPath>..\..\bin\</OutputPath>
    5964    <DefineConstants>DEBUG;TRACE</DefineConstants>
    6065    <DebugType>full</DebugType>
     
    6267    <ErrorReport>prompt</ErrorReport>
    6368    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     69    <Prefer32Bit>false</Prefer32Bit>
    6470  </PropertyGroup>
    6571  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    66     <OutputPath>bin\x86\Release\</OutputPath>
     72    <OutputPath>..\..\bin\</OutputPath>
    6773    <DefineConstants>TRACE</DefineConstants>
    6874    <Optimize>true</Optimize>
     
    7177    <ErrorReport>prompt</ErrorReport>
    7278    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     79    <Prefer32Bit>false</Prefer32Bit>
    7380  </PropertyGroup>
    7481  <ItemGroup>
    75     <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
    76       <SpecificVersion>False</SpecificVersion>
    77       <HintPath>..\..\HeuristicLab.PluginInfrastructure\3.3\ICSharpCode.SharpZipLib.dll</HintPath>
    78     </Reference>
    7982    <Reference Include="System" />
     83    <Reference Include="System.IO.Compression" />
    8084  </ItemGroup>
    8185  <ItemGroup>
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/Plugin.cs.frame

    r11307 r12721  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2323
    2424namespace HeuristicLab.Problems.Instances.Orienteering {
    25   [Plugin("HeuristicLab.Problems.Instances.Orienteering", "3.3.10.$WCREV$")]
     25  [Plugin("HeuristicLab.Problems.Instances.Orienteering", "3.3.11.$WCREV$")]
    2626  [PluginFile("HeuristicLab.Problems.Instances.Orienteering-3.3.dll", PluginFileType.Assembly)]
    2727  [PluginDependency("HeuristicLab.Problems.Instances", "3.3")]
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/Properties/AssemblyInfo.cs.frame

    r11258 r12721  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2727// set of attributes. Change these attribute values to modify the information
    2828// associated with an assembly.
    29 [assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Orienteering-3.3")]
     29[assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Orienteering")]
    3030[assembly: AssemblyDescription("")]
    3131[assembly: AssemblyConfiguration("")]
    3232[assembly: AssemblyCompany("HEAL")]
    3333[assembly: AssemblyProduct("HeuristicLab")]
    34 [assembly: AssemblyCopyright("(c) 2002-2014 HEAL")]
     34[assembly: AssemblyCopyright("(c) 2002-2015 HEAL")]
    3535[assembly: AssemblyTrademark("")]
    3636[assembly: AssemblyCulture("")]
     
    5454// by using the '*' as shown below:
    5555[assembly: AssemblyVersion("3.3.0.0")]
    56 [assembly: AssemblyFileVersion("3.3.10.$WCREV$")]
     56[assembly: AssemblyFileVersion("3.3.11.$WCREV$")]
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/SchildeInstanceProvider.cs

    r11323 r12721  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2323using System.Collections.Generic;
    2424using System.IO;
     25using System.IO.Compression;
    2526using System.Linq;
    2627using System.Reflection;
    2728using System.Text.RegularExpressions;
    2829using HeuristicLab.Problems.Instances.Types;
    29 using ICSharpCode.SharpZipLib.Zip;
    3030
    3131namespace HeuristicLab.Problems.Instances.Orienteering {
     
    5454      if (String.IsNullOrEmpty(instanceArchiveName)) yield break;
    5555
    56       using (var instanceStream = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {
    57         foreach (var entry in GetZipContents(instanceStream).OrderBy(x => x)) {
     56      using (var instanceStream = new ZipArchive(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {
     57        foreach (var entry in instanceStream.Entries.Select(x => x.Name).OrderBy(x => x)) {
    5858          yield return new OPDataDescriptor(Path.GetFileNameWithoutExtension(entry), GetInstanceDescription(), entry);
    5959        }
     
    6464      var instanceArchiveName = GetResourceName(FileName + @"\.zip");
    6565      var parser = new SchildeParser();
    66       using (var instancesZipFile = new ZipFile(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {
     66      using (var instancesZipFile = new ZipArchive(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {
    6767        var entry = instancesZipFile.GetEntry(descriptor.InstanceIdentifier);
    68         using (var stream = instancesZipFile.GetInputStream(entry)) {
     68        using (var stream = entry.Open()) {
    6969          parser.Parse(stream);
    7070          var instance = LoadInstance(parser);
     
    109109        .SingleOrDefault(x => Regex.Match(x, @".*\.Data\." + fileName).Success);
    110110    }
    111     protected IEnumerable<string> GetZipContents(ZipInputStream zipFile) {
    112       ZipEntry entry;
    113       while ((entry = zipFile.GetNextEntry()) != null) {
    114         yield return entry.Name;
    115       }
    116     }
     111
    117112    protected virtual string GetInstanceDescription() {
    118113      return "Embedded instance of plugin version " + Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true).Cast<AssemblyFileVersionAttribute>().First().Version + ".";
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Instances.Orienteering/3.3/SchildeParser.cs

    r11319 r12721  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
Note: See TracChangeset for help on using the changeset viewer.