Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/14/10 18:31:09 (14 years ago)
Author:
abeham
Message:

#567

  • Added problem wizard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Templates/HeuristicLabProblemTemplate/DefaultProblem.cs

    r4188 r4214  
    3838  [Creatable("Problems")]
    3939  [StorableClass]
    40   public sealed class $safeitemname$ : ParameterizedNamedItem, I$problemType$ObjectiveProblem {
     40  public sealed class $safeitemname$ : ParameterizedNamedItem, $problemTypeImplementation$ {
    4141    public override Image ItemImage {
    4242      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
     
    4444
    4545    #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$
    5847    $parameterProperties$
    5948    #endregion
    6049
    6150    #region Properties
     51    $problemSpecificProperties$
    6252    $properties$
    6353    public IEnumerable<IOperator> Operators {
    6454      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; }
    7455    }
    7556    #endregion
     
    8465      // TODO: Create a new instance of evaluator and solution creator
    8566
     67      $problemSpecificParameterInitializers$
    8668      $parameterInitializers$
    8769
     
    141123      // TODO: Add operators from the representation either by direct instantiation, or by using ApplicationManager.Manger.GetInstances<T>().Cast<IOperator>()
    142124    }
     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    }
    143131    #endregion
    144132  }
Note: See TracChangeset for help on using the changeset viewer.