Package hec.hecmath.computation
Class Computation
java.lang.Object
hec.hecmath.computation.Computation
- All Implemented Interfaces:
Constants,Evaluable,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 booleanprotected static booleanprotected List<hec.hecmath.computation.Computation.ConditionalExpression>protected booleanprotected static booleanprotected static Patternprotected static Patternprotected Stringprotected Variableprotected static Patternprotected static Patternprotected booleanprotected booleanprotected static booleanprotected Set<UpdatableListener>protected Objectprotected VariableSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompute()voiddoubleevaluate()booleanstatic booleanbooleanstatic booleanintbooleanstatic booleanstatic voidprotected hec.hecmath.computation.Computation.ConditionalExpressionmakeConditionalExpression(String conditionText, String toDo) voidvoidvoidregisterListener(UpdatableListener listener) voidsetAllowDenormal(boolean setting) static voidsetAllowDenormalByDefault(boolean setting) voidsetExceptionOnUndefined(boolean setting) static voidsetExceptionOnUndefinedByDefault(boolean setting) protected voidsetExpression(String expr) voidsetTolerateUndefined(boolean setting) static voidsetTolerateUndefinedByDefault(boolean setting) toNotation(Constants.Notation notation) toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
tolerateUndefinedByDefault
protected static boolean tolerateUndefinedByDefault -
exceptionOnUndefinedByDefault
protected static boolean exceptionOnUndefinedByDefault -
allowDenormalByDefault
protected static boolean allowDenormalByDefault -
expand_when
-
expand_otherwise
-
split_when
-
split_otherwise
-
tolerateUndefined
protected boolean tolerateUndefined -
exceptionOnUndefined
protected boolean exceptionOnUndefined -
allowDenormal
protected boolean allowDenormal -
stale
protected boolean stale -
inputText
-
result
-
variables
-
updateSources
-
updateSourcesLock
-
updateListeners
-
computation
-
-
Constructor Details
-
Computation
protected Computation() -
Computation
- Throws:
ComputationException
-
-
Method Details
-
getTolerateUndefinedByDefault
public static boolean getTolerateUndefinedByDefault() -
setTolerateUndefinedByDefault
public static void setTolerateUndefinedByDefault(boolean setting) -
getExceptionOnUndefinedByDefault
public static boolean getExceptionOnUndefinedByDefault() -
setExceptionOnUndefinedByDefault
public static void setExceptionOnUndefinedByDefault(boolean setting) -
getAllowDenormalByDefault
public static boolean getAllowDenormalByDefault() -
setAllowDenormalByDefault
public static void setAllowDenormalByDefault(boolean setting) -
getTolerateUndefined
public boolean getTolerateUndefined()- Specified by:
getTolerateUndefinedin interfaceEvaluable
-
getExceptionOnUndefined
public boolean getExceptionOnUndefined()- Specified by:
getExceptionOnUndefinedin interfaceEvaluable
-
getAllowDenormal
public boolean getAllowDenormal()- Specified by:
getAllowDenormalin interfaceEvaluable
-
setTolerateUndefined
public void setTolerateUndefined(boolean setting) - Specified by:
setTolerateUndefinedin interfaceEvaluable
-
setExceptionOnUndefined
public void setExceptionOnUndefined(boolean setting) - Specified by:
setExceptionOnUndefinedin interfaceEvaluable
-
setAllowDenormal
public void setAllowDenormal(boolean setting) - Specified by:
setAllowDenormalin interfaceEvaluable
-
toString
-
evaluate
- Specified by:
evaluatein interfaceEvaluable- Throws:
ComputationException
-
evaluateToString
- Specified by:
evaluateToStringin interfaceEvaluable- Throws:
ComputationException
-
getQuality
- Throws:
ComputationException
-
toNotation
- Specified by:
toNotationin interfaceEvaluable- Throws:
ComputationException
-
registerAsListener
- Specified by:
registerAsListenerin interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
dataUpdated
- Specified by:
dataUpdatedin interfaceUpdatableListener
-
compute
- Throws:
ComputationException
-
makeConditionalExpression
protected hec.hecmath.computation.Computation.ConditionalExpression makeConditionalExpression(String conditionText, String toDo) throws ComputationException - Throws:
ComputationException
-
setExpression
- Throws:
ComputationException
-
main
- Throws:
Exception
-
registerListener
- Specified by:
registerListenerin interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListenerin interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListenersin interfaceUpdatable
-