All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.SubstituteInt

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

public class SubstituteInt
extends Object
implements CSProcess

Process Diagram

         _______________
    in  |               | out
   -->--| SubstituteInt |-->--
        |_______________|
 

Description

The SubstituteInt class is a process which has an infinite loop which waits for data to be sent down the in ChannelInt, upon receiving this it discards the value and send the data passed into the constructor down the out ChannelInt.

Channel Protocols

Input Channels
in ChannelInt int
Output Channels
out ChannelInt int

Author:
P.D.Austin

Constructor Index

 o SubstituteInt(ChannelInputInt, ChannelOutputInt, int)
Construct a new SubstituteInt process.

Method Index

 o run()
The main body of this process.

Constructors

 o SubstituteInt
 public SubstituteInt(ChannelInputInt in,
                      ChannelOutputInt out,
                      int data)
Construct a new SubstituteInt process.

Parameters:
data - The int to be sent down the out ChannelInt.
in - The input ChannelInt
out - The output ChannelInt

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index