- Timestamp:
- 01/15/15 20:56:10 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/BinaryEncoding.cs
r11739 r11773 109 109 } 110 110 private void DiscoverOperators() { 111 var pluginDescription = ApplicationManager.Manager.GetDeclaringPlugin(typeof(IBinaryVectorOperator));112 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, pluginDescription, true, false, false);111 var assembly = typeof(IBinaryVectorOperator).Assembly; 112 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, assembly, true, false, false); 113 113 var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t)); 114 114 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList(); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/IntegerEncoding.cs
r11753 r11773 174 174 } 175 175 private void DiscoverOperators() { 176 var pluginDescription = ApplicationManager.Manager.GetDeclaringPlugin(typeof(IIntegerVectorOperator));177 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, pluginDescription, true, false, false);176 var assembly = typeof(IIntegerVectorOperator).Assembly; 177 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, assembly, true, false, false); 178 178 var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t)); 179 179 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList(); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/PermutationEncoding.cs
r11753 r11773 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Runtime.InteropServices; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 148 149 } 149 150 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); 152 153 var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t)); 153 154 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList(); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/RealEncoding.cs
r11767 r11773 173 173 } 174 174 private void DiscoverOperators() { 175 var pluginDescription = ApplicationManager.Manager.GetDeclaringPlugin(typeof(IRealVectorOperator));176 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, pluginDescription, true, false, false);175 var assembly = typeof(IRealVectorOperator).Assembly; 176 var discoveredTypes = ApplicationManager.Manager.GetTypes(encodingSpecificOperatorTypes, assembly, true, false, false); 177 177 var operators = discoveredTypes.Select(t => (IOperator)Activator.CreateInstance(t)); 178 178 var newOperators = operators.Except(Operators, new TypeEqualityComparer<IOperator>()).ToList();
Note: See TracChangeset
for help on using the changeset viewer.