Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 15:22:13 (13 years ago)
Author:
sforsten
Message:

#1784:

  • deleted not needed Consumer in ProblemInstanceProvider and IProblemInstanceProvider
  • changed protection level of exporter and consumer in ProblemInstanceProviderViewGeneric
  • renamed property FileExtension to FileName in ResourceClassificationInstanceProvider and ResourceRegressionInstanceProvider
  • deleted ImportProblemDataFromFile method from IDataAnalysisProblem and all classes and interfaces, which implement this method
  • removed unnecessary yield return in GetDoubleValues in the Dataset. Now it's a normal return statement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionInstanceProvider.cs

    r7667 r7758  
    3131  public abstract class ResourceRegressionInstanceProvider : RegressionInstanceProvider {
    3232
    33     protected abstract string FileExtension { get; }
     33    protected abstract string FileName { get; }
    3434
    3535    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
    36       var solutionsArchiveName = GetResourceName(FileExtension + @"\.zip");
     36      var solutionsArchiveName = GetResourceName(FileName + @"\.zip");
    3737      if (!String.IsNullOrEmpty(solutionsArchiveName)) {
    3838        using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) {
     
    6666
    6767    private string GetTempFileForResource(string resourceName) {
    68       var instanceArchiveName = GetResourceName(FileExtension + @"\.zip");
     68      var instanceArchiveName = GetResourceName(FileName + @"\.zip");
    6969      using (var instancesZipFile = new ZipFile(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) {
    7070        var entry = instancesZipFile.GetEntry(resourceName);
Note: See TracChangeset for help on using the changeset viewer.