Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18085


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

#2521: added algorithm and problem lookup parameters

Location:
branches/2521_ProblemRefactoring
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj

    r17953 r18085  
    164164    <Compile Include="Interfaces\ILocalImprovementAlgorithmOperator.cs" />
    165165    <Compile Include="Interfaces\IMultiObjectiveOperator.cs" />
     166    <Compile Include="Parameters\AlgorithmLookupParameter.cs" />
     167    <Compile Include="Parameters\MultiObjectiveProblemLookupParameter.cs" />
     168    <Compile Include="Parameters\ProblemLookupParameter.cs" />
    166169    <Compile Include="Results\IResultsProducingItem.cs" />
    167170    <Compile Include="MultiObjective\CrowdingCalculator.cs" />
  • 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.