All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.ints.IdentityInt

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

public final class IdentityInt
extends Object
implements CSProcess

Process Diagram

         _____________
    in  |             | out
   -->--| IdentityInt |-->--
        |_____________|
 

Description

The Identity class is a process which has an infinite loop that waits an int to be sent down the in ChannelInt. The process then writes the int down the out ChannelInt.

Channel Protocols

Input Channels
in ChannelInt int
Output Channels
out ChannelInt int

Author:
P.D.Austin

Constructor Index

 o IdentityInt(ChannelInputInt, ChannelOutputInt)
Construct a new IdentityInt process with the input ChannelInt in and the output ChannelInt out.

Method Index

 o run()
The main body of this process.

Constructors

 o IdentityInt
 public IdentityInt(ChannelInputInt in,
                    ChannelOutputInt out)
Construct a new IdentityInt process with the input ChannelInt in and the output ChannelInt out.

Parameters:
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