Package hec.hecmath.computation
Class QualityTest
java.lang.Object
hec.hecmath.computation.QualityTest
- All Implemented Interfaces:
Constants,Testable,Updatable,UpdatableListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface hec.hecmath.computation.Constants
Constants.LogicTestOperator, Constants.MathOperator, Constants.Notation, Constants.Precedence, Constants.QualityOperator, Constants.QualityTestOperator, Constants.TextOperator, Constants.TextTestOperator, Constants.ValueTestOperator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static Map<Constants.QualityTestOperator,String> protected Constants.QualityTestOperatorprotected static Map<String,Constants.QualityTestOperator> protected booleanprotected booleanprotected Set<UpdatableListener>protected Objectprotected Objectprotected Variable[]protected VariableSet -
Constructor Summary
ConstructorsConstructorDescriptionQualityTest(String name, VariableSet variables, String var0) QualityTest(String name, VariableSet variables, String var0, String var1) -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intcompareQuality(int q0, int q1) static intcompareQuality(int q0, int q1, String qualityOrder) static intcompareQuality(Variable var0, Variable var1) static intcompareQuality(Variable var0, Variable var1, String qualityOrder) protected voidcompute()voidgetNames()static Stringstatic booleanisQualityTest(String name) static voidvoidstatic intprecedence(String name) voidvoidregisterListener(UpdatableListener listener) static voidsetDefaultQualityCompareOrder(String qualityOrder) booleantest()toString()voidvoidvoidunregisterListener(UpdatableListener listener) protected static voidverifyQualityCompareOrder(String order)
-
Field Details
-
defaultQualityOrder
-
nameByOp
-
opByName
-
state
protected boolean state -
op
-
var
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
variables
-
-
Constructor Details
-
QualityTest
- Throws:
ComputationException
-
QualityTest
public QualityTest(String name, VariableSet variables, String var0, String var1) throws ComputationException - Throws:
ComputationException
-
-
Method Details
-
getNames
-
isQualityTest
-
arity
- Throws:
ComputationException
-
precedence
- Throws:
ComputationException
-
getQualityCompareOrder
-
verifyQualityCompareOrder
- Throws:
ComputationException
-
setDefaultQualityCompareOrder
- Throws:
ComputationException
-
compareQuality
- Throws:
ComputationException
-
compareQuality
public static int compareQuality(Variable var0, Variable var1, String qualityOrder) throws ComputationException - Throws:
ComputationException
-
compareQuality
- Throws:
ComputationException
-
compareQuality
- Throws:
ComputationException
-
test
- Specified by:
testin interfaceTestable- Throws:
ComputationException
-
registerListener
- Specified by:
registerListenerin interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListenerin interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListenersin interfaceUpdatable
-
registerAsListener
- Specified by:
registerAsListenerin interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
dataUpdated
- Specified by:
dataUpdatedin interfaceUpdatableListener
-
toString
-
compute
- Throws:
ComputationException
-
main
- Throws:
Exception
-