Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/21 15:35:05 (3 years ago)
Author:
abeham
Message:

#2521: added algorithm and problem lookup parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/ContextLookupParameter.cs

    r17257 r18085  
    77  [Item("ContextLookupParameter", "A parameter that looks up contexts by type.")]
    88  [StorableType("4ac189c8-6cf3-48fd-bf79-392d35a872db")]
    9   public class ContextLookupParameter<T> : ContextParameter, IContextLookupParameter<T>
     9  public abstract class ContextLookupParameter<T> : ContextParameter, IContextLookupParameter<T>
    1010      where T : class, IParameterizedItem {
    1111
     
    1717    protected ContextLookupParameter(StorableConstructorFlag _) : base(_) { }
    1818    protected ContextLookupParameter(ContextLookupParameter<T> original, Cloner cloner) : base(original, cloner) { }
    19     public ContextLookupParameter() : base("ContextLookup." + typeof(T).Name, string.Empty, typeof(T)) {
     19    protected ContextLookupParameter() : this("ContextLookup." + typeof(T).Name) { }
     20    protected ContextLookupParameter(string name) : this(name, string.Empty) { }
     21    protected ContextLookupParameter(string name, string description) : base(name, description, typeof(T)) {
    2022      Hidden = true;
    21     }
    22 
    23     public override IDeepCloneable Clone(Cloner cloner) {
    24       return new ContextLookupParameter<T>(this, cloner);
    2523    }
    2624
Note: See TracChangeset for help on using the changeset viewer.