Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/19 11:57:18 (5 years ago)
Author:
abeham
Message:

#2521: made QAP problem data readonly

  • Also refactored instance providers slightly to specify file extension for importing and exporting data and fixing dialogs
Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances/3.3/IProblemInstanceProvider.cs

    r17226 r17252  
    3636    TData LoadData(IDataDescriptor descriptor);
    3737
     38    IEnumerable<string> ImportFileExtensions { get; }
    3839    bool CanImportData { get; }
    3940    TData ImportData(string path);
    4041
     42    IEnumerable<string> ExportFileExtensions { get; }
    4143    bool CanExportData { get; }
    4244    void ExportData(TData instance, string path);
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances/3.3/ProblemInstanceProvider.cs

    r17226 r17252  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425
    2526namespace HeuristicLab.Problems.Instances {
     
    3435    public abstract TData LoadData(IDataDescriptor descriptor);
    3536
     37    public virtual IEnumerable<string> ImportFileExtensions => Enumerable.Empty<string>();
    3638    public virtual bool CanImportData {
    3739      get { return false; }
     
    4143    }
    4244
     45    public virtual IEnumerable<string> ExportFileExtensions => Enumerable.Empty<string>();
    4346    public virtual bool CanExportData {
    4447      get { return false; }
Note: See TracChangeset for help on using the changeset viewer.