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.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.cs

    r3659 r3674  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Encodings.BinaryVectorEncoding {
     
    5657      Parameters.Add(new LookupParameter<BinaryVector>("Child", "The child binary vector resulting from the crossover."));
    5758      ChildParameter.ActualName = "BinaryVector";
     59
     60      foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IBinaryVectorCrossover))) {
     61        if (!typeof(MultiOperator<IBinaryVectorCrossover>).IsAssignableFrom(type))
     62          Operators.Add((IBinaryVectorCrossover)Activator.CreateInstance(type), true);
     63      }
    5864    }
    5965
Note: See TracChangeset for help on using the changeset viewer.