Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 18:38:37 (8 years ago)
Author:
mkommend
Message:

#2521: refactored programmable problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/CompiledProblemDefinition.cs

    r12012 r13345  
    2424
    2525namespace HeuristicLab.Problems.Programmable {
    26   public abstract class CompiledProblemDefinition : IProblemDefinition {
    27     private IEncoding encoding;
    28     public IEncoding Encoding {
     26  public abstract class CompiledProblemDefinition<TEncoding, TSolution> : IProblemDefinition<TEncoding, TSolution>
     27    where TEncoding : class, IEncoding<TSolution>
     28    where TSolution : class, ISolution {
     29    private TEncoding encoding;
     30    public TEncoding Encoding {
    2931      get { return encoding; }
    30       protected set {
     32      internal set {
    3133        if (value == null) throw new ArgumentNullException("The encoding must not be null.");
    3234        encoding = value;
     
    3840
    3941    protected CompiledProblemDefinition() { }
    40     protected CompiledProblemDefinition(IEncoding encoding)
     42    protected CompiledProblemDefinition(TEncoding encoding)
    4143      : base() {
    4244      Encoding = encoding;
Note: See TracChangeset for help on using the changeset viewer.