Class MultiArgumentOperator
java.lang.Object
|
+--AbstractELOperator
|
+--MultiArgumentOperator
- All Implemented Interfaces:
- ELOperator
- Direct Known Subclasses:
- Add, Average, BitwiseOperator, Max, Min, Mul, Sub
- public abstract class MultiArgumentOperator
- extends AbstractELOperator
- implements ELOperator
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiArgumentOperator
public MultiArgumentOperator()
checkArguments
protected void checkArguments(ELMatrix[] argument)
apply
public void apply(ELMatrix[] argument,
ELMatrix out,
ELEnvironment environment)
- Description copied from interface:
ELOperator
- Applies this operator.
- Specified by:
apply
in interface ELOperator
combine
protected abstract float combine(float a,
float b)
- Override this to provide your element-by-element operator.
clamp
protected void clamp(ELMatrix out)
combine
protected void combine(ELMatrix out,
ELMatrix other)
- Combines the cumulative result (out) with the next argument
(other).
getMaxNumArguments
public int getMaxNumArguments()
- Description copied from interface:
ELOperator
- Returns the maxiumum number of arguments this operator accepts.
Note: All operators that accept an argument accept an ELMatrix
argument.
- Specified by:
getMaxNumArguments
in interface ELOperator
getMinNumArguments
public int getMinNumArguments()
- Description copied from interface:
ELOperator
- Returns the minimum number of arguments this operator accepts.
- Specified by:
getMinNumArguments
in interface ELOperator
unparse
public java.lang.String unparse()
- Description copied from interface:
ELOperator
- How this operator should appear in EL code.
- Specified by:
unparse
in interface ELOperator