Changeset 4437


Ignore:
Timestamp:
09/20/10 00:01:24 (9 years ago)
Author:
swagner
Message:

Implemented !IStorableContent separately for each algorithm (#1193)

Location:
trunk/sources
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.3/LinearRegression.cs

    r4068 r4437  
    4141  [Creatable("Data Analysis")]
    4242  [StorableClass]
    43   public sealed class LinearRegression : EngineAlgorithm {
     43  public sealed class LinearRegression : EngineAlgorithm, IStorableContent {
    4444    private const string TrainingSamplesStartParameterName = "Training start";
    4545    private const string TrainingSamplesEndParameterName = "Training end";
     
    4747    private const string ModelInterpreterParameterName = "Model interpreter";
    4848
     49    public string Filename { get; set; }
    4950
    5051    #region Problem Properties
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.3/SupportVectorMachine.cs

    r4068 r4437  
    3939  [Creatable("Data Analysis")]
    4040  [StorableClass]
    41   public sealed class SupportVectorMachine : EngineAlgorithm {
     41  public sealed class SupportVectorMachine : EngineAlgorithm, IStorableContent {
    4242    private const string TrainingSamplesStartParameterName = "Training start";
    4343    private const string TrainingSamplesEndParameterName = "Training end";
     
    4949    private const string GammaParameterName = "Gamma";
    5050    private const string EpsilonParameterName = "Epsilon";
    51 
    5251    private const string ModelParameterName = "SupportVectorMachineModel";
     52
     53    public string Filename { get; set; }
     54
    5355    #region Problem Properties
    5456    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs

    r4068 r4437  
    4040  [Creatable("Algorithms")]
    4141  [StorableClass]
    42   public sealed class GeneticAlgorithm : EngineAlgorithm {
     42  public sealed class GeneticAlgorithm : EngineAlgorithm, IStorableContent {
     43    public string Filename { get; set; }
     44
    4345    #region Problem Properties
    4446    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs

    r4068 r4437  
    4141  [Creatable("Algorithms")]
    4242  [StorableClass]
    43   public sealed class IslandGeneticAlgorithm : EngineAlgorithm {
     43  public sealed class IslandGeneticAlgorithm : EngineAlgorithm, IStorableContent {
     44    public string Filename { get; set; }
    4445
    4546    #region Problem Properties
  • trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs

    r4068 r4437  
    3737  [Creatable("Algorithms")]
    3838  [StorableClass]
    39   public sealed class LocalSearch : EngineAlgorithm {
     39  public sealed class LocalSearch : EngineAlgorithm, IStorableContent {
     40    public string Filename { get; set; }
     41
    4042    #region Problem Properties
    4143    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs

    r4068 r4437  
    4141  [Creatable("Algorithms")]
    4242  [StorableClass]
    43   public sealed class IslandOffspringSelectionGeneticAlgorithm : EngineAlgorithm {
     43  public sealed class IslandOffspringSelectionGeneticAlgorithm : EngineAlgorithm, IStorableContent {
     44    public string Filename { get; set; }
    4445
    4546    #region Problem Properties
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs

    r4068 r4437  
    4040  [Creatable("Algorithms")]
    4141  [StorableClass]
    42   public sealed class OffspringSelectionGeneticAlgorithm : EngineAlgorithm {
     42  public sealed class OffspringSelectionGeneticAlgorithm : EngineAlgorithm, IStorableContent {
     43    public string Filename { get; set; }
     44
    4345    #region Problem Properties
    4446    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs

    r4068 r4437  
    4141  [Creatable("Algorithms")]
    4242  [StorableClass]
    43   public sealed class SASEGASA : EngineAlgorithm {
     43  public sealed class SASEGASA : EngineAlgorithm, IStorableContent {
     44    public string Filename { get; set; }
    4445
    4546    #region Problem Properties
  • trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealing.cs

    r4068 r4437  
    3838  [Creatable("Algorithms")]
    3939  [StorableClass]
    40   public sealed class SimulatedAnnealing : EngineAlgorithm {
     40  public sealed class SimulatedAnnealing : EngineAlgorithm, IStorableContent {
     41    public string Filename { get; set; }
     42
    4143    #region Problem Properties
    4244    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs

    r4068 r4437  
    3737  [Creatable("Algorithms")]
    3838  [StorableClass]
    39   public sealed class TabuSearch : EngineAlgorithm {
     39  public sealed class TabuSearch : EngineAlgorithm, IStorableContent {
     40    public string Filename { get; set; }
     41
    4042    #region Problem Properties
    4143    public override Type ProblemType {
  • trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs

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

    r4068 r4437  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3031  [Creatable("Algorithms")]
    3132  [StorableClass]
    32   public sealed class UserDefinedAlgorithm : EngineAlgorithm, IParameterizedItem {
     33  public sealed class UserDefinedAlgorithm : EngineAlgorithm, IParameterizedItem, IStorableContent {
     34    public string Filename { get; set; }
     35
    3336    public new ParameterCollection Parameters {
    3437      get { return base.Parameters; }
Note: See TracChangeset for help on using the changeset viewer.