All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.DemultiplexerInt

java.lang.Object
   |
   +----jcsp.util.buildingblocks.ints.DemultiplexerInt

public final class DemultiplexerInt
extends Object
implements CSProcess

Process Diagram

         __________________
        |                  | out[1]
     in |                  |-------->
    --->| DemultiplexerInt |  :
        |                  | out[n]
        |                  |-------->
        |__________________|
 

Description

The DemultiplexerInt class is a process which has an infinite loop that waits for an int to be sent down the in ChannelInt, upon receiving an int it will then wait for an int to be sent down the in ChannelInt. The int will be used as an index to the out ChannelInts array, the int will then be written down this ChannelInt.

This Process is used to convert the single stream of ints sent from the MultiplexerInt Process down the in ChannelInt back to individual ChannelInts.

Channel Protocols

Input Channels
in ChannelInt Two ints.
Output Channels
out[] ChannelInt int

Author:
P.D.Austin
See Also:
MultiplexerInt

Constructor Index

 o DemultiplexerInt(ChannelInputInt, ChannelOutputInt[])
Construct a new DemultiplexerInt process with the input ChannelInt in and the output ChannelInts out.

Method Index

 o run()
The main body of this process.

Constructors

 o DemultiplexerInt
 public DemultiplexerInt(ChannelInputInt in,
                         ChannelOutputInt out[])
Construct a new DemultiplexerInt process with the input ChannelInt in and the output ChannelInts out. The ordering of the ChannelInts in the out array make no difference to the functionality of this process.

Parameters:
in - The input channel
out - The output ChannelInts

Methods

 o run
 public void run()
The main body of this process.


All Packages  Class Hierarchy  This Package  Previous  Next  Index