Package hec.hecmath.computation
Class ValueTest
java.lang.Object
hec.hecmath.computation.ValueTest
- 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 Map<Constants.ValueTestOperator,String> protected static doubleprotected Constants.ValueTestOperatorprotected static Map<String,Constants.ValueTestOperator> protected booleanprotected booleanprotected Set<UpdatableListener>protected Objectprotected Objectprotected Evaluable[]protected VariableSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intprotected voidcompute()voidgetNames()static booleanisValueTest(String name) voidstatic intprecedence(String name) voidvoidregisterListener(UpdatableListener listener) static voidsetNearZeroValue(double value) booleantest()toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
near_zero_value
protected static double near_zero_value -
nameByOp
-
opByName
-
state
protected boolean state -
op
-
val
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
variables
-
-
Constructor Details
-
ValueTest
- Throws:
ComputationException
-
ValueTest
- Throws:
ComputationException
-
ValueTest
- Throws:
ComputationException
-
ValueTest
public ValueTest(String name, VariableSet variables, Evaluable val0, Evaluable val1) throws ComputationException - Throws:
ComputationException
-
-
Method Details
-
getNames
-
isValueTest
-
setNearZeroValue
public static void setNearZeroValue(double value) -
arity
- Throws:
ComputationException
-
precedence
- 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
-