Changeset 3121 for trunk/sources
- Timestamp:
- 03/19/10 15:32:52 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.OneMax/3.3
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.OneMax/3.3/HeuristicLab.Problems.OneMax-3.3.csproj
r3115 r3121 87 87 <ItemGroup> 88 88 <Compile Include="Interfaces\IOneMaxSolutionsVisualizer.cs" /> 89 <Compile Include="Interfaces\IOneMaxMoveEvaluator.cs" /> 90 <Compile Include="MoveEvaluators\OneMaxMoveEvaluator.cs" /> 91 <Compile Include="MoveEvaluators\OneMaxOneBitflipMoveEvaluator.cs" /> 89 92 <Compile Include="Properties\AssemblyInfo.cs" /> 90 93 <Compile Include="Evaluators\OneMaxEvaluator.cs" /> -
trunk/sources/HeuristicLab.Problems.OneMax/3.3/Onemax.cs
r3115 r3121 197 197 OnVisualizerChanged(); 198 198 } 199 void OneBitflipMoveParameter_ActualNameChanged(object sender, EventArgs e) { 200 string name = ((ILookupParameter<OneBitflipMove>)sender).ActualName; 201 foreach (IOneBitflipMoveOperator op in Operators.OfType<IOneBitflipMoveOperator>()) { 202 op.OneBitflipMoveParameter.ActualName = name; 203 } 204 } 199 205 #endregion 200 206 … … 225 231 ParameterizeOperators(); 226 232 } 233 234 InitializeMoveGenerators(); 235 } 236 private void InitializeMoveGenerators() { 237 foreach (IOneBitflipMoveOperator op in Operators.OfType<IOneBitflipMoveOperator>()) { 238 if (op is IMoveGenerator) { 239 op.OneBitflipMoveParameter.ActualNameChanged += new EventHandler(OneBitflipMoveParameter_ActualNameChanged); 240 } 241 } 227 242 } 228 243 private void ParameterizeOperators() { … … 234 249 op.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 235 250 } 251 foreach (IBinaryVectorMoveOperator op in Operators.OfType<IBinaryVectorMoveOperator>()) { 252 op.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 253 } 236 254 } 237 255 #endregion
Note: See TracChangeset
for help on using the changeset viewer.