All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.buildingblocks.Substitute

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

public class Substitute
extends Object
implements CSProcess

Process Diagram

         ____________
    in  |            | out
   -->--| Substitute |-->--
        |____________|
 

Description

The Substitute class is a process which has an infinite loop which waits for data to be sent down the in Channel, upon receiving this it discards the Object and send the data passed into the constructor 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 data to be sent down the Channel.

Author:
P.D.Austin

Constructor Index

 o Substitute(ChannelInput, ChannelOutput, Object)
Construct a new Substitute process.

Method Index

 o run()
The main body of this process.

Constructors

 o Substitute
 public Substitute(ChannelInput in,
                   ChannelOutput out,
                   Object data)
Construct a new Substitute process.

Parameters:
data - The Object to be sent down the out Channel.
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