Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/20/14 15:12:27 (9 years ago)
Author:
mkommend
Message:

#2174: Adapted IEncoding and Encoding base class.

Location:
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveAnalyzer.cs

    r11484 r11559  
    2020    }
    2121
    22     public ILookupParameter<Encoding> EncodingParameter {
    23       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     22    public ILookupParameter<IEncoding> EncodingParameter {
     23      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    2424    }
    2525
     
    3838      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    3939      Parameters.Add(new LookupParameter<IMultiObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    40       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     40      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    4141      Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>("Qualities", "The qualities of the parameter vector."));
    4242      Parameters.Add(new LookupParameter<ResultCollection>("Results", "The results collection to write to."));
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveEvaluator.cs

    r11484 r11559  
    4242    }
    4343
    44     public ILookupParameter<Encoding> EncodingParameter {
    45       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     44    public ILookupParameter<IEncoding> EncodingParameter {
     45      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    4646    }
    4747
     
    5656      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    5757      Parameters.Add(new LookupParameter<IMultiObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    58       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     58      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    5959      Parameters.Add(new LookupParameter<DoubleArray>("Qualities", "The qualities of the parameter vector."));
    6060    }
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveAnalyzer.cs

    r11484 r11559  
    2020    }
    2121
    22     public ILookupParameter<Encoding> EncodingParameter {
    23       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     22    public ILookupParameter<IEncoding> EncodingParameter {
     23      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    2424    }
    2525
     
    3838      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    3939      Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    40       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     40      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    4141      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
    4242      Parameters.Add(new LookupParameter<ResultCollection>("Results", "The results collection to write to."));
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveEvaluator.cs

    r11484 r11559  
    4242    }
    4343
    44     public ILookupParameter<Encoding> EncodingParameter {
    45       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     44    public ILookupParameter<IEncoding> EncodingParameter {
     45      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    4646    }
    4747
     
    5656      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    5757      Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    58       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     58      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    5959      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
    6060    }
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveImprover.cs

    r11484 r11559  
    2525    }
    2626
    27     public ILookupParameter<Encoding> EncodingParameter {
    28       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     27    public ILookupParameter<IEncoding> EncodingParameter {
     28      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    2929    }
    3030
     
    5555      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    5656      Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    57       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     57      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    5858      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
    5959      Parameters.Add(new LookupParameter<BoolValue>("Maximization", "Whether the problem should be minimized or maximized."));
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveEvaluator.cs

    r11484 r11559  
    4242    }
    4343
    44     public ILookupParameter<Encoding> EncodingParameter {
    45       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     44    public ILookupParameter<IEncoding> EncodingParameter {
     45      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    4646    }
    4747
     
    6060      Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use."));
    6161      Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    62       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     62      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    6363      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
    6464      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The quality of the move."));
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveGenerator.cs

    r11484 r11559  
    4848    }
    4949
    50     public ILookupParameter<Encoding> EncodingParameter {
    51       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     50    public ILookupParameter<IEncoding> EncodingParameter {
     51      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    5252    }
    5353
     
    6060      Parameters.Add(new ValueLookupParameter<IntValue>("SampleSize", "The number of moves to sample."));
    6161      Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition."));
    62       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     62      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    6363    }
    6464
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveMaker.cs

    r11484 r11559  
    3333  [StorableClass]
    3434  public class SingleObjectiveMoveMaker : InstrumentedOperator, ISingleObjectiveMoveOperator, IMoveMaker {
    35     public ILookupParameter<Encoding> EncodingParameter {
    36       get { return (ILookupParameter<Encoding>)Parameters["Encoding"]; }
     35    public ILookupParameter<IEncoding> EncodingParameter {
     36      get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; }
    3737    }
    3838
     
    4949    protected SingleObjectiveMoveMaker(SingleObjectiveMoveMaker original, Cloner cloner) : base(original, cloner) { }
    5050    public SingleObjectiveMoveMaker() {
    51       Parameters.Add(new LookupParameter<Encoding>("Encoding", "An item that holds the problem's encoding."));
     51      Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding."));
    5252      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector."));
    5353      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The quality of the move."));
Note: See TracChangeset for help on using the changeset viewer.