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 String
protected static Map<Constants.QualityTestOperator,
String> protected Constants.QualityTestOperator
protected static Map<String,
Constants.QualityTestOperator> protected boolean
protected boolean
protected Set<UpdatableListener>
protected Object
protected Object
protected 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 int
static int
compareQuality
(int q0, int q1) static int
compareQuality
(int q0, int q1, String qualityOrder) static int
compareQuality
(Variable var0, Variable var1) static int
compareQuality
(Variable var0, Variable var1, String qualityOrder) protected void
compute()
void
getNames()
static String
static boolean
isQualityTest
(String name) static void
void
static int
precedence
(String name) void
void
registerListener
(UpdatableListener listener) static void
setDefaultQualityCompareOrder
(String qualityOrder) boolean
test()
toString()
void
void
void
unregisterListener
(UpdatableListener listener) protected static void
verifyQualityCompareOrder
(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:
test
in interfaceTestable
- Throws:
ComputationException
-
registerListener
- Specified by:
registerListener
in interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListener
in interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListeners
in interfaceUpdatable
-
registerAsListener
- Specified by:
registerAsListener
in interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
dataUpdated
- Specified by:
dataUpdated
in interfaceUpdatableListener
-
toString
-
compute
- Throws:
ComputationException
-
main
- Throws:
Exception
-