- Timestamp:
- 05/06/10 16:32:31 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.cs
r3659 r3674 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure; 30 31 31 32 namespace HeuristicLab.Encodings.BinaryVectorEncoding { … … 56 57 Parameters.Add(new LookupParameter<BinaryVector>("Child", "The child binary vector resulting from the crossover.")); 57 58 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 } 58 64 } 59 65 -
trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Crossovers/MultiIntegerVectorCrossover.cs
r3659 r3674 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure; 30 31 31 32 namespace HeuristicLab.Encodings.IntegerVectorEncoding { … … 56 57 Parameters.Add(new LookupParameter<IntegerVector>("Child", "The child integer vector resulting from the crossover.")); 57 58 ChildParameter.ActualName = "IntegerVector"; 59 60 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IIntegerVectorCrossover))) { 61 if (!typeof(MultiOperator<IIntegerVectorCrossover>).IsAssignableFrom(type)) 62 Operators.Add((IIntegerVectorCrossover)Activator.CreateInstance(type), true); 63 } 58 64 } 59 65 -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r3659 r3674 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure; 30 31 31 32 namespace HeuristicLab.Encodings.PermutationEncoding { … … 56 57 Parameters.Add(new LookupParameter<Permutation>("Child", "The child permutation resulting from the crossover.")); 57 58 ChildParameter.ActualName = "Permutation"; 59 60 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IPermutationCrossover))) { 61 if (!typeof(MultiOperator<IPermutationCrossover>).IsAssignableFrom(type)) 62 Operators.Add((IPermutationCrossover)Activator.CreateInstance(type), true); 63 } 58 64 } 59 65 -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs
r3593 r3674 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure; 30 31 31 32 namespace HeuristicLab.Encodings.PermutationEncoding { … … 49 50 : base() { 50 51 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 } 51 57 } 52 58 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/MultiRealVectorCrossover.cs
r3659 r3674 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.PluginInfrastructure; 31 32 32 33 namespace HeuristicLab.Encodings.RealVectorEncoding { … … 60 61 ChildParameter.ActualName = "RealVector"; 61 62 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds for each dimension of the vector.")); 63 64 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IRealVectorCrossover))) { 65 if (!typeof(MultiOperator<IRealVectorCrossover>).IsAssignableFrom(type)) 66 Operators.Add((IRealVectorCrossover)Activator.CreateInstance(type), true); 67 } 62 68 } 63 69 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MultiRealVectorManipulator.cs
r3593 r3674 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.PluginInfrastructure; 31 32 32 33 namespace HeuristicLab.Encodings.RealVectorEncoding { … … 54 55 Parameters.Add(new LookupParameter<RealVector>("RealVector", "The real vector that is being manipulating.")); 55 56 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds for each dimension of the vector.")); 57 58 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IRealVectorManipulator))) { 59 if (!typeof(MultiOperator<IRealVectorManipulator>).IsAssignableFrom(type)) 60 Operators.Add((IRealVectorManipulator)Activator.CreateInstance(type), true); 61 } 56 62 } 57 63 -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/MultiSymbolicExpressionTreeArchitectureManipulator.cs
r3596 r3674 88 88 Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeHeightParameterName, "The maximal height of the symbolic expression tree (a tree with one node has height = 0).")); 89 89 Parameters.Add(new LookupParameter<ISymbolicExpressionGrammar>(SymbolicExpressionGrammarParameterName, "The grammar that defines the allowed symbols and syntax of the symbolic expression trees.")); 90 91 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(ISymbolicExpressionTreeArchitectureManipulator))) { 92 if (!typeof(MultiOperator<ISymbolicExpressionTreeArchitectureManipulator>).IsAssignableFrom(type)) 93 Operators.Add((ISymbolicExpressionTreeArchitectureManipulator)Activator.CreateInstance(type), true); 94 } 90 95 } 91 96 -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/MultiSymbolicExpressionTreeManipulator.cs
r3596 r3674 75 75 Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeHeightParameterName, "The maximal height of the symbolic expression tree (a tree with one node has height = 0).")); 76 76 Parameters.Add(new LookupParameter<ISymbolicExpressionGrammar>(SymbolicExpressionGrammarParameterName, "The grammar that defines the allowed symbols and syntax of the symbolic expression trees.")); 77 78 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(ISymbolicExpressionTreeManipulator))) { 79 if (!typeof(MultiOperator<ISymbolicExpressionTreeManipulator>).IsAssignableFrom(type) && !typeof(ISymbolicExpressionTreeArchitectureManipulator).IsAssignableFrom(type)) 80 Operators.Add((ISymbolicExpressionTreeManipulator)Activator.CreateInstance(type), true); 81 } 77 82 } 78 83
Note: See TracChangeset
for help on using the changeset viewer.