Package com.nt.udc.io
Class COSARExprRandom
java.lang.Object
com.nt.udc.io.COSARExpr
com.nt.udc.io.COSARExprRandom
This class represents the operation returning a random number.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
This member is true if a random integer is to be returned, otherwise a random double is generated instead.protected COSARExpr
protected COSARExpr
These members represent the operands.protected Random
This member is the random number generator.protected COSARAttrDouble
protected COSARAttrInt
Fields inherited from class com.nt.udc.io.COSARExpr
m_bIsConstant
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nt.udc.io.COSARExpr
isConstant
-
Field Details
-
m_valueInt
-
m_valueDouble
-
m_min
These members represent the operands. -
m_max
-
m_bGenInt
protected boolean m_bGenIntThis member is true if a random integer is to be returned, otherwise a random double is generated instead. -
m_random
This member is the random number generator.
-
-
Constructor Details
-
COSARExprRandom
- Throws:
Exception
-
-
Method Details
-
eval
Description copied from class:COSARExpr
This function is used to evaluate the expression. A symbol table is passed to help in retrieving the value of referenced symbols. The HashMap should contain values stored as COSARAttr objects, keyed by their associated symbol's name. -
toString
-