Package org.proforma.variability.util
Class MatMethodProviderArithmeticOperation
java.lang.Object
org.proforma.variability.util.MatMethodProviderArithmeticOperation
- All Implemented Interfaces:
MatMethodProvider<Double>
public class MatMethodProviderArithmeticOperation
extends Object
implements MatMethodProvider<Double>
This materialization method performs an arithmetic operation on the value supplied by a MatArtifact.
The supplied value stands on the left of the following expression:
suppliedValue <op> <v1> <op> ... <op> <vn>
The operands <vi> are resolved from the variation points. Usually there is only one operand. Supported operations are add, sub, mul, div.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MatMethodProviderArithmeticOperation
public MatMethodProviderArithmeticOperation()
-
-
Method Details
-
init
- Specified by:
init
in interfaceMatMethodProvider<Double>
-
getValueType
Description copied from interface:MatMethodProvider
Must not be called before {@link #init(MatMethod, CS).- Specified by:
getValueType
in interfaceMatMethodProvider<Double>
-
execute
Description copied from interface:MatMethodProvider
Must not be called before {@link #init(MatMethod, CS).- Specified by:
execute
in interfaceMatMethodProvider<Double>
-
toString
-