© 2002 BEA Systems, Inc.


com.bea.p13n.expression.operator.math
Class MathRandom

java.lang.Object
  |
  +--com.bea.p13n.expression.internal.ComplexExpressionImpl
        |
        +--com.bea.p13n.expression.operator.Operator
              |
              +--com.bea.p13n.expression.operator.math.MathOperator
                    |
                    +--com.bea.p13n.expression.operator.math.MathRandom

public final class MathRandom
extends MathOperator
implements BinaryOperator

Random number operator.

Input 1: A Number (or expression returning a Number) that is the minimum random number returned by the operator.
Input 2: A Number (or expression returning a Number) that is the maximum random number returned by the operator.
Returns: A Number: java.lang.Math.random() between LHS and RHS.

See Also:
Serialized Form

Fields inherited from class com.bea.p13n.expression.operator.math.MathOperator
BINARY_PARAMETER_SIGNATURE, UNARY_PARAMETER_SIGNATURE
 
Constructor Summary
MathRandom()
           
MathRandom(java.lang.Object min, java.lang.Object max)
           
 
Method Summary
 java.lang.Object getLeftHandSide()
           
 java.lang.Object getMax()
          Returns the maximum Number (or an expression returning a Number) that can be generated.
 java.lang.Object getMin()
          Returns the minimum Number (or an expression returning a Number) that can be generated.
 java.lang.Class[] getParameterSignature()
           
 java.lang.Object getRightHandSide()
           
 
Methods inherited from class com.bea.p13n.expression.operator.Operator
leftHandSide, operand, rightHandSide
 
Methods inherited from class com.bea.p13n.expression.internal.ComplexExpressionImpl
addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathRandom

public MathRandom()

MathRandom

public MathRandom(java.lang.Object min,
                  java.lang.Object max)
Method Detail

getMin

public java.lang.Object getMin()
Returns the minimum Number (or an expression returning a Number) that can be generated.

Returns:
The minimum Number that can be generated.

getMax

public java.lang.Object getMax()
Returns the maximum Number (or an expression returning a Number) that can be generated.

Returns:
The maximum Number that can be generated.

getLeftHandSide

public java.lang.Object getLeftHandSide()
Specified by:
getLeftHandSide in interface BinaryOperator


getRightHandSide

public java.lang.Object getRightHandSide()
Specified by:
getRightHandSide in interface BinaryOperator


getParameterSignature

public java.lang.Class[] getParameterSignature()

Overrides:
getParameterSignature in class com.bea.p13n.expression.internal.ComplexExpressionImpl

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved