Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 16:32:31 (15 years ago)
Author:
mkommend
Message:

adapted MultiCrossover and MultiManipulators for all encodings to be filled and check in ctors (ticket #979)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs

    r3593 r3674  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Encodings.PermutationEncoding {
     
    4950      : base() {
    5051      Parameters.Add(new LookupParameter<Permutation>("Permutation", "The permutation that is being manipulating."));
     52
     53      foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IPermutationManipulator))) {
     54        if (!typeof(MultiOperator<IPermutationManipulator>).IsAssignableFrom(type))
     55          Operators.Add((IPermutationManipulator)Activator.CreateInstance(type), true);
     56      }
    5157    }
    5258
Note: See TracChangeset for help on using the changeset viewer.