Changeset 14059
- Timestamp:
- 07/13/16 12:11:46 (8 years ago)
- Location:
- branches/PerformanceComparison
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs
r14058 r14059 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.PluginInfrastructure;30 29 31 30 namespace HeuristicLab.Optimization { 32 31 [Item("ResultParameter", "A parameter whose value is written to a result collection.")] 33 32 [StorableClass] 34 [NonDiscoverableType]35 33 public sealed class ResultParameter<T> : LookupParameter<T>, IResultParameter<T> where T : class, IItem { 36 34 public override Image ItemImage { get { return VSImageLibrary.Exception; } } … … 79 77 if (string.IsNullOrEmpty(resultCollectionName)) throw new ArgumentException("resultCollectionName"); 80 78 this.resultCollectionName = resultCollectionName; 81 } 79 } 82 80 public ResultParameter(string name, string description, string resultCollectionName, T defaultValue) 83 81 : base(name, description, string.Empty) { … … 87 85 this.defaultValue = defaultValue; 88 86 } 89 87 90 88 protected override IItem GetActualValue() { 91 89 ResultCollection results; … … 104 102 if (!results.TryGetValue(ActualName, out result)) { 105 103 if (DefaultValue == null) throw new InvalidOperationException("ResultParameter (" + ActualName + "): Result not found and no default value specified."); 106 result = new Result(ActualName, (T)DefaultValue.Clone()); 104 result = new Result(ActualName, (T)DefaultValue.Clone()); 107 105 results.Add(result); 108 106 } -
branches/PerformanceComparison/PerformanceComparison.sln
r13706 r14059 130 130 HideSolutionNode = FALSE 131 131 EndGlobalSection 132 GlobalSection(Performance) = preSolution133 HasPerformanceSessions = true134 EndGlobalSection135 132 EndGlobal
Note: See TracChangeset
for help on using the changeset viewer.