public class ExponentationExpression extends Object implements EvaluableExpression
FALSE
Constructor and Description |
---|
ExponentationExpression(EvaluableExpression base,
EvaluableExpression exponent)
Build an expression which returns the base raised to the power of the exponent.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
double |
evaluate(EvaluableVariableAssignment variableAssignments)
Calculates this expression’s value for the given
variableAssignments . |
EvaluableExpression |
getBase()
Get the
EvaluableExpression which is set as base. |
EvaluableExpression |
getExponent()
Get the
EvaluableExpression which is set as exponent. |
int |
hashCode() |
void |
receive(EvaluableExpressionVisitor visitor)
Calls the appropriate overload of
EvaluableExpressionVisitor.visit(de.uka.ipd.sdq.beagle.core.evaluableexpressions.AdditionExpression) on
visitor . |
String |
toString() |
public ExponentationExpression(EvaluableExpression base, EvaluableExpression exponent)
exponent
- The expression which is the exponent of this expression. Must not
be null
.base
- The expression which is the base of this expression. Must not be
null
.public EvaluableExpression getExponent()
EvaluableExpression
which is set as exponent.public EvaluableExpression getBase()
EvaluableExpression
which is set as base.public void receive(EvaluableExpressionVisitor visitor)
EvaluableExpression
EvaluableExpressionVisitor.visit(de.uka.ipd.sdq.beagle.core.evaluableexpressions.AdditionExpression)
on
visitor
. This implements the well-known visitor pattern.receive
in interface EvaluableExpression
visitor
- The visitor wishing to visit this expression.public double evaluate(EvaluableVariableAssignment variableAssignments)
EvaluableExpression
variableAssignments
.evaluate
in interface EvaluableExpression
variableAssignments
- must assign a value to at least all
EvaluableVariable
s contained in this expression.