Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/14 22:34:05 (11 years ago)
Author:
abeham
Message:

#2174: minor refactorings

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveEvaluator.cs

    r10753 r10754  
    3131
    3232namespace HeuristicLab.Problems.Programmable {
    33   [Item("SimOptSingleObjectiveEvaluator", "Evaluates a parameter vector as received from a SimOptRunner.")]
     33  [Item("Single-objective Evaluator", "Calls the script's Evaluate method to get the quality value of the parameter vector.")]
    3434  [StorableClass]
    35   public class SimOptSingleObjectiveEvaluator : SingleSuccessorOperator, ISingleObjectiveProgrammableProblemEvaluator, IStochasticOperator {
     35  public class SingleObjectiveEvaluator : SingleSuccessorOperator, ISingleObjectiveProgrammableProblemEvaluator, IStochasticOperator {
    3636
    3737    public ILookupParameter<IRandom> RandomParameter {
     
    3939    }
    4040
    41     public ILookupParameter<ProgrammableProblemScript> ScriptParameter {
    42       get { return (ILookupParameter<ProgrammableProblemScript>)Parameters["Script"]; }
     41    public ILookupParameter<SingleObjectiveScript> ScriptParameter {
     42      get { return (ILookupParameter<SingleObjectiveScript>)Parameters["Script"]; }
    4343    }
    4444
     
    5252
    5353    [StorableConstructor]
    54     protected SimOptSingleObjectiveEvaluator(bool deserializing) : base(deserializing) { }
    55     protected SimOptSingleObjectiveEvaluator(SimOptSingleObjectiveEvaluator original, Cloner cloner) : base(original, cloner) { }
    56     public SimOptSingleObjectiveEvaluator() {
     54    protected SingleObjectiveEvaluator(bool deserializing) : base(deserializing) { }
     55    protected SingleObjectiveEvaluator(SingleObjectiveEvaluator original, Cloner cloner) : base(original, cloner) { }
     56    public SingleObjectiveEvaluator() {
    5757      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    58       Parameters.Add(new LookupParameter<ProgrammableProblemScript>("Script", "The script that will execute the evaluation function and define the parameter vector."));
     58      Parameters.Add(new LookupParameter<SingleObjectiveScript>("Script", "The script that will execute the evaluation function and define the parameter vector."));
    5959      Parameters.Add(new LookupParameter<ParameterVector>("ParameterVector", "The vector that holds the parameters."));
    6060      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
     
    6262
    6363    public override IDeepCloneable Clone(Cloner cloner) {
    64       return new SimOptSingleObjectiveEvaluator(this, cloner);
     64      return new SingleObjectiveEvaluator(this, cloner);
    6565    }
    6666
Note: See TracChangeset for help on using the changeset viewer.