Package org.yamcs.xtce
Class Condition
- java.lang.Object
-
- org.yamcs.xtce.Condition
-
- All Implemented Interfaces:
Serializable,BooleanExpression,MatchCriteria
public class Condition extends Object implements BooleanExpression
The Condition is XTCE overlaps with the Comparison. Condition allows two operands to be Parameters- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, String rightValue)Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, ParameterOrArgumentRef rightRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorTypegetComparisonOperator()Set<Parameter>getDependentParameters()Return the set of parameters which are required in order to evaluate the match criteria.ParameterOrArgumentRefgetLeftRef()ParameterOrArgumentRefgetRightRef()StringgetRightValue()StringtoString()voidvalidateValueType()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 Detail
-
Condition
public Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, ParameterOrArgumentRef rightRef)
-
Condition
public Condition(OperatorType comparisonOperator, ParameterOrArgumentRef leftRef, String rightValue)
-
-
Method Detail
-
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
public Set<Parameter> getDependentParameters()
Description copied from interface:MatchCriteriaReturn 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:
getDependentParametersin interfaceMatchCriteria- Returns:
-
getLeftRef
public ParameterOrArgumentRef getLeftRef()
-
getRightRef
public ParameterOrArgumentRef getRightRef()
-
getComparisonOperator
public OperatorType getComparisonOperator()
-
getRightValue
public String getRightValue()
-
-