Package hec.hecmath.computation
Class TextTest
java.lang.Object
hec.hecmath.computation.TextTest
- 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.TextTestOperator,
String> protected Constants.TextTestOperator
protected static Map<String,
Constants.TextTestOperator> 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
isTextTest
(String name) void
static int
precedence
(String name) void
void
registerListener
(UpdatableListener listener) boolean
test()
toString()
void
void
void
unregisterListener
(UpdatableListener listener)
-
Field Details
-
nameByOp
-
opByName
-
state
protected boolean state -
op
-
val
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
variables
-
-
Constructor Details
-
TextTest
- Throws:
ComputationException
-
TextTest
- Throws:
ComputationException
-
TextTest
- Throws:
ComputationException
-
TextTest
public TextTest(String name, VariableSet variables, Evaluable val0, Evaluable val1) throws ComputationException - Throws:
ComputationException
-
-
Method Details
-
getNames
-
isTextTest
-
arity
- Throws:
ComputationException
-
precedence
- Throws:
ComputationException
-
registerListener
- Specified by:
registerListener
in interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListener
in interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListeners
in interfaceUpdatable
-
dataUpdated
- Specified by:
dataUpdated
in interfaceUpdatableListener
-
registerAsListener
- Specified by:
registerAsListener
in interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
test
- Specified by:
test
in interfaceTestable
- Throws:
ComputationException
-
compute
- Throws:
ComputationException
-
toString
-