Package hec.hecmath.computation
Class QualityOperation
java.lang.Object
hec.hecmath.computation.QualityOperation
- All Implemented Interfaces:
Constants,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.QualityOperator,String> protected Constants.QualityOperatorprotected static Map<String,Constants.QualityOperator> protected intprotected booleanprotected Set<UpdatableListener>protected Objectprotected Objectprotected Variableprotected VariableSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompute()voidgetNames()static booleanisQualityOperation(String name) static voidvoidintoperate()voidvoidregisterListener(UpdatableListener listener) toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
nameByOp
-
opByName
-
quality
protected int quality -
op
-
var
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
variables
-
-
Constructor Details
-
QualityOperation
- Throws:
ComputationException
-
-
Method Details
-
getNames
-
isQualityOperation
-
operate
- 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
-
main
- Throws:
Exception
-