ibis.gmi
Class FlatCombiner

java.lang.Object
  extended byibis.gmi.FlatCombiner

public class FlatCombiner
extends java.lang.Object

The FlatCombiner class serves as a base class for user-defined result flat-combiners. The user-defined flatcombiner is supposed to redefine the "combine" versions that the user is going to invoke. This class is not abstract, because the user-defined combiner does not have to supply all "combine" methods (for all different result types). Therefore, default ones are supplied that just throw an exception.


Constructor Summary
FlatCombiner()
           
 
Method Summary
 boolean combine(boolean[] results, java.lang.Exception[] exceptions)
          Combine with a boolean result.
 byte combine(byte[] results, java.lang.Exception[] exceptions)
          Combine with a byte result.
 char combine(char[] results, java.lang.Exception[] exceptions)
          Combine with a char result.
 double combine(double[] results, java.lang.Exception[] exceptions)
          Combine with a double result.
 void combine(java.lang.Exception[] exceptions)
          Combine with a void result.
 float combine(float[] results, java.lang.Exception[] exceptions)
          Combine with a float result.
 int combine(int[] results, java.lang.Exception[] exceptions)
          Combine with an int result.
 long combine(long[] results, java.lang.Exception[] exceptions)
          Combine with a long result.
 java.lang.Object combine(java.lang.Object[] results, java.lang.Exception[] exceptions)
          Combine with an Object result.
 short combine(short[] results, java.lang.Exception[] exceptions)
          Combine with a short result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatCombiner

public FlatCombiner()
Method Detail

combine

public void combine(java.lang.Exception[] exceptions)
Combine with a void result. May throw an exception that is the result of an exception combine.

Parameters:
exceptions - the exceptions to be combined

combine

public boolean combine(boolean[] results,
                       java.lang.Exception[] exceptions)
Combine with a boolean result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public byte combine(byte[] results,
                    java.lang.Exception[] exceptions)
Combine with a byte result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public char combine(char[] results,
                    java.lang.Exception[] exceptions)
Combine with a char result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public short combine(short[] results,
                     java.lang.Exception[] exceptions)
Combine with a short result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public int combine(int[] results,
                   java.lang.Exception[] exceptions)
Combine with an int result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public long combine(long[] results,
                    java.lang.Exception[] exceptions)
Combine with a long result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public float combine(float[] results,
                     java.lang.Exception[] exceptions)
Combine with a float result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public double combine(double[] results,
                      java.lang.Exception[] exceptions)
Combine with a double result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation

combine

public java.lang.Object combine(java.lang.Object[] results,
                                java.lang.Exception[] exceptions)
Combine with an Object result. May throw an exception that is the result of an exception combine.

Parameters:
results - the results to be combined
exceptions - the exceptions to be combined
Returns:
result of the combine operation


The Ibis project