Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/19 13:09:17 (5 years ago)
Author:
chaider
Message:

#2971

  • Changed field numberOfDerivation
  • Added numberOfDerivation to Expression string
  • Added numberOfDerivation to parser
File:
1 edited

Legend:

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

    r16774 r16778  
    7171              var upperBound = ParseIntervalBounds(match.Groups[6].Value);
    7272              var constraint = new IntervalConstraint(match.Groups[0].Value);
    73               constraint.Expression = match.Groups[0].Value;
    74               constraint.Definition = "";
     73              constraint.Expression = "Target " + match.Groups[0].Value;
     74              constraint.Definition = "Target " + match.Groups[1].Value.Trim();
    7575              constraint.Variable = match.Groups[1].Value.Trim();
    7676              constraint.InclusiveLowerBound = match.Groups[3].Value.Trim() == "[";
     
    122122              constraint.InclusiveUpperBound = match.Groups[12].Value.Trim() == "]";
    123123              constraint.Variable = match.Groups[6].Value.Trim();
    124               constraint.NumberOfDerivation = ParseDerivationCount(match.Groups[2].Value);
     124              constraint.NumberOfDerivation = ParseDerivationCount(match.Groups[2].Value.Trim());
    125125              constraint.Interval = new Interval(lowerBound, upperBound);
    126126
     
    160160    private static int ParseDerivationCount(string input) {
    161161      switch (input) {
     162        case "":
     163          return 1;
    162164        case "²":
    163165          return 2;
Note: See TracChangeset for help on using the changeset viewer.