@Immutable public class MathematicalExpression extends AbstractSingleTargetPropertyTransformation<TransformationEngine> implements MathematicalExpressionFunction
ENTITY_VARIABLE, ID, MATH_SPECIALS, PARAMETER_EXPRESSION
Constructor and Description |
---|
MathematicalExpression() |
Modifier and Type | Method and Description |
---|---|
protected Object |
evaluate(String transformationIdentifier,
TransformationEngine engine,
com.google.common.collect.ListMultimap<String,PropertyValue> variables,
String resultName,
PropertyEntityDefinition resultProperty,
Map<String,String> executionParameters,
TransformationLog log)
Execute the evaluation function as configured.
|
static Object |
evaluateExpression(String expression,
List<PropertyValue> vars)
Evaluate a mathematical expression.
|
evaluate
allowAutomatedResultConversion, execute, getCell, getResults, getTargetType, setExpectedResult, setTargetType, setVariables
checkParameter, getExecutionContext, getOptionalParameter, getParameterChecked, getParameters, setExecutionContext, setParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setExecutionContext, setParameters
protected Object evaluate(String transformationIdentifier, TransformationEngine engine, com.google.common.collect.ListMultimap<String,PropertyValue> variables, String resultName, PropertyEntityDefinition resultProperty, Map<String,String> executionParameters, TransformationLog log) throws TransformationException
AbstractSingleTargetPropertyTransformation
evaluate
in class AbstractSingleTargetPropertyTransformation<TransformationEngine>
transformationIdentifier
- the transformation function identifierengine
- the transformation engine that may be used for the function
executionvariables
- the input variablesresultName
- the name of the resultresultProperty
- the property entity definition associated with the
resultexecutionParameters
- additional parameters for the execution, may
be null
log
- the transformation log to report any information about the
execution of the transformation toTransformationException
- if an unrecoverable error occurs during
transformationAbstractSingleTargetPropertyTransformation.evaluate(String,
TransformationEngine, ListMultimap, String,
PropertyEntityDefinition, Map, TransformationLog)
public static Object evaluateExpression(String expression, List<PropertyValue> vars) throws com.iabcinc.jmep.XExpression
expression
- the mathematical expression. It may contain references
to variablesvars
- the list of available property values that may be bound to
variablescom.iabcinc.jmep.XExpression
- if the expression could not be evaluatedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a