|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcsp.plugNplay.Demultiplex
public final class Demultiplex
This demultiplexes data from its input channel to its output channel array.
Multiplex
process on the other
end of its in channel back into separate streams (its out
channels). It assumes that Multiplex
operates on the same
size array of channels as its out array.
The protocol on the incoming multiplexed stream consists of an Integer, that represents the channel identity of the multiplexed data, followed by the multiplexed data.
Input Channels | ||
---|---|---|
in | java.lang.Integer, java.lang.Object | A channel index followed by the multiplexed data. |
Output Channels | ||
out[] | java.lang.Object | All channels in this package carry integers. |
Multiplex
,
Paraplex
,
Deparaplex
Constructor Summary | |
---|---|
Demultiplex(ChannelInput in,
ChannelOutput[] out)
Construct a new Demultiplex process with the input Channel in and the output Channels out. |
Method Summary | |
---|---|
void |
run()
The main body of this process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Demultiplex(ChannelInput in, ChannelOutput[] out)
in
- the input channelout
- the output channelsMethod Detail |
---|
public void run()
run
in interface CSProcess
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |