- Timestamp:
- 07/14/16 11:30:19 (8 years ago)
- Location:
- branches/HeuristicLab.Problems.MultiObjectiveTestFunctions
- Files:
-
- 1 deleted
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/DTLZInstanceProvider.cs
r13672 r14065 51 51 public override MOTFData LoadData(IDataDescriptor id) { 52 52 var descriptor = (MOTFDataDescriptor)id; 53 return new MOTFData { 54 Name = descriptor.Name, 55 Description = descriptor.Description, 56 Evaluator = descriptor.Evaluator 57 }; 53 return new MOTFData(descriptor); 58 54 } 59 55 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/IHRInstanceProvider.cs
r13988 r14065 51 51 public override MOTFData LoadData(IDataDescriptor id) { 52 52 var descriptor = (MOTFDataDescriptor)id; 53 return new MOTFData { 54 Name = descriptor.Name, 55 Description = descriptor.Description, 56 Evaluator = descriptor.Evaluator 57 }; 53 return new MOTFData(descriptor); 58 54 } 59 55 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/MISCInstanceProvider.cs
r14030 r14065 45 45 46 46 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 47 var otherProviders = ApplicationManager.Manager.GetInstances<IProblemInstanceProvider<MOTFData>>().Where(x => x.Equals(this));48 47 var evaluators = ApplicationManager.Manager.GetInstances<IMultiObjectiveTestFunction>() 49 48 .Where(x => !Handled(x)) … … 58 57 public override MOTFData LoadData(IDataDescriptor id) { 59 58 var descriptor = (MOTFDataDescriptor)id; 60 return new MOTFData { 61 Name = descriptor.Name, 62 Description = descriptor.Description, 63 Evaluator = descriptor.Evaluator 64 }; 59 return new MOTFData(descriptor); 65 60 } 66 61 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/MOTFData.cs
r13672 r14065 29 29 /// The name of the instance 30 30 /// </summary> 31 public string Name { get; set; }31 public string Name { get; private set; } 32 32 33 33 /// <summary> 34 34 /// Optional! The description of the instance 35 35 /// </summary> 36 public string Description { get; set; }36 public string Description { get; private set; } 37 37 38 38 /// <summary> 39 39 /// The operator used for evaluations 40 40 /// </summary> 41 public IMultiObjectiveTestFunction Evaluator { get;set; }41 public IMultiObjectiveTestFunction TestFunction { get; private set; } 42 42 43 public MOTFData(string name, string description, IMultiObjectiveTestFunction testFunction) { 44 Name = name; 45 Description = description; 46 TestFunction = testFunction; 47 } 48 49 internal MOTFData(MOTFDataDescriptor descriptor) { 50 Name = descriptor.Name; 51 Description = descriptor.Description; 52 TestFunction = descriptor.TestFunction; 53 } 43 54 } 44 55 -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/MOTFDataDescriptor.cs
r13672 r14065 23 23 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 24 24 internal class MOTFDataDescriptor : IDataDescriptor { 25 public string Name { get { return Evaluator.ItemName + " Function"; } }25 public string Name { get { return TestFunction.ItemName + " Function"; } } 26 26 27 27 public string Description { 28 get { return Evaluator.Description; }28 get { return TestFunction.Description; } 29 29 } 30 30 31 internal IMultiObjectiveTestFunction Evaluator{ get; private set; }31 public IMultiObjectiveTestFunction TestFunction { get; private set; } 32 32 33 public MOTFDataDescriptor(IMultiObjectiveTestFunction evaluator) {34 Evaluator = evaluator;33 public MOTFDataDescriptor(IMultiObjectiveTestFunction testFunction) { 34 TestFunction = testFunction; 35 35 } 36 36 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Instances/ZDTInstanceProvider.cs
r13672 r14065 51 51 public override MOTFData LoadData(IDataDescriptor id) { 52 52 var descriptor = (MOTFDataDescriptor)id; 53 return new MOTFData { 54 Name = descriptor.Name, 55 Description = descriptor.Description, 56 Evaluator = descriptor.Evaluator 57 }; 53 return new MOTFData(descriptor); 58 54 } 59 55 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Interfaces/IMultiObjectiveTestFunction.cs
r13620 r14065 26 26 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 27 27 /// <summary> 28 /// An interface which represents an evaluation operator formulti objective test functions.28 /// An interface which represents an multi objective test functions. 29 29 /// </summary> 30 30 public interface IMultiObjectiveTestFunction : INamedItem { -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/MultiObjectiveTestFunctionProblem.cs
r14044 r14065 186 186 187 187 public void Load(MOTFData data) { 188 TestFunction = data. Evaluator;188 TestFunction = data.TestFunction; 189 189 } 190 190 -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests
-
Property
svn:ignore
set to
bin
obj
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/MultiObjectiveTestfunctionTests.csproj
r14030 r14065 9 9 <RootNamespace>MultiObjectiveTestfunctionTests</RootNamespace> 10 10 <AssemblyName>MultiObjectiveTestfunctionTests</AssemblyName> 11 <TargetFrameworkVersion>v4.5 .2</TargetFrameworkVersion>11 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 12 12 <FileAlignment>512</FileAlignment> 13 13 <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> … … 17 17 <IsCodedUITest>False</IsCodedUITest> 18 18 <TestProjectType>UnitTest</TestProjectType> 19 <TargetFrameworkProfile /> 19 20 </PropertyGroup> 20 21 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Note: See TracChangeset
for help on using the changeset viewer.