Changeset 13345 for branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/CompiledProblemDefinition.cs
- Timestamp:
- 11/23/15 18:38:37 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/CompiledProblemDefinition.cs
r12012 r13345 24 24 25 25 namespace 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 { 29 31 get { return encoding; } 30 protectedset {32 internal set { 31 33 if (value == null) throw new ArgumentNullException("The encoding must not be null."); 32 34 encoding = value; … … 38 40 39 41 protected CompiledProblemDefinition() { } 40 protected CompiledProblemDefinition( IEncoding encoding)42 protected CompiledProblemDefinition(TEncoding encoding) 41 43 : base() { 42 44 Encoding = encoding;
Note: See TracChangeset
for help on using the changeset viewer.