Changeset 12571


Ignore:
Timestamp:
07/02/15 11:52:30 (4 years ago)
Author:
pfleck
Message:

#2350

  • Fixed Plugin dependencies.
  • Added missing Hook.
  • Sealed some classes and fixed some access modifier.
Location:
branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithm.cs

    r12549 r12571  
    3939  [Creatable("Algorithms")]
    4040  [StorableClass]
    41   public class AlpsSsGeneticAlgorithm : Alps {
     41  public sealed class AlpsSsGeneticAlgorithm : Alps {
    4242    #region Parameter Properties
    4343    private IValueParameter<IntValue> LayerSizeParameter {
     
    113113    private AlpsSsGeneticAlgorithm(bool deserializing)
    114114      : base(deserializing) { }
     115    [StorableHook(HookType.AfterDeserialization)]
     116    private void AfterDeserialization() {
     117      Initialize();
     118    }
    115119    private AlpsSsGeneticAlgorithm(AlpsSsGeneticAlgorithm original, Cloner cloner)
    116120      : base(original, cloner) {
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithmMainLoop.cs

    r12534 r12571  
    3232  [Item("AlpsSsGeneticAlgorithmMainLoop", "An ALPS steady-state genetic algorithm main loop operator.")]
    3333  [StorableClass]
    34   public class AlpsSsGeneticAlgorithmMainLoop : AlgorithmOperator {
     34  public sealed class AlpsSsGeneticAlgorithmMainLoop : AlgorithmOperator {
    3535    #region Parameter Properties
    3636    public ValueLookupParameter<BoolValue> MaximizationParameter {
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsGeneticAlgorithmMainOperator.cs

    r12271 r12571  
    3030  [Item("AlpsSsGeneticAlgorithmMainOperator", "")]
    3131  [StorableClass]
    32   public class AlpsSsGeneticAlgorithmMainOperator : AlgorithmOperator {
     32  public sealed class AlpsSsGeneticAlgorithmMainOperator : AlgorithmOperator {
    3333    [StorableConstructor]
    3434    private AlpsSsGeneticAlgorithmMainOperator(bool deserializing)
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/AlpsSsMover.cs

    r12259 r12571  
    3333  [Item("AlpsSsMover", "")]
    3434  [StorableClass]
    35   public class AlpsSsMover : SingleSuccessorOperator, IStochasticOperator {
     35  public sealed class AlpsSsMover : SingleSuccessorOperator, IStochasticOperator {
    3636    #region Parameter Properties
    3737    private ILookupParameter<IntValue> LayerParameter {
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/NamedSubScopeProcessor.cs

    r12159 r12571  
    3030  [Item("NamedSubScopeProcessor", "")]
    3131  [StorableClass]
    32   public class NamedSubScopeProcessor : SingleSuccessorOperator {
     32  public sealed class NamedSubScopeProcessor : SingleSuccessorOperator {
    3333
    3434    #region Parameter Properties
     
    4747
    4848    [StorableConstructor]
    49     protected NamedSubScopeProcessor(bool deserializing) : base(deserializing) { }
     49    private NamedSubScopeProcessor(bool deserializing) : base(deserializing) { }
    5050    public NamedSubScopeProcessor()
    5151      : base() {
     
    5353      Parameters.Add(new LookupParameter<IScope>("TargetScope"));
    5454    }
    55     protected NamedSubScopeProcessor(NamedSubScopeProcessor original, Cloner cloner)
     55    private NamedSubScopeProcessor(NamedSubScopeProcessor original, Cloner cloner)
    5656      : base(original, cloner) {
    5757    }
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/NamedSubScopesCreator.cs

    r12157 r12571  
    3030  [Item("NamedSubScopesCreator", "An operator which create named subscopes.")]
    3131  [StorableClass]
    32   public class NamedSubScopesCreator : SingleSuccessorOperator {
     32  public sealed class NamedSubScopesCreator : SingleSuccessorOperator {
    3333    #region Parameter Properties
    3434    public IValueLookupParameter<StringArray> NamesParameter {
     
    3838
    3939    [StorableConstructor]
    40     protected NamedSubScopesCreator(bool deserializing) : base(deserializing) { }
    41     protected NamedSubScopesCreator(NamedSubScopesCreator original, Cloner cloner)
     40    private NamedSubScopesCreator(bool deserializing) : base(deserializing) { }
     41    private NamedSubScopesCreator(NamedSubScopesCreator original, Cloner cloner)
    4242      : base(original, cloner) {
    4343    }
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/Plugin.cs.frame

    r12115 r12571  
    2828  [Plugin("HeuristicLab.Algorithms.ALPS.SteadyState", "Provides a Steady-State version of the Age-Layered Population Structure (ALPS) as described in G. S. Hornby, A Steady-State Version of the Age-Layered Population Structure EA, in Genetic Programming Theory and Practice VII, R. Riolo, U.-M. O’Reilly, and T. McConaghy, Eds. Springer US, 2010, pp. 87–102.", "3.3.11.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Algorithms.ALPS.SteadyState-3.3.dll", PluginFileType.Assembly)]
    30   [PluginDependency("HeuristicLab.Analysis", "3.3")]
    3130  [PluginDependency("HeuristicLab.Collections", "3.3")]
    3231  [PluginDependency("HeuristicLab.Common", "3.3")]
     
    4140  [PluginDependency("HeuristicLab.Selection", "3.3")]
    4241  [PluginDependency("HeuristicLab.Algorithms.ALPS", "3.3")]
    43   public class HeuristicLabAlgorithmsALPSPlugin : PluginBase {
     42  public class HeuristicLabAlgorithmsALPSSteadyStatePlugin : PluginBase {
    4443  }
    4544}
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/RandomIntAssigner.cs

    r12223 r12571  
    3131  [Item("RandomIntAssigner", "An operator which sets a random value to a parameter")]
    3232  [StorableClass]
    33   public class RandomIntAssigner : SingleSuccessorOperator, IStochasticOperator {
     33  public sealed class RandomIntAssigner : SingleSuccessorOperator, IStochasticOperator {
    3434    public LookupParameter<IntValue> LeftSideParameter {
    3535      get { return (LookupParameter<IntValue>)Parameters["LeftSide"]; }
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/RandomLayerProcessor.cs

    r12142 r12571  
    3333  [Item("RandomLayerProcessor", "An operator which applies a specified operator on a random selected sub-scope (layer).")]
    3434  [StorableClass]
    35   public class RandomLayerProcessor : SingleSuccessorOperator, IStochasticOperator {
     35  public sealed class RandomLayerProcessor : SingleSuccessorOperator, IStochasticOperator {
    3636    private OperatorParameter OperatorParameter {
    3737      get { return (OperatorParameter)Parameters["Operator"]; }
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/ScopeIndexAssigner.cs

    r12159 r12571  
    3131  [Item("ScopeIndexAssigner", "Description missing")]
    3232  [StorableClass]
    33   public class ScopeIndexAssigner : SingleSuccessorOperator {
     33  public sealed class ScopeIndexAssigner : SingleSuccessorOperator {
    3434    #region Parameter Properties
    3535    public ILookupParameter<IntValue> ValueParameter {
     
    3939
    4040    [StorableConstructor]
    41     protected ScopeIndexAssigner(bool deserializing) : base(deserializing) { }
     41    private ScopeIndexAssigner(bool deserializing) : base(deserializing) { }
    4242    public ScopeIndexAssigner()
    4343      : base() {
    4444      Parameters.Add(new LookupParameter<IntValue>("Value"));
    4545    }
    46     protected ScopeIndexAssigner(ScopeIndexAssigner original, Cloner cloner)
     46    private ScopeIndexAssigner(ScopeIndexAssigner original, Cloner cloner)
    4747      : base(original, cloner) {
    4848    }
  • branches/ALPS/HeuristicLab.Algorithms.ALPS.SteadyState/3.3/SteadyStateMatingPoolCreator.cs

    r12270 r12571  
    3131  [Item("SteadyStateMatingPoolCreator", "")]
    3232  [StorableClass]
    33   public class SteadyStateMatingPoolCreator : SingleSuccessorOperator {
     33  public sealed class SteadyStateMatingPoolCreator : SingleSuccessorOperator {
    3434    private ILookupParameter<IScope> WorkingScopeParameter {
    3535      get { return (ILookupParameter<IScope>)Parameters["WorkingScope"]; }
Note: See TracChangeset for help on using the changeset viewer.