Package hec.hecmath.computation
Class TextOperation
java.lang.Object
hec.hecmath.computation.TextOperation
- 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 Evaluable[]protected booleanprotected static booleanprotected static Map<Constants.TextOperator,String> protected Constants.TextOperatorprotected static Map<String,Constants.TextOperator> protected booleanprotected booleanprotected static booleanprotected Set<UpdatableListener>protected Objectprotected Objectprotected String -
Constructor Summary
ConstructorsConstructorDescriptionTextOperation(Constants.TextOperator op, boolean persistent, Evaluable... args) TextOperation(Constants.TextOperator op, boolean persistent, List<? extends Evaluable> args) TextOperation(Constants.TextOperator op, Evaluable... args) TextOperation(Constants.TextOperator op, List<? extends Evaluable> args) TextOperation(String name, boolean persistent, Evaluable... args) TextOperation(String name, boolean persistent, List<? extends Evaluable> args) TextOperation(String name, Evaluable... args) TextOperation(String name, List<? extends Evaluable> args) -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic Stringprotected voidcompute()voiddoubleevaluate()booleanbooleangetName()getNames()intbooleanbooleanisStale()static booleanisTextOperation(String name) static voidvoidstatic intprecedence(String name) voidvoidregisterListener(UpdatableListener listener) voidsetAllowDenormal(boolean setting) voidsetExceptionOnUndefined(boolean setting) voidsetTolerateUndefined(boolean setting) toNotation(Constants.Notation notation) voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
tolerateUndefinedByDefault
protected static boolean tolerateUndefinedByDefault -
exceptionOnUndefinedByDefault
protected static boolean exceptionOnUndefinedByDefault -
allowDenormalByDefault
protected static boolean allowDenormalByDefault -
nameByOp
-
opByName
-
value
-
op
-
stale
protected boolean stale -
args
-
tolerateUndefined
protected boolean tolerateUndefined -
exceptionOnUndefined
protected boolean exceptionOnUndefined -
allowDenormal
protected boolean allowDenormal -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
-
Constructor Details
-
TextOperation
- Throws:
ComputationException
-
TextOperation
- Throws:
ComputationException
-
TextOperation
public TextOperation(Constants.TextOperator op, List<? extends Evaluable> args) throws ComputationException - Throws:
ComputationException
-
TextOperation
- Throws:
ComputationException
-
TextOperation
public TextOperation(String name, boolean persistent, List<? extends Evaluable> args) throws ComputationException - Throws:
ComputationException
-
TextOperation
public TextOperation(String name, boolean persistent, Evaluable... args) throws ComputationException - Throws:
ComputationException
-
TextOperation
public TextOperation(Constants.TextOperator op, boolean persistent, List<? extends Evaluable> args) throws ComputationException - Throws:
ComputationException
-
TextOperation
public TextOperation(Constants.TextOperator op, boolean persistent, Evaluable... args) throws ComputationException - Throws:
ComputationException
-
-
Method Details
-
getNames
-
isTextOperation
-
arity
-
precedence
-
arityName
-
compute
- Throws:
ComputationException
-
getName
-
getPrecedence
public int getPrecedence() -
isStale
public boolean isStale() -
evaluateToString
- Specified by:
evaluateToStringin interfaceEvaluable- Throws:
ComputationException
-
registerListener
- Specified by:
registerListenerin interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListenerin interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListenersin interfaceUpdatable
-
dataUpdated
- Specified by:
dataUpdatedin interfaceUpdatableListener
-
registerAsListener
- Specified by:
registerAsListenerin interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListenerin interfaceUpdatableListener
-
evaluate
- Specified by:
evaluatein interfaceEvaluable- Throws:
ComputationException
-
toNotation
- Specified by:
toNotationin interfaceEvaluable- Throws:
ComputationException
-
getTolerateUndefined
public boolean getTolerateUndefined()- Specified by:
getTolerateUndefinedin interfaceEvaluable
-
setTolerateUndefined
public void setTolerateUndefined(boolean setting) - Specified by:
setTolerateUndefinedin interfaceEvaluable
-
getExceptionOnUndefined
public boolean getExceptionOnUndefined()- Specified by:
getExceptionOnUndefinedin interfaceEvaluable
-
setExceptionOnUndefined
public void setExceptionOnUndefined(boolean setting) - Specified by:
setExceptionOnUndefinedin interfaceEvaluable
-
getAllowDenormal
public boolean getAllowDenormal()- Specified by:
getAllowDenormalin interfaceEvaluable
-
setAllowDenormal
public void setAllowDenormal(boolean setting) - Specified by:
setAllowDenormalin interfaceEvaluable
-
main
- Throws:
Exception
-