All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.MultiplexerInt

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

public final class MultiplexerInt
extends Object
implements CSProcess

CSProcess Diagram

          ________________
   in[1] |                |
  ------>|                | out
     :   | MultiplexerInt |----->
   in[n] |                |
  ------>|________________|
 

Description

The MultiplexerInt class is a process which has an infinite loop that waits for ints to be sent down any of the in ChannelInts. The process then writes the index of the ChannelInt down the out ChannelInt followed by the int read.

The MultilpexerInt Process takes data from an array of ChannelInts and sends the data down a single ChannelInt to be decoded by a corresponding DemultiplexerInt at the other end

Channel Protocols

Input Channels
in ChannelInt int
Output Channels
out ChannelInt Two ints

Author:
P.D.Austin
See Also:
DemultiplexerInt

Constructor Index

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

Method Index

 o run()
The main body of this process.

Constructors

 o MultiplexerInt
 public MultiplexerInt(AltingChannelInputInt in[],
                       ChannelOutputInt out)
Construct a new MultiplexerInt 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