public class LogarithmExpression extends Object implements EvaluableExpression
FALSE| Constructor and Description |
|---|
LogarithmExpression(EvaluableExpression base,
EvaluableExpression antilogarithm)
Builds an expression which returns the result of logarithm of antilogarithm to the
base.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
double |
evaluate(EvaluableVariableAssignment variableAssignments)
Calculates this expression’s value for the given
variableAssignments. |
EvaluableExpression |
getAntilogarithm()
Get the
EvaluableExpression which is the antilogarithm, or parameter of the
LogarithmExpression. |
EvaluableExpression |
getBase()
Get the
EvaluableExpression which is the base of the logarithm. |
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 LogarithmExpression(EvaluableExpression base, EvaluableExpression antilogarithm)
base - The base of the logarithm. Must not be null.antilogarithm - The antilogarithm of the expression. Must not be null.public EvaluableExpression getBase()
EvaluableExpression which is the base of the logarithm.public EvaluableExpression getAntilogarithm()
EvaluableExpression which is the antilogarithm, or parameter of the
LogarithmExpression.public void receive(EvaluableExpressionVisitor visitor)
EvaluableExpressionEvaluableExpressionVisitor.visit(de.uka.ipd.sdq.beagle.core.evaluableexpressions.AdditionExpression) on
visitor. This implements the well-known visitor pattern.receive in interface EvaluableExpressionvisitor - The visitor wishing to visit this expression.public double evaluate(EvaluableVariableAssignment variableAssignments)
EvaluableExpressionvariableAssignments.evaluate in interface EvaluableExpressionvariableAssignments - must assign a value to at least all
EvaluableVariables contained in this expression.