Changeset 12444 for branches/TerminationCriteria
- Timestamp:
- 06/15/15 11:08:52 (9 years ago)
- Location:
- branches/TerminationCriteria/HeuristicLab.Termination/3.3
- Files:
-
- 1 added
- 1 deleted
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Termination/3.3/HeuristicLab.Termination-3.3.csproj
r12411 r12444 145 145 </ItemGroup> 146 146 <ItemGroup> 147 <Compile Include="I SingleValueTerminator.cs" />147 <Compile Include="ITerminationBasedOperator.cs" /> 148 148 <Compile Include="SingleObjectiveQualityTerminator.cs" /> 149 149 <Compile Include="ThresholdTerminator.cs" /> 150 <Compile Include="Views\ SingleValueTerminatorView.cs">150 <Compile Include="Views\ThresholdTerminatorView.cs"> 151 151 <SubType>UserControl</SubType> 152 152 </Compile> 153 <Compile Include="Views\ SingleValueTerminatorView.Designer.cs">154 <DependentUpon> SingleValueTerminatorView.cs</DependentUpon>153 <Compile Include="Views\ThresholdTerminatorView.Designer.cs"> 154 <DependentUpon>ThresholdTerminatorView.cs</DependentUpon> 155 155 </Compile> 156 156 <Compile Include="ITerminator.cs" /> -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ITerminator.cs
r12402 r12444 26 26 /// An interface which represents an operator for checking a termination criterion. 27 27 /// </summary> 28 public interface ITerminator : I Operator {28 public interface ITerminator : ITerminationBasedOperator { 29 29 } 30 30 } -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/SingleObjectiveQualityTerminator.cs
r12436 r12444 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; 24 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 26 28 namespace HeuristicLab.Termination { 27 [Item("SingleObjectiveQualityTerminator", "")] 29 [Item("SingleObjectiveQualityTerminator", "A termination criterion which uses a quality parameter (eg. current best quality) for termination.")] 30 [StorableClass] 28 31 public class SingleObjectiveQualityTerminator : ComparisonTerminator<DoubleValue> { 32 [StorableConstructor] 33 protected SingleObjectiveQualityTerminator(bool deserializing) : base(deserializing) { } 34 protected SingleObjectiveQualityTerminator(SingleObjectiveQualityTerminator original, Cloner cloner) 35 : base(original, cloner) { } 29 36 public SingleObjectiveQualityTerminator() { } 30 37 -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/TerminationOperator.cs
r12410 r12444 30 30 [Item("TerminationOperator", "An operator which either calls the terminate- or the continue branch.")] 31 31 [StorableClass] 32 public sealed class TerminationOperator : InstrumentedOperator {32 public sealed class TerminationOperator : InstrumentedOperator, ITerminationBasedOperator { 33 33 public ILookupParameter<ITerminator> TerminationParameter { 34 34 get { return (ILookupParameter<ITerminator>)Parameters["Termination"]; } -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ThresholdTerminator.cs
r12436 r12444 30 30 [Item("ThresholdTerminator", "Base class for all termination criteria which specifies some threshold.")] 31 31 [StorableClass] 32 public abstract class ThresholdTerminator<T> : Terminator, ISingleValueTerminator where T : class, IItem, IStringConvertibleValue, new() { 33 IParameter ISingleValueTerminator.SingleValueParameter { 34 get { return ThresholdParameter; } 35 } 32 public abstract class ThresholdTerminator<T> : Terminator where T : class, IItem, IStringConvertibleValue, new() { 36 33 [Storable] 37 34 private IFixedValueParameter<T> thresholdParameter; -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.Designer.cs
r12441 r12444 25 25 26 26 namespace HeuristicLab.Termination.Views { 27 partial class SingleValueTerminatorView{27 partial class ThresholdTerminatorView<T> { 28 28 /// <summary> 29 29 /// Required designer variable. -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.cs
r12441 r12444 20 20 #endregion 21 21 22 using HeuristicLab.Core; 22 23 using HeuristicLab.Core.Views; 24 using HeuristicLab.Data; 23 25 using HeuristicLab.MainForm; 24 26 … … 26 28 27 29 [View("ThresholdTerminator View")] 28 [Content(typeof( ISingleValueTerminator), true)]29 public partial class SingleValueTerminatorView : ItemView{30 [Content(typeof(ThresholdTerminator<>), true)] 31 public partial class ThresholdTerminatorView<T> : ItemView where T : class, IItem, IStringConvertibleValue, new() { 30 32 31 public new ISingleValueTerminatorContent {32 get { return ( ISingleValueTerminator)base.Content; }33 public new ThresholdTerminator<T> Content { 34 get { return (ThresholdTerminator<T>)base.Content; } 33 35 set { base.Content = value; } 34 36 } 35 37 36 public SingleValueTerminatorView() {38 public ThresholdTerminatorView() { 37 39 InitializeComponent(); 38 40 } … … 42 44 viewHost.Content = null; 43 45 if (Content != null) { 44 viewHost.Content = Content. SingleValueParameter.ActualValue ?? Content.SingleValueParameter;46 viewHost.Content = Content.ThresholdParameter.ActualValue ?? Content.ThresholdParameter; 45 47 } 46 48 }
Note: See TracChangeset
for help on using the changeset viewer.