public class Comparison extends Object implements MatchCriteria
ALWAYS_MATCH| Constructor and Description |
|---|
Comparison(ParameterInstanceRef paraRef,
double doubleValue,
OperatorType op) |
Comparison(ParameterInstanceRef paraRef,
int intValue,
OperatorType op) |
Comparison(ParameterInstanceRef paraRef,
long longValue,
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.
|
| Modifier and Type | Method and Description |
|---|---|
OperatorType |
getComparisonOperator() |
Set<Parameter> |
getDependentParameters()
Return the set of parameters which are required in order to evaluate the match criteria.
|
Parameter |
getParameter() |
ParameterInstanceRef |
getParameterRef() |
String |
getStringValue() |
Object |
getValue() |
boolean |
isMet(CriteriaEvaluator evaluator)
Return true if the condition matches
|
static String |
operatorToString(OperatorType op) |
void |
resolveValueType()
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
|
static OperatorType |
stringToOperator(String s) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprintParsedMatchCriteriapublic Comparison(ParameterInstanceRef paraRef, String stringValue, OperatorType op)
paraRef - stringValue - op - public Comparison(ParameterInstanceRef paraRef, int intValue, OperatorType op)
public Comparison(ParameterInstanceRef paraRef, long longValue, OperatorType op)
public Comparison(ParameterInstanceRef paraRef, double doubleValue, OperatorType op)
public boolean isMet(CriteriaEvaluator evaluator)
MatchCriteriaisMet in interface MatchCriteriapublic void resolveValueType()
public ParameterInstanceRef getParameterRef()
public OperatorType getComparisonOperator()
public Set<Parameter> getDependentParameters()
MatchCriteriagetDependentParameters in interface MatchCriteriapublic static String operatorToString(OperatorType op)
public static OperatorType stringToOperator(String s)
public Parameter getParameter()
public Object getValue()
public String getStringValue()
Copyright © 2019 Space Applications Services. All rights reserved.