Package hec.hecmath.computation
Class LogicTest
java.lang.Object
hec.hecmath.computation.LogicTest
- 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.LogicTestOperator,String> protected Constants.LogicTestOperatorprotected static Map<String,Constants.LogicTestOperator> protected booleanprotected booleanprotected Testable[]protected Set<UpdatableListener>protected Objectprotected Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intprotected voidcompute()voidgetNames()static booleanisLogicTest(String name) voidstatic intprecedence(String name) voidvoidregisterListener(UpdatableListener listener) booleantest()toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
nameByOp
-
opByName
-
state
protected boolean state -
op
-
test
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
-
Constructor Details
-
LogicTest
- Throws:
ComputationException
-
LogicTest
- Throws:
ComputationException
-
-
Method Details
-
getNames
-
isLogicTest
-
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
-