Changeset 13404 for branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorEncoding.cs
- Timestamp:
- 11/26/15 09:30:43 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Property svn:ignore
-
old new 5 5 *.vs10x 6 6 Plugin.cs 7 *.DotSettings
-
- Property svn:ignore
-
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorEncoding.cs
r13396 r13404 52 52 } 53 53 #endregion 54 55 54 56 55 public int Length { … … 108 107 typeof (IBinaryVectorMoveOperator), 109 108 typeof (IBinaryVectorMultiNeighborhoodShakingOperator), 109 typeof (IBinaryVectorSolutionOperator), 110 typeof (IBinaryVectorSolutionsOperator) 110 111 }; 111 112 } … … 129 130 ConfigureBitFlipMoveOperators(operators.OfType<IOneBitflipMoveOperator>()); 130 131 ConfigureShakingOperators(operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()); 132 ConfigureSolutionOperators(operators.OfType<IBinaryVectorSolutionOperator>()); 133 ConfigureSolutionsOperators(operators.OfType<IBinaryVectorSolutionsOperator>()); 131 134 } 132 135 … … 134 137 private void ConfigureCreators(IEnumerable<IBinaryVectorCreator> creators) { 135 138 foreach (var creator in creators) { 136 creator.BinaryVectorParameter.ActualName = Name;137 139 creator.LengthParameter.ActualName = LengthParameter.Name; 138 140 } … … 145 147 } 146 148 private void ConfigureManipulators(IEnumerable<IBinaryVectorManipulator> manipulators) { 147 foreach (var manipulator in manipulators) { 148 manipulator.BinaryVectorParameter.ActualName = Name; 149 } 149 // binary vector manipulators don't contain additional parameters besides the solution parameter 150 150 } 151 151 private void ConfigureMoveOperators(IEnumerable<IBinaryVectorMoveOperator> moveOperators) { 152 foreach (var moveOperator in moveOperators) { 153 moveOperator.BinaryVectorParameter.ActualName = Name; 154 } 152 // binary vector move operators don't contain additional parameters besides the solution parameter 155 153 } 156 154 private void ConfigureBitFlipMoveOperators(IEnumerable<IOneBitflipMoveOperator> oneBitflipMoveOperators) { … … 160 158 } 161 159 private void ConfigureShakingOperators(IEnumerable<IBinaryVectorMultiNeighborhoodShakingOperator> shakingOperators) { 162 foreach (var shakingOperator in shakingOperators) { 163 shakingOperator.BinaryVectorParameter.ActualName = Name; 164 } 160 // binary vector shaking operators don't contain additional parameters besides the solution parameter 161 } 162 private void ConfigureSolutionOperators(IEnumerable<IBinaryVectorSolutionOperator> solutionOperators) { 163 foreach (var solutionOperator in solutionOperators) 164 solutionOperator.BinaryVectorParameter.ActualName = Name; 165 } 166 private void ConfigureSolutionsOperators(IEnumerable<IBinaryVectorSolutionsOperator> solutionsOperators) { 167 foreach (var solutionsOperator in solutionsOperators) 168 solutionsOperator.BinaryVectorsParameter.ActualName = Name; 165 169 } 166 170 #endregion
Note: See TracChangeset
for help on using the changeset viewer.