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 double
protected Constants.ValueTestOperator
protected static Map<String,
Constants.ValueTestOperator> protected boolean
protected boolean
protected Set<UpdatableListener>
protected Object
protected Object
protected Evaluable[]
protected VariableSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
protected void
compute()
void
getNames()
static boolean
isValueTest
(String name) void
static int
precedence
(String name) void
void
registerListener
(UpdatableListener listener) static void
setNearZeroValue
(double value) boolean
test()
toString()
void
void
void
unregisterListener
(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:
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
-