Class Comparison

java.lang.Object
org.yamcs.xtce.Comparison
All Implemented Interfaces:
Serializable, MatchCriteria

public class Comparison extends Object implements MatchCriteria
This corresponds to XTCE Comparison or ArgumentComparison
See Also:
  • Constructor Details

    • Comparison

      public Comparison(ParameterInstanceRef paraRef, String stringValue, OperatorType op)
      Makes a new comparison with a generic stringValue at this step the paraRef could be pointing to an unknown parameter. resolveValueType can(should) be called later to create the correct value if it's not string
      Parameters:
      paraRef -
      stringValue -
      op -
    • Comparison

      public Comparison(ArgumentInstanceRef argRef, String stringValue, OperatorType op)
  • Method Details

    • validateValueType

      public void validateValueType()
      Called when the type of the parameter used for comparison is known, so we have to find the value from stringValue that we can compare to it
    • getRef

      public ParameterOrArgumentRef getRef()
    • getComparisonOperator

      public OperatorType getComparisonOperator()
    • getDependentParameters

      public Set<Parameter> getDependentParameters()
      Description copied from interface: MatchCriteria
      Return the set of parameters which are required in order to evaluate the match criteria. If no parameter is required, return an empty set.
      Specified by:
      getDependentParameters in interface MatchCriteria
      Returns:
    • getStringValue

      public String getStringValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object