Changeset 16773 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ParsedConstraint.cs
- Timestamp:
- 04/09/19 14:58:24 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ParsedConstraint.cs
r16772 r16773 5 5 using System.Text; 6 6 using System.Threading.Tasks; 7 using System.Windows.Markup; 7 8 using HeuristicLab.Common; 8 9 using HeuristicLab.Core; 9 10 using HeuristicLab.Data; 11 using HeuristicLab.Parameters; 10 12 11 13 namespace HeuristicLab.Problems.DataAnalysis { … … 26 28 } 27 29 30 protected string targetVariable; 31 public string TargetVariable { 32 get => targetVariable; 33 set => targetVariable = value; 34 } 35 36 protected IEnumerable<string> allowedVariables; 37 38 public IEnumerable<string> AllowedVariables { 39 get => allowedVariables; 40 set => allowedVariables = value; 41 } 42 28 43 protected ParsedConstraint(ParsedConstraint original, Cloner cloner) 29 44 : base(original, cloner) { 30 45 this.input = original.Input ?? string.Empty; 31 46 this.constraints = original.Constraints ?? new ItemList<IntervalConstraint>(); 47 32 48 } 33 49 … … 41 57 } 42 58 43 public ParsedConstraint(string input ) {59 public ParsedConstraint(string input, string targetVariable, IEnumerable<string> allowedVariables) { 44 60 this.input = input; 45 61 this.constraints = new ItemList<IntervalConstraint>(); 62 this.targetVariable = targetVariable; 63 this.allowedVariables = allowedVariables; 46 64 } 47 65
Note: See TracChangeset
for help on using the changeset viewer.