- Timestamp:
- 11/25/15 23:24:01 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFData.cs
r12012 r13403 39 39 /// The operator used for evaluations 40 40 /// </summary> 41 public ISingleObjectiveTestFunction ProblemEvaluator Evaluator{ get; set; }41 public ISingleObjectiveTestFunction TestFunction { get; set; } 42 42 } 43 43 } -
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFDataDescriptor.cs
r12012 r13403 24 24 namespace HeuristicLab.Problems.TestFunctions { 25 25 internal class SOTFDataDescriptor : IDataDescriptor { 26 public string Name { get { return Evaluator.FunctionName + " Function"; } }26 public string Name { get { return TestFunction.ItemName + " Function"; } } 27 27 28 28 public string Description { 29 get { return Evaluator.Description; }29 get { return TestFunction.Description; } 30 30 } 31 31 32 internal ISingleObjectiveTestFunction ProblemEvaluator Evaluator{ get; set; }32 internal ISingleObjectiveTestFunction TestFunction { get; set; } 33 33 34 public SOTFDataDescriptor(ISingleObjectiveTestFunction ProblemEvaluator evaluator) {35 Evaluator = evaluator;34 public SOTFDataDescriptor(ISingleObjectiveTestFunction testFunction) { 35 TestFunction = testFunction; 36 36 } 37 37 } -
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Instances/SOTFInstanceProvider.cs
r12012 r13403 45 45 46 46 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 47 var evaluators = ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunction ProblemEvaluator>()47 var evaluators = ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunction>() 48 48 .OrderBy(x => x.Name); 49 49 return evaluators.Select(x => new SOTFDataDescriptor(x)); … … 55 55 Name = descriptor.Name, 56 56 Description = descriptor.Description, 57 Evaluator = descriptor.Evaluator57 TestFunction = descriptor.TestFunction 58 58 }; 59 59 }
Note: See TracChangeset
for help on using the changeset viewer.