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