- Timestamp:
- 04/08/19 15:29:49 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r16756 r16772 306 306 <Compile Include="Implementation\Classification\ThresholdCalculators\NormalDistributionCutPointsThresholdCalculator.cs" /> 307 307 <Compile Include="Implementation\Classification\ThresholdCalculators\ThresholdCalculator.cs" /> 308 <Compile Include="Properties\Annotations.cs" /> 308 309 <Compile Include="TextValue.cs" /> 309 310 <None Include="HeuristicLab.snk" /> -
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 } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ParsedConstraint.cs
r16759 r16772 29 29 : base(original, cloner) { 30 30 this.input = original.Input ?? string.Empty; 31 this.constraints = original.Constraints ?? new List<IntervalConstraint>();31 this.constraints = original.Constraints ?? new ItemList<IntervalConstraint>(); 32 32 } 33 33 … … 38 38 public ParsedConstraint() { 39 39 this.input = string.Empty; 40 this.constraints = new List<IntervalConstraint>();40 this.constraints = new ItemList<IntervalConstraint>(); 41 41 } 42 42 43 43 public ParsedConstraint(string input) { 44 44 this.input = input; 45 this.constraints = new List<IntervalConstraint>();45 this.constraints = new ItemList<IntervalConstraint>(); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.