All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.Prefix
java.lang.Object
|
+----jcsp.util.buildingblocks.Prefix
- public final class Prefix
- extends Object
- implements CSProcess
Process Diagram
____________
in | | out
-->--| Prefix (n) |-->--
|____________|
Description
The Prefix class is a process which outputs an initial Object and then
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
-
Prefix(Object, ChannelInput, ChannelOutput)
- Construct a new Prefix process with the input Channel in and the
output Channel out.
-
run()
- The main body of this process.
Prefix
public Prefix(Object o,
ChannelInput in,
ChannelOutput out)
- Construct a new Prefix process with the input Channel in and the
output Channel out.
- Parameters:
- o - The initial Object to be sent down the 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