Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4419


Ignore:
Timestamp:
09/16/10 19:26:24 (14 years ago)
Author:
swagner
Message:

Enabled saving only for some specific items (#1193)

Location:
trunk/sources
Files:
1 deleted
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.3/Content/IStorableContent.cs

    r3500 r4419  
    2323
    2424namespace HeuristicLab.Common {
    25   public interface IStorableContent : IContent, IDeepCloneable {
     25  public interface IStorableContent : IContent {
    2626    string Filename { get; set; }
    27 
    28     event EventHandler FilenameChanged;
    2927  }
    3028}
  • trunk/sources/HeuristicLab.Common/3.3/HeuristicLab.Common-3.3.csproj

    r4065 r4419  
    116116    <Compile Include="Content\ContentManager.cs" />
    117117    <Compile Include="Content\IStorableContent.cs" />
    118     <Compile Include="Content\StorableContent.cs" />
    119118    <Compile Include="DeepCloneable.cs" />
    120119    <Compile Include="Content\IContent.cs" />
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs

    r4068 r4419  
    3333  [Item("ItemArray", "Represents an array of items.")]
    3434  public class ItemArray<T> : ObservableArray<T>, IItemArray<T> where T : class, IItem {
    35     private string filename;
    36     public string Filename {
    37       get { return filename; }
    38       set {
    39         if (value == null) throw new ArgumentNullException();
    40         if ((filename == null) || !filename.Equals(value)) {
    41           filename = value;
    42           OnFilenameChanged();
    43         }
    44       }
    45     }
    46 
    4735    public virtual string ItemName {
    4836      get { return ItemAttribute.GetName(this.GetType()); }
     
    8371    }
    8472
    85     public event EventHandler FilenameChanged;
    86     protected virtual void OnFilenameChanged() {
    87       EventHandler handler = FilenameChanged;
    88       if (handler != null) handler(this, EventArgs.Empty);
    89     }
    9073    public event EventHandler ItemImageChanged;
    9174    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs

    r3822 r4419  
    3333  [Item("ItemCollection", "Represents a collection of items.")]
    3434  public class ItemCollection<T> : ObservableCollection<T>, IItemCollection<T> where T : class, IItem {
    35     private string filename;
    36     public string Filename {
    37       get { return filename; }
    38       set {
    39         if (value == null) throw new ArgumentNullException();
    40         if ((filename == null) || !filename.Equals(value)) {
    41           filename = value;
    42           OnFilenameChanged();
    43         }
    44       }
    45     }
    46 
    4735    public virtual string ItemName {
    4836      get { return ItemAttribute.GetName(this.GetType()); }
     
    8270    }
    8371
    84     public event EventHandler FilenameChanged;
    85     protected virtual void OnFilenameChanged() {
    86       EventHandler handler = FilenameChanged;
    87       if (handler != null) handler(this, EventArgs.Empty);
    88     }
    8972    public event EventHandler ItemImageChanged;
    9073    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs

    r4068 r4419  
    3434    where TKey : class, IItem
    3535    where TValue : class, IItem {
    36     private string filename;
    37     public string Filename {
    38       get { return filename; }
    39       set {
    40         if (value == null) throw new ArgumentNullException();
    41         if ((filename == null) || !filename.Equals(value)) {
    42           filename = value;
    43           OnFilenameChanged();
    44         }
    45       }
    46     }
    4736
    4837    public virtual string ItemName {
     
    8473    }
    8574
    86     public event EventHandler FilenameChanged;
    87     protected virtual void OnFilenameChanged() {
    88       EventHandler handler = FilenameChanged;
    89       if (handler != null) handler(this, EventArgs.Empty);
    90     }
    9175    public event EventHandler ItemImageChanged;
    9276    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs

    r4068 r4419  
    3333  [Item("ItemList", "Represents a list of items.")]
    3434  public class ItemList<T> : ObservableList<T>, IItemList<T> where T : class, IItem {
    35     private string filename;
    36     public string Filename {
    37       get { return filename; }
    38       set {
    39         if (value == null) throw new ArgumentNullException();
    40         if ((filename == null) || !filename.Equals(value)) {
    41           filename = value;
    42           OnFilenameChanged();
    43         }
    44       }
    45     }
    46 
    4735    public virtual string ItemName {
    4836      get { return ItemAttribute.GetName(this.GetType()); }
     
    8270    }
    8371
    84     public event EventHandler FilenameChanged;
    85     protected virtual void OnFilenameChanged() {
    86       EventHandler handler = FilenameChanged;
    87       if (handler != null) handler(this, EventArgs.Empty);
    88     }
    8972    public event EventHandler ItemImageChanged;
    9073    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs

    r4068 r4419  
    3333  [Item("ItemSet", "Represents a set of items.")]
    3434  public class ItemSet<T> : ObservableSet<T>, IItemSet<T> where T : class, IItem {
    35     private string filename;
    36     public string Filename {
    37       get { return filename; }
    38       set {
    39         if (value == null) throw new ArgumentNullException();
    40         if ((filename == null) || !filename.Equals(value)) {
    41           filename = value;
    42           OnFilenameChanged();
    43         }
    44       }
    45     }
    46 
    4735    public virtual string ItemName {
    4836      get { return ItemAttribute.GetName(this.GetType()); }
     
    8169    }
    8270
    83     public event EventHandler FilenameChanged;
    84     protected virtual void OnFilenameChanged() {
    85       EventHandler handler = FilenameChanged;
    86       if (handler != null) handler(this, EventArgs.Empty);
    87     }
    8871    public event EventHandler ItemImageChanged;
    8972    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs

    r4068 r4419  
    3131  [StorableClass]
    3232  public abstract class KeyedItemCollection<TKey, TItem> : ObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    8371    }
    8472
    85     public event EventHandler FilenameChanged;
    86     protected virtual void OnFilenameChanged() {
    87       EventHandler handler = FilenameChanged;
    88       if (handler != null) handler(this, EventArgs.Empty);
    89     }
    9073    public event EventHandler ItemImageChanged;
    9174    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/OperatorCollection.cs

    r4068 r4419  
    2525namespace HeuristicLab.Core {
    2626  [StorableClass]
    27   [Creatable("Algorithm Design")]
    2827  [Item("Operator Collection", "Represents a collection of operators.")]
    2928  public class OperatorCollection : ItemCollection<IOperator> {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs

    r4068 r4419  
    3131  [Item("ReadOnlyItemArray", "Represents a read-only array of items.")]
    3232  public class ReadOnlyItemArray<T> : ReadOnlyObservableArray<T>, IItemArray<T> where T : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs

    r4068 r4419  
    3131  [Item("ReadOnlyItemCollection", "Represents a read-only collection of items.")]
    3232  public class ReadOnlyItemCollection<T> : ReadOnlyObservableCollection<T>, IItemCollection<T> where T : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs

    r4068 r4419  
    3333    where TKey : class, IItem
    3434    where TValue : class, IItem {
    35     private string filename;
    36     public string Filename {
    37       get { return filename; }
    38       set {
    39         if (value == null) throw new ArgumentNullException();
    40         if ((filename == null) || !filename.Equals(value)) {
    41           filename = value;
    42           OnFilenameChanged();
    43         }
    44       }
    45     }
    4635
    4736    public virtual string ItemName {
     
    7867    }
    7968
    80     public event EventHandler FilenameChanged;
    81     protected virtual void OnFilenameChanged() {
    82       EventHandler handler = FilenameChanged;
    83       if (handler != null) handler(this, EventArgs.Empty);
    84     }
    8569    public event EventHandler ItemImageChanged;
    8670    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs

    r4068 r4419  
    3131  [Item("ReadOnlyItemList", "Represents a read-only list of items.")]
    3232  public class ReadOnlyItemList<T> : ReadOnlyObservableList<T>, IItemList<T> where T : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs

    r4068 r4419  
    3131  [Item("ReadOnlyItemSet", "Represents a read-only set of items.")]
    3232  public class ReadOnlyItemSet<T> : ReadOnlyObservableSet<T>, IItemSet<T> where T : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs

    r4068 r4419  
    3131  [Item("ReadOnlyKeyedItemCollection", "Represents a read-only keyed collection of items.")]
    3232  public class ReadOnlyKeyedItemCollection<TKey, TItem> : ReadOnlyObservableKeyedCollection<TKey, TItem>, IKeyedItemCollection<TKey, TItem> where TItem : class, IItem {
    33     private string filename;
    34     public string Filename {
    35       get { return filename; }
    36       set {
    37         if (value == null) throw new ArgumentNullException();
    38         if ((filename == null) || !filename.Equals(value)) {
    39           filename = value;
    40           OnFilenameChanged();
    41         }
    42       }
    43     }
    44 
    4533    public virtual string ItemName {
    4634      get { return ItemAttribute.GetName(this.GetType()); }
     
    7664    }
    7765
    78     public event EventHandler FilenameChanged;
    79     protected virtual void OnFilenameChanged() {
    80       EventHandler handler = FilenameChanged;
    81       if (handler != null) handler(this, EventArgs.Empty);
    82     }
    8366    public event EventHandler ItemImageChanged;
    8467    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/IItem.cs

    r3728 r4419  
    2828  /// Interface to represent (almost) every HeuristicLab object (an object, an operator,...).
    2929  /// </summary>
    30   public interface IItem : IStorableContent {
     30  public interface IItem : IContent, IDeepCloneable {
    3131    string ItemName { get; }
    3232    string ItemDescription { get; }
  • trunk/sources/HeuristicLab.Core/3.3/Item.cs

    r3728 r4419  
    3232  [Item("Item", "Base class for all HeuristicLab items.")]
    3333  public abstract class Item : IItem {
    34     private string filename;
    35     public string Filename {
    36       get { return filename; }
    37       set {
    38         if (value == null) throw new ArgumentNullException();
    39         if ((filename == null) || !filename.Equals(value)) {
    40           filename = value;
    41           OnFilenameChanged();
    42         }
    43       }
    44     }
    45 
    4634    public virtual string ItemName {
    4735      get { return ItemAttribute.GetName(this.GetType()); }
     
    5745    }
    5846
    59     protected Item() {
    60       filename = string.Empty;
    61     }
     47    protected Item() { }
    6248    [StorableConstructor]
    63     protected Item(bool deserializing) {
    64       filename = string.Empty;
    65     }
     49    protected Item(bool deserializing) { }
    6650
    6751    public object Clone() {
     
    8266    }
    8367
    84     public event EventHandler FilenameChanged;
    85     protected virtual void OnFilenameChanged() {
    86       EventHandler handler = FilenameChanged;
    87       if (handler != null) handler(this, EventArgs.Empty);
    88     }
    8968    public event EventHandler ItemImageChanged;
    9069    protected virtual void OnItemImageChanged() {
  • trunk/sources/HeuristicLab.Core/3.3/Log.cs

    r3758 r4419  
    3030  [Item("Log", "A log for logging string messages.")]
    3131  [StorableClass]
    32   public class Log : Item, ILog {
     32  public class Log : Item, ILog, IStorableContent {
     33    public string Filename { get; set; }
     34
    3335    public override Image ItemImage {
    3436      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.File; }
  • trunk/sources/HeuristicLab.Core/3.3/OperatorGraph.cs

    r4068 r4419  
    3131  /// </summary>
    3232  [Item("Operator Graph", "Represents a graph of operators.")]
    33   [Creatable("Algorithm Design")]
    3433  [StorableClass]
    35   public class OperatorGraph : Item {
     34  public class OperatorGraph : Item, IStorableContent {
     35    public string Filename { get; set; }
     36
    3637    [Storable]
    3738    private OperatorSet operators;
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Tests/TestRandom.cs

    r3728 r4419  
    138138
    139139    #endregion
    140 
    141     #region IStorableContent Members
    142 
    143     public string Filename {
    144       get { throw new NotImplementedException(); }
    145       set { throw new NotImplementedException(); }
    146     }
    147 
    148 #pragma warning disable 67
    149     public event EventHandler FilenameChanged;
    150 #pragma warning restore 67
    151 
    152     #endregion
    153140  }
    154141}
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/TestRandom.cs

    r3728 r4419  
    138138
    139139    #endregion
    140 
    141     #region IStorableContent Members
    142 
    143     public string Filename {
    144       get { throw new NotImplementedException(); }
    145       set { throw new NotImplementedException(); }
    146     }
    147 
    148 #pragma warning disable 67
    149     public event EventHandler FilenameChanged;
    150 #pragma warning restore 67
    151 
    152     #endregion
    153140  }
    154141}
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Tests/Random.cs

    r3728 r4419  
    138138
    139139    #endregion
    140 
    141     #region IStorableContent Members
    142 
    143     public string Filename {
    144       get { throw new NotImplementedException(); }
    145       set { throw new NotImplementedException(); }
    146     }
    147 
    148 #pragma warning disable 67
    149     public event EventHandler FilenameChanged;
    150 #pragma warning restore 67
    151 
    152     #endregion
    153140  }
    154141}
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/TestRandom.cs

    r3728 r4419  
    138138
    139139    #endregion
    140 
    141     #region IStorableContent Members
    142 
    143     public string Filename {
    144       get { throw new NotImplementedException(); }
    145       set { throw new NotImplementedException(); }
    146     }
    147 
    148 #pragma warning disable 67
    149     public event EventHandler FilenameChanged;
    150 #pragma warning restore 67
    151 
    152     #endregion
    153140  }
    154141}
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs

    r4068 r4419  
    4141  [Item("ProgrammableOperator", "An operator that can be programmed for arbitrary needs.")]
    4242  [StorableClass]
    43   public class ProgrammableOperator : Operator, IParameterizedNamedItem {
     43  public class ProgrammableOperator : Operator, IParameterizedNamedItem, IStorableContent {
    4444
    4545    #region Fields & Properties
     46
     47    public string Filename { get; set; }
    4648
    4749    public new ParameterCollection Parameters {
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs

    r4068 r4419  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    2930  [Item("CombinedOperator", "An operator which contains an operator graph.")]
    3031  [StorableClass]
    31   public sealed class CombinedOperator : AlgorithmOperator, IParameterizedItem {
     32  public sealed class CombinedOperator : AlgorithmOperator, IParameterizedItem, IStorableContent {
     33    public string Filename { get; set; }
     34
    3235    public override bool CanChangeDescription {
    3336      get { return true; }
  • trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs

    r4102 r4419  
    3535  [Item("Algorithm", "A base class for algorithms.")]
    3636  [StorableClass]
    37   public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm {
     37  public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm, IStorableContent {
     38    public string Filename { get; set; }
     39
    3840    public override Image ItemImage {
    3941      get {
  • trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs

    r4115 r4419  
    3636  [Creatable("Testing & Analysis")]
    3737  [StorableClass]
    38   public sealed class BatchRun : NamedItem, IOptimizer {
     38  public sealed class BatchRun : NamedItem, IOptimizer, IStorableContent {
     39    public string Filename { get; set; }
     40
    3941    public override Image ItemImage {
    4042      get {
  • trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs

    r4115 r4419  
    3535  [Creatable("Testing & Analysis")]
    3636  [StorableClass]
    37   public sealed class Experiment : NamedItem, IOptimizer {
     37  public sealed class Experiment : NamedItem, IOptimizer, IStorableContent {
     38    public string Filename { get; set; }
     39
    3840    public override Image ItemImage {
    3941      get {
  • trunk/sources/HeuristicLab.Optimization/3.3/OptimizerList.cs

    r4068 r4419  
    2121
    2222using System.Collections.Generic;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    2627namespace HeuristicLab.Optimization {
    2728  [Item("Optimizer List", "Represents a list of optimizers.")]
    28   [Creatable("Testing & Analysis")]
    2929  [StorableClass]
    3030  public class OptimizerList : ItemList<IOptimizer> {
  • trunk/sources/HeuristicLab.Optimization/3.3/Result.cs

    r3555 r4419  
    3232  [Item("Result", "A result which has a name and a data type and holds an IItem.")]
    3333  [StorableClass]
    34   public sealed class Result : NamedItem, IResult {
     34  public sealed class Result : NamedItem, IResult, IStorableContent {
     35    public string Filename { get; set; }
     36
    3537    public override Image ItemImage {
    3638      get {
  • trunk/sources/HeuristicLab.Optimization/3.3/Run.cs

    r4200 r4419  
    3333  [Item("Run", "The parameters and results of an algorithm run.")]
    3434  [StorableClass]
    35   public sealed class Run : NamedItem, IRun {
     35  public sealed class Run : NamedItem, IRun, IStorableContent {
     36    public string Filename { get; set; }
     37
    3638    [StorableConstructor]
    3739    private Run(bool deserializing) : base(deserializing) { }
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs

    r4375 r4419  
    3333  [Creatable("Testing & Analysis")]
    3434  [StorableClass]
    35   public class RunCollection : ItemCollection<IRun>, IStringConvertibleMatrix {
     35  public class RunCollection : ItemCollection<IRun>, IStringConvertibleMatrix, IStorableContent {
     36    public string Filename { get; set; }
     37
    3638    [StorableConstructor]
    3739    protected RunCollection(bool deserializing) : base(deserializing) { }
  • trunk/sources/HeuristicLab.Optimization/3.3/UserDefinedProblem.cs

    r3880 r4419  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class UserDefinedProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     40  public sealed class UserDefinedProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     41    public string Filename { get; set; }
     42
    4143    public override Image ItemImage {
    4244      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs

    r4118 r4419  
    4141  [Creatable("Problems")]
    4242  [StorableClass]
    43   public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     43  public sealed class ArtificialAntProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     44    public string Filename { get; set; }
    4445
    4546    public override Image ItemImage {
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblem.cs

    r4118 r4419  
    3333  [Creatable("Problems")]
    3434  [StorableClass]
    35   public class DataAnalysisProblem : ParameterizedNamedItem, IDataAnalysisProblem {
     35  public class DataAnalysisProblem : ParameterizedNamedItem, IDataAnalysisProblem, IStorableContent {
    3636    private const string DataAnalysisProblemDataParameterName = "DataAnalysisProblemData";
     37
     38    public string Filename { get; set; }
     39
    3740    public override Image ItemImage {
    3841      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationProblem.cs

    r4118 r4419  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     40  public sealed class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     41    public string Filename { get; set; }
     42
    4143    public override Image ItemImage {
    4244      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
    4345    }
     46
    4447    public new ParameterCollection Parameters {
    4548      get { return base.Parameters; }
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r4118 r4419  
    3737  [Creatable("Problems")]
    3838  [StorableClass]
    39   public sealed class KnapsackProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     39  public sealed class KnapsackProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     40    public string Filename { get; set; }
     41
    4042    public override Image ItemImage {
    4143      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
  • trunk/sources/HeuristicLab.Problems.OneMax/3.3/OnemaxProblem.cs

    r4118 r4419  
    3737  [Creatable("Problems")]
    3838  [StorableClass]
    39   public sealed class OneMaxProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     39  public sealed class OneMaxProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     40    public string Filename { get; set; }
     41
    4042    public override Image ItemImage {
    4143      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r4118 r4419  
    3737  [StorableClass]
    3838  [Creatable("Problems")]
    39   public sealed class SingleObjectiveTestFunctionProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     39  public sealed class SingleObjectiveTestFunctionProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     40    public string Filename { get; set; }
     41
    4042    [Storable]
    4143    private StdDevStrategyVectorCreator strategyVectorCreator;
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r4118 r4419  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class TravelingSalesmanProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     40  public sealed class TravelingSalesmanProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     41    public string Filename { get; set; }
     42
    4143    public override Image ItemImage {
    4244      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs

    r4352 r4419  
    4040  [Creatable("Problems")]
    4141  [StorableClass]
    42   public sealed class VehicleRoutingProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     42  public sealed class VehicleRoutingProblem : ParameterizedNamedItem, ISingleObjectiveProblem, IStorableContent {
     43    public string Filename { get; set; }
     44
    4345    public override Image ItemImage {
    4446      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
Note: See TracChangeset for help on using the changeset viewer.