Package hec.hecmath.computation
Class Text
java.lang.Object
hec.hecmath.computation.Text
- All Implemented Interfaces:
Constants,Evaluable,Setable,Updatable,UpdatableListener,Comparable<Text>
-
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 booleanprotected static booleanprotected booleanprotected booleanprotected static booleanprotected Set<UpdatableListener>protected Objectprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()intvoidbooleandoubleevaluate()booleanbooleanbooleaninthashCode()voidvoidvoidregisterListener(UpdatableListener listener) voidsetAllowDenormal(boolean setting) voidsetExceptionOnUndefined(boolean setting) voidsetTolerateUndefined(boolean setting) voidsetValue(double value) voidsetValue(int value) voidvoidvoidtoNotation(Constants.Notation notation) toString()voidvoidvoidunregisterListener(UpdatableListener listener)
-
Field Details
-
tolerateUndefinedByDefault
protected static boolean tolerateUndefinedByDefault -
exceptionOnUndefinedByDefault
protected static boolean exceptionOnUndefinedByDefault -
allowDenormalByDefault
protected static boolean allowDenormalByDefault -
updateListeners
-
updateListenersLock
-
value
-
isSet
protected boolean isSet -
tolerateUndefined
protected boolean tolerateUndefined -
exceptionOnUndefined
protected boolean exceptionOnUndefined -
allowDenormal
protected boolean allowDenormal
-
-
Constructor Details
-
Text
public Text() -
Text
- Throws:
ComputationException
-
-
Method Details
-
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
-
setValue
- Specified by:
setValuein interfaceSetable- Throws:
ComputationException
-
setValue
- Specified by:
setValuein interfaceSetable- Throws:
ComputationException
-
setValue
- Specified by:
setValuein interfaceSetable- Throws:
ComputationException
-
setValue
- Specified by:
setValuein interfaceSetable- Throws:
ComputationException
-
setValue
- Specified by:
setValuein interfaceSetable- Throws:
ComputationException
-
evaluate
- Specified by:
evaluatein interfaceEvaluable- Throws:
ComputationException
-
evaluateToString
- Specified by:
evaluateToStringin 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
-
compareTo
- Specified by:
compareToin interfaceComparable<Text>
-
hashCode
public int hashCode() -
equals
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
toString
-