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
-
Substitute(ChannelInput, ChannelOutput, Object)
- Construct a new Substitute process.
-
run()
- The main body of this process.
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
run
public void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index