|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.hammurapi.dataflow.Multiplexor
public class Multiplexor
Dispatches data from source to sinks in the order of addition. This class doesn't do data type matching/conversion. Data info returned by this class is aggregation of data info of connected sinks. If several sinks have data items with the same name but different type, this class selects most specific data type. If it is not possible, it chooses data type of data sink which was added to multiplexor earlier.
| Constructor Summary | |
|---|---|
Multiplexor()
|
|
| Method Summary | |
|---|---|
boolean |
addData(Data data)
Dispatched data to sinks. |
void |
addSink(DataSink sink)
|
boolean |
controlsMultiplexing()
Always returns false. |
DataItemInfo[] |
getDataInfo()
Combines data input requirements from participating sinks. |
java.lang.String |
getName()
|
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Multiplexor()
| Method Detail |
|---|
public boolean addData(Data data)
addData in interface DataSinkpublic boolean controlsMultiplexing()
controlsMultiplexing in interface DataSinkpublic DataItemInfo[] getDataInfo()
getDataInfo in interface DataSinkpublic void addSink(DataSink sink)
public java.lang.String getName()
public void setName(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||