Changeset 12410 for branches/TerminationCriteria/HeuristicLab.Termination
- Timestamp:
- 06/01/15 14:21:02 (9 years ago)
- Location:
- branches/TerminationCriteria/HeuristicLab.Termination/3.3
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Termination/3.3/HeuristicLab.Termination-3.3.csproj
r12402 r12410 73 73 </PropertyGroup> 74 74 <ItemGroup> 75 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 76 <SpecificVersion>False</SpecificVersion> 77 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 78 </Reference> 75 79 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 76 80 <SpecificVersion>False</SpecificVersion> … … 141 145 </ItemGroup> 142 146 <ItemGroup> 147 <Compile Include="IThresholdTerminator.cs" /> 148 <Compile Include="MaximumIterationsTerminator.cs" /> 149 <Compile Include="SingleObjectiveQualityTerminator.cs" /> 143 150 <Compile Include="ThresholdTerminator.cs" /> 144 151 <Compile Include="Views\ThresholdTerminatorView.cs"> -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/TerminationOperator.cs
r12405 r12410 82 82 public override IOperation InstrumentedApply() { 83 83 var next = new OperationCollection(base.InstrumentedApply()); 84 if (TerminateParameter.ActualValue != null && TerminateParameter.ActualValue.Value) {84 if (TerminateParameter.ActualValue.Value) { 85 85 if (TerminateBranch != null) next.Insert(0, ExecutionContext.CreateOperation(TerminateBranch)); 86 86 } else { -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ThresholdTerminator.cs
r12408 r12410 31 31 [Item("ThresholdTerminator", "Base class for all termination criteria which specifies some threshold.")] 32 32 [StorableClass] 33 public abstract class ThresholdTerminator<T> : Terminator where T : class, IItem, IStringConvertibleValue, new() {33 public abstract class ThresholdTerminator<T> : Terminator, IThresholdTerminator where T : class, IItem, IStringConvertibleValue, new() { 34 34 public IFixedValueParameter<T> ThresholdParameter { 35 35 get { return (IFixedValueParameter<T>)Parameters["Threshold"]; } 36 } 37 IParameter IThresholdTerminator.ThresholdParameter { 38 get { return ThresholdParameter; } 36 39 } 37 40 -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.Designer.cs
r12408 r12410 25 25 26 26 namespace HeuristicLab.Termination.Views { 27 partial class ThresholdTerminatorView <T> where T : class, IItem, IComparable, IStringConvertibleValue, new(){27 partial class ThresholdTerminatorView { 28 28 /// <summary> 29 29 /// Required designer variable. -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.cs
r12408 r12410 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Core;24 22 using HeuristicLab.Core.Views; 25 using HeuristicLab.Data;26 23 using HeuristicLab.MainForm; 27 24 … … 29 26 30 27 [View("ThresholdTerminator View")] 31 [Content(typeof( ThresholdTerminator<>), true)]32 public partial class ThresholdTerminatorView <T> : ItemView where T : class, IItem, IComparable, IStringConvertibleValue, new(){28 [Content(typeof(IThresholdTerminator), true)] 29 public partial class ThresholdTerminatorView : ItemView { 33 30 34 public new ThresholdTerminator<T>Content {35 get { return ( ThresholdTerminator<T>)base.Content; }31 public new IThresholdTerminator Content { 32 get { return (IThresholdTerminator)base.Content; } 36 33 set { base.Content = value; } 37 34 } … … 45 42 viewHost.Content = null; 46 43 if (Content != null) { 47 if (Content.ThresholdParameter. Value != null)48 viewHost.Content = Content.ThresholdParameter. Value;44 if (Content.ThresholdParameter.ActualValue != null) 45 viewHost.Content = Content.ThresholdParameter.ActualValue; 49 46 else 50 47 viewHost.Content = Content.ThresholdParameter;
Note: See TracChangeset
for help on using the changeset viewer.