public class ColumnOperationAdapterFunction extends ExpressionFunction
ColumnOperation
to ExpressionFunction
.
This adapter determines the number of arguments based on the ColumnOperation type:
IntegratingColumnOperation
will have infinite inputs
All other column operations will have one parameter. Please note that the operation should only create exactly one output.Constructor and Description |
---|
ColumnOperationAdapterFunction(ColumnOperation columnOperation,
String name) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(List<Object> parameters,
ExpressionVariables variables)
Runs the function on given parameters
|
ColumnOperation |
getColumnOperation() |
ParameterInfo |
getParameterInfo(int index)
Returns info about the parameter at index
|
getSignature, getTemplate
public ColumnOperationAdapterFunction(ColumnOperation columnOperation, String name)
public ColumnOperation getColumnOperation()
public ParameterInfo getParameterInfo(int index)
getParameterInfo
in class ExpressionFunction
index
- the parameter indexpublic Object evaluate(List<Object> parameters, ExpressionVariables variables)
ExpressionFunction
evaluate
in class ExpressionFunction
parameters
- the parametersvariables
- the set of current variablesCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.