Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/19 14:53:28 (5 years ago)
Author:
chaider
Message:

#2971

  • Added field Target to IntervalConstraint
  • Prefixed Target-Item with Target:
  • Removed prefixed Target: at derivations ==> show target field instead
File:
1 edited

Legend:

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

    r16896 r16900  
    5151              var upperBound = ParseIntervalBounds(match.Groups[6].Value);
    5252              var expression = "Target:" + match.Groups[0].Value;
    53               var definition = "Target " + match.Groups[1].Value.Trim();
     53              var parsedTarget = match.Groups[1].Value.Trim();
    5454              var variable = match.Groups[1].Value.Trim();
    5555              var inclLowerBound = match.Groups[3].Value.Trim() == "[";
     
    5959              var interval = new Interval(lowerBound, upperBound);
    6060
    61               var constraint = new IntervalConstraint(expression, variable, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);
     61              var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);
    6262
    6363              yield return constraint;
     
    9696              var upperBound = ParseIntervalBounds(match.Groups[11].Value);
    9797              var expression = match.Groups[0].Value;
    98               var definition = match.Groups[1].Value + match.Groups[2].Value + match.Groups[3].Value +
    99                                       match.Groups[4].Value + match.Groups[5].Value + match.Groups[6].Value + match.Groups[7].Value;
     98              var parsedTarget = match.Groups[3].Value.Trim();
    10099              var isDerivation = true;
    101100              var inclLowerBound = match.Groups[8].Value.Trim() == "[";
     
    105104              var interval = new Interval(lowerBound, upperBound);
    106105
    107               var constraint = new IntervalConstraint(expression, variable, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);
     106              var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);
    108107
    109108              yield return constraint;
Note: See TracChangeset for help on using the changeset viewer.