Changeset 12328 for branches/TerminationCriteria/HeuristicLab.Termination
- Timestamp:
- 04/20/15 11:28:32 (10 years ago)
- Location:
- branches/TerminationCriteria/HeuristicLab.Termination/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ComparisonTerminationCriterion.cs
r12310 r12328 28 28 29 29 namespace HeuristicLab.Termination { 30 [Item("ComparisonTerminationCriterion", " ")]30 [Item("ComparisonTerminationCriterion", "An termination criterion which compares to values.")] 31 31 [StorableClass] 32 public sealedclass ComparisonTerminationCriterion<T> : TerminationCriterion where T : class, IItem, IComparable {32 public class ComparisonTerminationCriterion<T> : TerminationCriterion where T : class, IItem, IComparable { 33 33 public ILookupParameter<T> LeftSideParameter { 34 34 get { return (ILookupParameter<T>)Parameters["LeftSide"]; } … … 47 47 48 48 [StorableConstructor] 49 pr ivateComparisonTerminationCriterion(bool deserializing) : base(deserializing) { }50 pr ivateComparisonTerminationCriterion(ComparisonTerminationCriterion<T> original, Cloner cloner)49 protected ComparisonTerminationCriterion(bool deserializing) : base(deserializing) { } 50 protected ComparisonTerminationCriterion(ComparisonTerminationCriterion<T> original, Cloner cloner) 51 51 : base(original, cloner) { 52 52 } … … 58 58 Parameters.Add(new LookupParameter<T>("LeftSide", "The left side of the comparison.")); 59 59 Parameters.Add(new ValueLookupParameter<T>("RightSide", "The right side of the comparison.")); 60 Parameters.Add(new ValueParameter<Comparison>("Comparison", "The type of comparison.", new Comparison(ComparisonType. Equal)) { Hidden = true });60 Parameters.Add(new ValueParameter<Comparison>("Comparison", "The type of comparison.", new Comparison(ComparisonType.GreaterOrEqual)) { Hidden = true }); 61 61 } 62 62 public ComparisonTerminationCriterion(string leftSideActualName, string rightSideActualName, ComparisonType comparison = ComparisonType.GreaterOrEqual) -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/HeuristicLab.Termination-3.3.csproj
r12310 r12328 121 121 <Compile Include="ComparisonTerminationCriterion.cs" /> 122 122 <Compile Include="MultiTerminationCriterion.cs" /> 123 <Compile Include="ExecutionTimeTimeTerminationCriterion.cs" /> 123 124 <Compile Include="TerminationCriterion.cs" /> 124 125 <Compile Include="TerminationOperator.cs" />
Note: See TracChangeset
for help on using the changeset viewer.