Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/09/19 14:58:24 (5 years ago)
Author:
chaider
Message:

#2971

  • Fixes and updates in IntervalConstraintView
  • Changed Parser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ParsedConstraint.cs

    r16772 r16773  
    55using System.Text;
    66using System.Threading.Tasks;
     7using System.Windows.Markup;
    78using HeuristicLab.Common;
    89using HeuristicLab.Core;
    910using HeuristicLab.Data;
     11using HeuristicLab.Parameters;
    1012
    1113namespace HeuristicLab.Problems.DataAnalysis {
     
    2628    }
    2729
     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
    2843    protected ParsedConstraint(ParsedConstraint original, Cloner cloner)
    2944      : base(original, cloner) {
    3045      this.input = original.Input ?? string.Empty;
    3146      this.constraints = original.Constraints ?? new ItemList<IntervalConstraint>();
     47     
    3248    }
    3349
     
    4157    }
    4258
    43     public ParsedConstraint(string input) {
     59    public ParsedConstraint(string input, string targetVariable, IEnumerable<string> allowedVariables) {
    4460      this.input = input;
    4561      this.constraints = new ItemList<IntervalConstraint>();
     62      this.targetVariable = targetVariable;
     63      this.allowedVariables = allowedVariables;
    4664    }
    4765
Note: See TracChangeset for help on using the changeset viewer.