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

Constructor Index

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

Method Index

 o run()
The main body of this process.

Constructors

 o 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

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index