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 boolean
protected static boolean
protected boolean
protected static boolean
protected boolean
protected boolean
protected static boolean
protected Set<UpdatableListener>
protected Object
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
int
void
boolean
double
evaluate()
boolean
boolean
boolean
int
hashCode()
void
void
void
registerListener
(UpdatableListener listener) void
setAllowDenormal
(boolean setting) void
setExceptionOnUndefined
(boolean setting) void
setTolerateUndefined
(boolean setting) void
setValue
(double value) void
setValue
(int value) void
void
void
toNotation
(Constants.Notation notation) toString()
void
void
void
unregisterListener
(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:
registerListener
in interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListener
in interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListeners
in interfaceUpdatable
-
dataUpdated
- Specified by:
dataUpdated
in interfaceUpdatableListener
-
registerAsListener
- Specified by:
registerAsListener
in interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
setValue
- Specified by:
setValue
in interfaceSetable
- Throws:
ComputationException
-
setValue
- Specified by:
setValue
in interfaceSetable
- Throws:
ComputationException
-
setValue
- Specified by:
setValue
in interfaceSetable
- Throws:
ComputationException
-
setValue
- Specified by:
setValue
in interfaceSetable
- Throws:
ComputationException
-
setValue
- Specified by:
setValue
in interfaceSetable
- Throws:
ComputationException
-
evaluate
- Specified by:
evaluate
in interfaceEvaluable
- Throws:
ComputationException
-
evaluateToString
- Specified by:
evaluateToString
in interfaceEvaluable
- Throws:
ComputationException
-
toNotation
- Specified by:
toNotation
in interfaceEvaluable
- Throws:
ComputationException
-
getTolerateUndefined
public boolean getTolerateUndefined()- Specified by:
getTolerateUndefined
in interfaceEvaluable
-
setTolerateUndefined
public void setTolerateUndefined(boolean setting) - Specified by:
setTolerateUndefined
in interfaceEvaluable
-
getExceptionOnUndefined
public boolean getExceptionOnUndefined()- Specified by:
getExceptionOnUndefined
in interfaceEvaluable
-
setExceptionOnUndefined
public void setExceptionOnUndefined(boolean setting) - Specified by:
setExceptionOnUndefined
in interfaceEvaluable
-
getAllowDenormal
public boolean getAllowDenormal()- Specified by:
getAllowDenormal
in interfaceEvaluable
-
setAllowDenormal
public void setAllowDenormal(boolean setting) - Specified by:
setAllowDenormal
in interfaceEvaluable
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Text>
-
hashCode
public int hashCode() -
equals
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-