Changeset 4214 for trunk/tools/Templates/HeuristicLabProblemTemplate
- Timestamp:
- 08/14/10 18:31:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Templates/HeuristicLabProblemTemplate/DefaultProblem.cs
r4188 r4214 38 38 [Creatable("Problems")] 39 39 [StorableClass] 40 public sealed class $safeitemname$ : ParameterizedNamedItem, I$problemType$ObjectiveProblem{40 public sealed class $safeitemname$ : ParameterizedNamedItem, $problemTypeImplementation$ { 41 41 public override Image ItemImage { 42 42 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; } … … 44 44 45 45 #region Parameter Properties 46 $maximizationParameterProperty$ 47 IParameter I$problemType$ObjectiveProblem.MaximizationParameter { 48 get { return MaximizationParameter; } 49 } 50 $solutionCreatorParameterProperty$ 51 IParameter IProblem.SolutionCreatorParameter { 52 get { return SolutionCreatorParameter; } 53 } 54 $evaluatorParameterProperty$ 55 IParameter IProblem.EvaluatorParameter { 56 get { return EvaluatorParameter; } 57 } 46 $problemSpecificParameterProperties$ 58 47 $parameterProperties$ 59 48 #endregion 60 49 61 50 #region Properties 51 $problemSpecificProperties$ 62 52 $properties$ 63 53 public IEnumerable<IOperator> Operators { 64 54 get { return operators; } 65 }66 ISolutionCreator IProblem.SolutionCreator {67 get { return SolutionCreatorParameter.Value; }68 }69 I$problemType$ObjectiveEvaluator I$problemType$ObjectiveProblem.Evaluator {70 get { return EvaluatorParameter.Value; }71 }72 IEvaluator IProblem.Evaluator {73 get { return EvaluatorParameter.Value; }74 55 } 75 56 #endregion … … 84 65 // TODO: Create a new instance of evaluator and solution creator 85 66 67 $problemSpecificParameterInitializers$ 86 68 $parameterInitializers$ 87 69 … … 141 123 // TODO: Add operators from the representation either by direct instantiation, or by using ApplicationManager.Manger.GetInstances<T>().Cast<IOperator>() 142 124 } 125 private void ParameterizeSolutionCreator() { 126 // TODO: Set the parameters of the solution creator 127 } 128 private void ParameterizeEvaluator() { 129 // TODO: Set the parameters of the evaluator 130 } 143 131 #endregion 144 132 }
Note: See TracChangeset
for help on using the changeset viewer.