All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.Identity

java.lang.Object
   |
   +----jcsp.util.buildingblocks.Identity

public final class Identity
extends Object
implements CSProcess

Process Diagram

         ___________
    in  |           | out
   -->--| Identity  |-->--
        |___________|
 

Description

The Identity class is a process which has an infinite loop that waits a Object of any type to be sent down the in Channel. The process then writes the same reference down the out Channel.

Channel Protocols

Input Channels
in java.lang.Object The in Channel can accept data of any Class.
Output Channels
out java.lang.Object The out Channel will send the data as the same type as sent down the in Channel.

Author:
P.D.Austin

Constructor Index

 o Identity(ChannelInput, ChannelOutput)
Construct a new Identity process with the input Channel in and the output Channel out.

Method Index

 o run()
The main body of this process.

Constructors

 o Identity
 public Identity(ChannelInput in,
                 ChannelOutput out)
Construct a new Identity process with the input Channel in and the output Channel out.

Parameters:
in - The input Channel
out - The output Channel

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index