public class COSARExprRandom extends COSARExpr
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_bGenInt
This member is true if a random integer is to be returned,
otherwise a random double is generated instead.
|
protected COSARExpr |
m_max |
protected COSARExpr |
m_min
These members represent the operands.
|
protected java.util.Random |
m_random
This member is the random number generator.
|
protected COSARAttrDouble |
m_valueDouble |
protected COSARAttrInt |
m_valueInt |
m_bIsConstant| Constructor and Description |
|---|
COSARExprRandom(COSARExpr min,
COSARExpr max,
boolean genInt) |
| Modifier and Type | Method and Description |
|---|---|
COSARAttr |
eval(java.util.HashMap symbols)
This function is used to evaluate the expression.
|
java.lang.String |
toString() |
isConstantprotected COSARAttrInt m_valueInt
protected COSARAttrDouble m_valueDouble
protected COSARExpr m_min
protected COSARExpr m_max
protected boolean m_bGenInt
protected java.util.Random m_random
public COSARAttr eval(java.util.HashMap symbols) throws java.lang.Exception
COSARExprpublic java.lang.String toString()
toString in class java.lang.Object