eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class StreamCombiner

java.lang.Object
  |
  +--mss.ea.al.FlowElement
        |
        +--mss.ea.al.AbstractMerger
              |
              +--mss.ea.al.StreamCombiner
All Implemented Interfaces:
MessageRecipient, java.lang.Runnable

public class StreamCombiner
extends AbstractMerger

Implementation of a merger which combines streams. Every of the predecessors must send a stream, which is used to create a new one by the underlying individual combiner. Instead of waiting for any stream to approach every predecessor must send a stream. Until this event happens this operator halts.

Since:
0.2.2
Version:
$Revision: 1.2 $ $Date: 2001/11/26 09:25:00 $
Author:
Andreas Rummler

Field Summary
protected  IndividualCombiner combiner
          Underlying individual collector.
protected  IndividualStream[] streamArray
           
 
Fields inherited from class mss.ea.al.AbstractMerger
predecessorList, successor
 
Fields inherited from class mss.ea.al.FlowElement
broker, messageChannel, name, receivedMessage, sync
 
Constructor Summary
StreamCombiner(IndividualCombiner combiner, MessageBroker broker, java.lang.String name)
          Constructor with message broker.
StreamCombiner(IndividualCombiner combiner, java.lang.String name)
          Constructor.
 
Method Summary
protected  void react()
          Reaction on an incoming message.
 
Methods inherited from class mss.ea.al.AbstractMerger
getPredecessor, getPredecessorNumber, getSuccessor, getSuccessorNumber, hasPredecessor, hasSuccessor, setPredecessor, setSuccessor
 
Methods inherited from class mss.ea.al.FlowElement
acquireChannel, register, run, setBroker, setChannel, setSync, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

combiner

protected IndividualCombiner combiner
Underlying individual collector.

streamArray

protected IndividualStream[] streamArray
Constructor Detail

StreamCombiner

public StreamCombiner(IndividualCombiner combiner,
                      java.lang.String name)
Constructor.
Parameters:
combiner - individual stream combiner
name - name of this element

StreamCombiner

public StreamCombiner(IndividualCombiner combiner,
                      MessageBroker broker,
                      java.lang.String name)
Constructor with message broker.
Parameters:
combiner - stream individual combiner
broker - message broker
name - name of this element
Method Detail

react

protected void react()
Reaction on an incoming message.
Overrides:
react in class FlowElement

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS