Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/18/15 15:39:21 (10 years ago)
Author:
pfleck
Message:

#2269

  • Added LayerUniformSubScopesProcessor which introduces an intermediate ExecutionContext which translates array-based parameters to single-value parameters.
  • Updated ALPS-OperatorGraph to make usage of the new LayerUniformSubScopesProcessor.
  • Added a temporary operator for calculating number of selected sub scopes because presetting the value during operator parameterization does not work for the new intermediate context.

Note: the change of the PopulationSizeParameter still causes an error when creating a new layer. This will be fixed soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Operators/3.3/UniformSubScopesProcessor.cs

    r12018 r12035  
    3434  [Item("UniformSubScopesProcessor", "An operator which applies a specified operator on all sub-scopes at the given depth of the current scope.")]
    3535  [StorableClass]
    36   public sealed class UniformSubScopesProcessor : SingleSuccessorOperator {
     36  public class UniformSubScopesProcessor : SingleSuccessorOperator {
    3737    private OperatorParameter OperatorParameter {
    3838      get { return (OperatorParameter)Parameters["Operator"]; }
     
    5959
    6060    [StorableConstructor]
    61     private UniformSubScopesProcessor(bool deserializing) : base(deserializing) { }
    62     private UniformSubScopesProcessor(UniformSubScopesProcessor original, Cloner cloner)
     61    protected UniformSubScopesProcessor(bool deserializing) : base(deserializing) { }
     62    protected UniformSubScopesProcessor(UniformSubScopesProcessor original, Cloner cloner)
    6363      : base(original, cloner) {
    6464    }
     
    8888    }
    8989
    90     private IEnumerable<IScope> GetScopesOnLevel(IScope scope, int d) {
     90    protected IEnumerable<IScope> GetScopesOnLevel(IScope scope, int d) {
    9191      if (d == 0) yield return scope;
    9292      else {
Note: See TracChangeset for help on using the changeset viewer.