Package hec.hecmath.computation
Class Condition
java.lang.Object
hec.hecmath.computation.Condition
- 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 Testableprotected Stringprotected booleanprotected Set<UpdatableListener>protected Objectprotected Objectprotected VariableSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestablebuildCondition(String expr) voidstatic voidprotected static StringnormalizeParentheses(String expr) voidvoidvoidregisterListener(UpdatableListener listener) protected voidsetCondition(String expr) booleantest()toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
inputText
-
condition
-
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
stale
protected boolean stale -
variables
-
-
Constructor Details
-
Condition
- Throws:
ComputationException
-
Condition
- Throws:
ComputationException
-
-
Method Details
-
normalizeParentheses
-
getVariables
-
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
-
setCondition
- Throws:
ComputationException
-
buildCondition
- Parameters:
expr-- Returns:
- Throws:
ComputationException
-
main
- Throws:
Exception
-