Module simpa.acc

Class MatchingTarget

java.lang.Object
simpa.acc.api.match.MatchingTarget

public class MatchingTarget extends Object
Class containing the parameter to be matched, the target value and its weight.
Author:
lbojtar
  • Constructor Details

    • MatchingTarget

      public MatchingTarget(double targetValue, MatchingTargetType type, Double longitudinalPosition, double weight)
      Creates a new MatchingTarget object with the default weight of 1.0
      Parameters:
      targetValue - The value of the parameter to be matched
      type - The parameter to be matched
      longitudinalPosition - The longitudinal position of the parameter to be matched
      weight - The weight of the parameter to be matched. Default value is 1.0
    • MatchingTarget

      public MatchingTarget(double targetValue, MatchingTargetType type, Double longitudinalPosition, double weight, MatchingValueType valueType)
      Creates a new MatchingTarget object with the specified vale type.
      Parameters:
      targetValue - The value of the parameter to be matched
      type - The parameter to be matched
      longitudinalPosition - The longitudinal position of the parameter to be
      weight - The weight of the parameter to be matched. Default value is 1.0 matched
      valueType - The value type type indicating if targetValue is an exact value, a lower or upper limit.
  • Method Details

    • getLongitudinalPosition

      public Double getLongitudinalPosition()
      Returns:
      The longitudinal position of the parameter to be matched
    • getType

      public MatchingTargetType getType()
      Returns:
      The parameter to be matched
    • getWeight

      public double getWeight()
      Returns:
      The weight of the parameter to be matched.
    • getTargetValue

      public double getTargetValue()
      Returns:
      The target value of the parameter to be matched.
    • getValueType

      public MatchingValueType getValueType()
      Returns:
      Enum indicating if targetValue is an exact value, a lower or upper limit.