Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/19 16:46:46 (6 years ago)
Author:
chaider
Message:

#2971 Changed Parser and IntevalConstraint View

Location:
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs

    r16773 r16774  
    1818    public bool InclusiveUpperBound { get; set; }
    1919    public bool IsDerivation { get; set; }
    20     public string Variable { get; set; }
     20
     21    private string variable;
     22    public string Variable {
     23      get => variable;
     24      set {
     25        if (value != variable) {
     26          variable = value;
     27          OnChanged(EventArgs.Empty);
     28        }
     29      }
     30    }
    2131    public int NumberOfDerivation { get; set; }
    2232
     
    5363      this.IsDerivation = original.IsDerivation;
    5464      this.Variable = original.Variable;
    55       this.NumberOfDerivation = NumberOfDerivation;
     65      this.NumberOfDerivation = original.NumberOfDerivation;
    5666    }
    5767
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs

    r16773 r16774  
    4747    }
    4848
     49   
    4950    public static IEnumerable<IntervalConstraint> ParseInput(string input, string target = "", IEnumerable<string> variables = null) {
    5051      var lines = input.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
     
    132133        } else if (trimmedLine.StartsWith("#") || trimmedLine == "") {
    133134          //If it is a comment just continue without saving anything
    134           //TODO maybe save comment too.
    135135          continue;
    136136        } else {
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs

    r16773 r16774  
    192192
    193193      Parameters.Add(new FixedValueParameter<NamedIntervals>(VariableRangesParameterName, namedIntervals));
    194       Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(commentMessage, targetVariable, allowedInputVariables)));
     194      Parameters.Add(new FixedValueParameter<ParsedConstraint>(IntervalConstraintsParameterName, new ParsedConstraint(commentMessage, this)));
    195195      RegisterParameterEvents();
    196196    }
Note: See TracChangeset for help on using the changeset viewer.