Changeset 7667
- Timestamp:
- 03/27/12 16:58:22 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/Plugin.cs.frame
r7558 r7667 39 39 [PluginDependency("HeuristicLab.Optimization", "3.3")] 40 40 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 41 [PluginDependency("HeuristicLab.Problems.Instances.Views", "3.4")] 41 42 [PluginDependency("HeuristicLab.Visualization.ChartControlsExtensions","3.3")] 42 43 public class HeuristicLabOptimizationViewsPlugin : PluginBase { -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/HeuristicLab.Problems.Instances.Regression-3.4.csproj
r7666 r7667 101 101 <Compile Include="Nguyen\NguyenInstanceProvider.cs" /> 102 102 <Compile Include="Plugin.cs" /> 103 <Compile Include="RealWorld\RealWorldInstanceProvider.cs" /> 103 104 <Compile Include="ResourceRegressionInstanceProvider.cs" /> 104 105 <Compile Include="ArtificialRegressionInstanceProvider.cs" /> … … 126 127 <ItemGroup> 127 128 <EmbeddedResource Include="Data\TrentMcConaghy.zip" /> 129 <EmbeddedResource Include="Data\RealWorld.zip" /> 128 130 <None Include="HeuristicLab.snk" /> 129 131 <None Include="Plugin.cs.frame" /> -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Plugin.cs.frame
r7603 r7667 26 26 [PluginFile("HeuristicLab.Problems.Instances.Regression-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] 28 [PluginDependency("HeuristicLab.Core", "3.3")] 29 [PluginDependency("HeuristicLab.Optimization", "3.3")] 28 30 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 29 31 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Properties/AssemblyInfo.cs
r7666 r7667 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.4.0.0")] 57 [assembly: AssemblyFileVersion("3.4.0.766 5")]57 [assembly: AssemblyFileVersion("3.4.0.7666")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionInstanceProvider.cs
r7666 r7667 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 22 24 using System.IO; 23 25 using System.Linq; … … 30 32 31 33 protected abstract string FileExtension { get; } 34 35 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 36 var solutionsArchiveName = GetResourceName(FileExtension + @"\.zip"); 37 if (!String.IsNullOrEmpty(solutionsArchiveName)) { 38 using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) { 39 foreach (var entry in GetZipContents(solutionsZipFile).OrderBy(x => x)) 40 yield return new ResourceRegressionDataDescriptor(Path.GetFileNameWithoutExtension(entry), Description, entry); 41 } 42 } 43 } 32 44 33 45 public override RegressionData LoadData(IDataDescriptor id) { … … 44 56 return Assembly.GetExecutingAssembly().GetManifestResourceNames() 45 57 .Where(x => Regex.Match(x, @".*\.Data\." + fileName).Success).SingleOrDefault(); 58 } 59 60 protected IEnumerable<string> GetZipContents(ZipInputStream zipFile) { 61 ZipEntry entry; 62 while ((entry = zipFile.GetNextEntry()) != null) { 63 yield return entry.Name; 64 } 46 65 } 47 66 -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/TrentMcConaghy/TrentMcConaghyInstanceProvider.cs
r7666 r7667 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.IO;25 23 using System.Linq; 26 using ICSharpCode.SharpZipLib.Zip;27 24 28 25 namespace HeuristicLab.Problems.Instances.Regression { … … 48 45 protected override string FileExtension { get { return "TrentMcConaghy"; } } 49 46 50 public override IEnumerable<IDataDescriptor> GetDataDescriptors() {51 var solutionsArchiveName = GetResourceName(FileExtension + @"\.zip");52 if (!String.IsNullOrEmpty(solutionsArchiveName)) {53 using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) {54 foreach (var entry in GetZipContents(solutionsZipFile).OrderBy(x => x))55 yield return new ResourceRegressionDataDescriptor(Path.GetFileNameWithoutExtension(entry), Description, entry);56 }57 }58 }59 60 47 public override RegressionData LoadData(IDataDescriptor id) { 61 48 RegressionData regData = base.LoadData(id); … … 66 53 return regData; 67 54 } 68 69 protected IEnumerable<string> GetZipContents(ZipInputStream zipFile) {70 ZipEntry entry;71 while ((entry = zipFile.GetNextEntry()) != null) {72 yield return entry.Name;73 }74 }75 55 } 76 56 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Plugin.cs
r7666 r7667 23 23 24 24 namespace HeuristicLab.Problems.Instances.Views { 25 [Plugin("HeuristicLab.Problems.Instances.Views", "3.4.0.766 5")]25 [Plugin("HeuristicLab.Problems.Instances.Views", "3.4.0.7666")] 26 26 [PluginFile("HeuristicLab.Problems.Instances.Views-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Properties/AssemblyInfo.cs
r7666 r7667 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.4.0.0")] 55 [assembly: AssemblyFileVersion("3.4.2.766 5")]55 [assembly: AssemblyFileVersion("3.4.2.7666")]
Note: See TracChangeset
for help on using the changeset viewer.