Package org.yamcs.xtce
Class Comparison
java.lang.Object
org.yamcs.xtce.Comparison
- All Implemented Interfaces:
Serializable
,MatchCriteria
This corresponds to XTCE Comparison or ArgumentComparison
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComparison
(ArgumentInstanceRef argRef, String stringValue, OperatorType op) 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 -
Method Summary
-
Constructor Details
-
Comparison
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
-
-
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
-
getComparisonOperator
-
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 interfaceMatchCriteria
- Returns:
-
getStringValue
-
toString
-