ibis.gmi
Class FlatCombiner

java.lang.Object
  extended by ibis.gmi.FlatCombiner

public class FlatCombiner
extends 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.


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

Method Detail

combine

public void combine(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,
                       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,
                    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,
                    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,
                     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,
                   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,
                    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,
                     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,
                      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 Object combine(Object[] results,
                      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