jcsp.plugNplay.ints
Class DemultiplexInt
java.lang.Object
|
+--jcsp.plugNplay.ints.DemultiplexInt
- All Implemented Interfaces:
- CSProcess
- public final class DemultiplexInt
- extends Object
- implements CSProcess
This demultiplexes data from its input channel to its output channel array.
Process Diagram
________________ out[0]
| |--------->
in | | .
---->| DemultiplexInt | .
| | .
|________________|--------->
out[n-1]
Description
DemultiplexInt is a process to convert the single stream of
ints sent from a MultiplexInt
process on the other
end of its in channel back to separate streams (its out
channels). It assumes that MultiplexInt
operates on the same
size array of channels as its out array.
The protocol on the incoming multiplexed stream consists of
an int, that represents the channel identity of the
multiplexed data, followed by the multiplexed data.
Channel Protocols
Input Channels |
in |
int, int |
An in message is an index followed by the multiplexed data.
|
Output Channels |
out[] |
java.lang.Object |
All channels in this package carry integers.
|
- Author:
- P.D.Austin
- See Also:
MultiplexInt
,
ParaplexInt
,
DeparaplexInt
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 |
DemultiplexInt
public DemultiplexInt(ChannelInputInt in,
ChannelOutputInt[] out)
- Construct a new DemultiplexInt process with the input Channel in and the output
Channels out. The ordering of the Channels in the out array make
no difference to the functionality of this process.
- Parameters:
in
- the input channelout
- the output Channels
run
public void run()
- The main body of this process.
- Specified by:
run
in interface CSProcess
Submit a bug or feature to jcsp-team@ukc.ac.uk
Version 1.0-rc4 of the JCSP API Specification (Copyright 1997-2000 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.