Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/15 20:56:10 (10 years ago)
Author:
mkommend
Message:

#2174: Adapated encodings to use new type discovery mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/PermutationEncoding.cs

    r11753 r11773  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Runtime.InteropServices;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    148149    }
    149150    private void DiscoverOperators() {
    150       var pluginDescription = ApplicationManager.Manager.GetDeclaringPlugin(typeof(IPermutationOperator));
    151       var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, pluginDescription, true, false, false);
     151      var assembly = typeof(IPermutationOperator).Assembly;
     152      var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, assembly, true, false, false);
    152153      var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t));
    153154      var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList();
Note: See TracChangeset for help on using the changeset viewer.