Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/16 18:02:08 (8 years ago)
Author:
mkommend
Message:

#2281: Merged r14037,r14056,r14057,r14071, r14100 into stable.

Location:
stable
Files:
3 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Optimization

  • stable/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj

    r13282 r14133  
    155155    <Compile Include="Interfaces\ILocalImprovementAlgorithmOperator.cs" />
    156156    <Compile Include="Interfaces\IMultiObjectiveOperator.cs" />
     157    <Compile Include="Results\IResultParameter.cs" />
    157158    <Compile Include="Interfaces\ISingleObjectiveOperator.cs" />
    158159    <Compile Include="Interfaces\ISingleObjectivePathRelinker.cs" />
     
    168169    <Compile Include="MetaOptimizers\Experiment.cs" />
    169170    <Compile Include="MetaOptimizers\TimeLimitRun.cs" />
     171    <Compile Include="Results\ResultParameter.cs" />
    170172    <Compile Include="RunCollectionModification\RunCollectionRunRemover.cs" />
    171173    <Compile Include="Plugin.cs" />
     
    229231    <Compile Include="RunCollection.cs" />
    230232    <Compile Include="Run.cs" />
    231     <Compile Include="Interfaces\IResult.cs" />
     233    <Compile Include="Results\IResult.cs" />
    232234    <Compile Include="Interfaces\IDiscreteDoubleValueModifier.cs" />
    233235    <Compile Include="Interfaces\IExhaustiveMoveGenerator.cs" />
     
    253255    <Compile Include="Interfaces\ITabuChecker.cs" />
    254256    <Compile Include="Interfaces\ITabuMaker.cs" />
    255     <Compile Include="Result.cs" />
     257    <Compile Include="Results\Result.cs" />
    256258    <Compile Include="Algorithms\UserDefinedAlgorithm.cs" />
    257259    <Compile Include="Algorithms\EngineAlgorithm.cs" />
    258260    <Compile Include="Properties\AssemblyInfo.cs" />
    259     <Compile Include="ResultCollection.cs" />
     261    <Compile Include="Results\ResultCollection.cs" />
    260262    <Compile Include="Problems\UserDefinedProblem.cs" />
    261263  </ItemGroup>
  • stable/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs

    r14071 r14133  
    3333  public sealed class ResultParameter<T> : LookupParameter<T>, IResultParameter<T> where T : class, IItem {
    3434    public override Image ItemImage { get { return VSImageLibrary.Exception; } }
     35    public override bool CanChangeDescription { get { return true; } }
    3536
    3637    [Storable]
     
    7172    }
    7273    public ResultParameter() : this("Anonymous", string.Empty, "Results") { }
    73     public ResultParameter(string name) : this(name, string.Empty, "Results") { }
    7474    public ResultParameter(string name, string description) : this(name, description, "Results") { }
     75
    7576    public ResultParameter(string name, string description, string resultCollectionName)
    7677      : base(name, description, string.Empty) {
    7778      if (string.IsNullOrEmpty(resultCollectionName)) throw new ArgumentException("resultCollectionName");
    7879      this.resultCollectionName = resultCollectionName;
     80      Hidden = false;
    7981    }
    8082    public ResultParameter(string name, string description, string resultCollectionName, T defaultValue)
     
    8486      this.resultCollectionName = resultCollectionName;
    8587      this.defaultValue = defaultValue;
     88      Hidden = false;
    8689    }
    8790
     
    102105      if (!results.TryGetValue(ActualName, out result)) {
    103106        if (DefaultValue == null) throw new InvalidOperationException("ResultParameter (" + ActualName + "): Result not found and no default value specified.");
    104         result = new Result(ActualName, (T)DefaultValue.Clone());
     107        result = ItemDescription == Description ? new Result(ActualName, (T)DefaultValue.Clone()) : new Result(ActualName, Description, (T)DefaultValue.Clone());
    105108        results.Add(result);
    106109      }
     
    127130      IResult result;
    128131      if (!results.TryGetValue(ActualName, out result)) {
    129         result = new Result(ActualName, value);
     132        result = ItemDescription == Description ? new Result(ActualName, value) : new Result(ActualName, Description, value);
    130133        results.Add(result);
    131134      } else result.Value = value;
Note: See TracChangeset for help on using the changeset viewer.