Changeset 3245
- Timestamp:
- 03/31/10 18:36:19 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs
r3239 r3245 114 114 } 115 115 116 public OptionalValueParameter<I AntTrailVisualizer> VisualizerParameter {117 get { return (OptionalValueParameter<I AntTrailVisualizer>)Parameters["Visualizer"]; }116 public OptionalValueParameter<ISingleObjectiveSolutionsVisualizer> VisualizerParameter { 117 get { return (OptionalValueParameter<ISingleObjectiveSolutionsVisualizer>)Parameters["Visualizer"]; } 118 118 } 119 119 IParameter IProblem.VisualizerParameter { … … 165 165 get { return ArtificialAntExpressionGrammarParameter.Value; } 166 166 } 167 public I AntTrailVisualizer Visualizer {167 public ISingleObjectiveSolutionsVisualizer Visualizer { 168 168 get { return VisualizerParameter.Value; } 169 169 set { VisualizerParameter.Value = value; } … … 197 197 Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", world)); 198 198 Parameters.Add(new ValueParameter<IntValue>("MaxTimeSteps", "The number of time steps the artificial ant has available to collect all food items.", new IntValue(600))); 199 Parameters.Add(new ValueParameter<I AntTrailVisualizer>("Visualizer", "The operator which should be used to visualize artificial ant solutions.", visualizer));199 Parameters.Add(new ValueParameter<ISingleObjectiveSolutionsVisualizer>("Visualizer", "The operator which should be used to visualize artificial ant solutions.", visualizer)); 200 200 201 201 creator.SymbolicExpressionTreeParameter.ActualName = "AntTrailSolution"; … … 310 310 antTrailVisualizer.WorldParameter.ActualName = WorldParameter.Name; 311 311 antTrailVisualizer.MaxTimeStepsParameter.ActualName = MaxTimeStepsParameter.Name; 312 } 313 var bestSymExpressionVisualizer = Visualizer as BestSymbolicExpressionTreeVisualizer; 314 if (bestSymExpressionVisualizer != null) { 315 bestSymExpressionVisualizer.SymbolicExpressionTreeParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 312 316 } 313 317 } -
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/HeuristicLab.Problems.ArtificialAnt-3.3.csproj
r3239 r3245 83 83 <Compile Include="AntInterpreter.cs" /> 84 84 <Compile Include="BestAntTrailVisualizer.cs" /> 85 <Compile Include="BestSymbolicExpressionTreeVisualizer.cs" /> 85 86 <Compile Include="HeuristicLabProblemsArtificialAntPlugin.cs" /> 86 87 <Compile Include="IAntTrailVisualizer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.