|
jbarrier | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.cs.net.jbarrier.barrier.ReductionOperator
public abstract class ReductionOperator
Abstract base class for reduction operators.
Nested Class Summary | |
---|---|
static class |
ReductionOperator.MaximumReduction
Maximum reduction operator. |
static class |
ReductionOperator.MinimumReduction
Minimum reduction operator. |
static class |
ReductionOperator.SumReduction
Sum reduction operator. |
Constructor Summary | |
---|---|
ReductionOperator()
|
Method Summary | |
---|---|
protected abstract double |
operator(double value1,
double value2)
Operator on operands of type double . |
protected abstract float |
operator(float value1,
float value2)
Operator on operands of type float . |
protected abstract int |
operator(int value1,
int value2)
Operator on operands of type int . |
protected abstract long |
operator(long value1,
long value2)
Operator on operands of type long . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReductionOperator()
Method Detail |
---|
protected abstract int operator(int value1, int value2)
int
.
value1
- the first operandvalue2
- the second operand
protected abstract long operator(long value1, long value2)
long
.
value1
- the first operandvalue2
- the second operand
protected abstract float operator(float value1, float value2)
float
.
value1
- the first operandvalue2
- the second operand
protected abstract double operator(double value1, double value2)
double
.
value1
- the first operandvalue2
- the second operand
|
jbarrier | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |