Package org.yamcs.xtce
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Comparison(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorType
getComparisonOperator()
Set<Parameter>
getDependentParameters()
Return the set of parameters which are required in order to evaluate the match criteria.ParameterOrArgumentRef
getRef()
String
getStringValue()
String
toString()
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
-
-
-
Constructor Detail
-
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 Detail
-
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 interfaceMatchCriteria
- Returns:
-
getStringValue
public String getStringValue()
-
-