ibis.gmi
Class CombineReply

java.lang.Object
  extended by ibis.gmi.ReplyScheme
      extended by ibis.gmi.CombineReply

public class CombineReply
extends ReplyScheme

The CombineReply class must be used to configure a group method with a combined reply. There are two combiner types: FlatCombiner which combines results in gather style, and BinomialCombiner, which combines results in reduce style.

See Also:
GroupMethod.configure(ibis.gmi.InvocationScheme, ibis.gmi.ReplyScheme)

Field Summary
 BinomialCombiner binomialCombiner
          The reduce style combiner.
 FlatCombiner flatCombiner
          The gather style combiner.
 
Fields inherited from class ibis.gmi.ReplyScheme
R_COMBINE_BINOMIAL, R_COMBINE_FLAT, R_DISCARD, R_FORWARD, R_PERSONALIZED, R_PERSONALIZED_COMBINE_BINOMIAL, R_PERSONALIZED_COMBINE_FLAT, R_PERSONALIZED_FORWARD, R_PERSONALIZED_RETURN, R_RETURN
 
Constructor Summary
CombineReply(BinomialCombiner binCombiner)
          Constructor with a BinomialCombiner.
CombineReply(FlatCombiner flatCombiner)
          Constructor with a FlatCombiner.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flatCombiner

public FlatCombiner flatCombiner
The gather style combiner.


binomialCombiner

public BinomialCombiner binomialCombiner
The reduce style combiner.

Constructor Detail

CombineReply

public CombineReply(FlatCombiner flatCombiner)
             throws ConfigurationException
Constructor with a FlatCombiner.

Parameters:
flatCombiner - the FlatCombiner
Throws:
ConfigurationException - when the parameter is null.

CombineReply

public CombineReply(BinomialCombiner binCombiner)
             throws ConfigurationException
Constructor with a BinomialCombiner.

Parameters:
binCombiner - the BinomialCombiner
Throws:
ConfigurationException - when the parameter is null.


The Ibis project