Package org.yamcs.xtce
Class Condition
java.lang.Object
org.yamcs.xtce.Condition
- All Implemented Interfaces:
Serializable
,BooleanExpression
,MatchCriteria
The Condition is XTCE overlaps with the Comparison. Condition allows two operands to be Parameters
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCondition
(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, String rightValue) Condition
(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, ParameterOrArgumentRef rightRef) -
Method Summary
Modifier and TypeMethodDescriptionReturn the set of parameters which are required in order to evaluate the match criteria.toString()
void
If the type of the parameter used for comparison is known, can parse the stringValue to see if it can be compared with the type
-
Constructor Details
-
Condition
public Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, ParameterOrArgumentRef rightRef) -
Condition
public Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, String rightValue)
-
-
Method Details
-
validateValueType
public void validateValueType()If the type of the parameter used for comparison is known, can parse the stringValue to see if it can be compared with the type -
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:
-
toString
-
getLeftRef
-
getRightRef
-
getComparisonOperator
-
getRightValue
-