Changeset 16772 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser
- Timestamp:
- 04/08/19 15:29:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs
r16644 r16772 1 using HEAL.Attic; 1 using System; 2 using System.ComponentModel; 3 using System.Drawing; 4 using System.Runtime.CompilerServices; 5 using HeuristicLab.Common; 6 using HeuristicLab.Core; 7 using HeuristicLab.Problems.DataAnalysis.Annotations; 8 using HEAL.Attic; 2 9 3 10 namespace HeuristicLab.Problems.DataAnalysis { 4 11 [StorableType("8109BE58-CCFB-4462-A2F4-EEE5DFADAFF7")] 5 public class IntervalConstraint { 12 [Item("Interval Constraint", "Constraint on intervals.")] 13 public class IntervalConstraint : Item { 6 14 public string Expression { get; set; } 7 15 public string Definition { get; set; } … … 13 21 public int NumberOfDerivation { get; set; } 14 22 15 public IntervalConstraint() { 23 public IntervalConstraint() {} 16 24 17 public IntervalConstraint(string expression, string definition, Interval interval, bool inclusiveLowerBound, bool inclusiveUpperBound, bool isDerivation, string variable, int numberOfDerivation) { 25 public IntervalConstraint(string expression, string definition, Interval interval, bool inclusiveLowerBound, 26 bool inclusiveUpperBound, bool isDerivation, string variable, int numberOfDerivation) { 18 27 Expression = expression; 19 28 Definition = definition; … … 25 34 NumberOfDerivation = numberOfDerivation; 26 35 } 36 37 public override IDeepCloneable Clone(Cloner cloner) { 38 return new IntervalConstraint(this, cloner); 39 } 40 41 protected IntervalConstraint(IntervalConstraint original, Cloner cloner) 42 : base(original, cloner) { 43 this.Expression = original.Expression; 44 this.Definition = original.Definition; 45 this.Interval = original.Interval; 46 this.InclusiveLowerBound = original.InclusiveLowerBound; 47 this.InclusiveUpperBound = original.InclusiveUpperBound; 48 this.IsDerivation = original.IsDerivation; 49 this.Variable = original.Variable; 50 this.NumberOfDerivation = NumberOfDerivation; 51 } 52 53 public event EventHandler Changed; 54 protected virtual void OnChanged(EventArgs e) { 55 EventHandler handlers = Changed; 56 if (handlers != null) 57 handlers(this, e); 58 } 27 59 } 28 60 }
Note: See TracChangeset
for help on using the changeset viewer.