CSP for Java
(JCSP) 1.0-rc4

jcsp.plugNplay
Class Sign

java.lang.Object
  |
  +--jcsp.plugNplay.Sign
All Implemented Interfaces:
CSProcess

public final class Sign
extends Object
implements CSProcess

Converts each input Object to a String, prefixing it with a user-defined sign.

Process Diagram

         _____________
    in  |             | out
   -->--| Sign (sign) |-->--
        |_____________|
 

Description

Sign converts each input Object to a String, prefixing it with a user-defined sign.

Channel Protocols

Input Channels
in java.lang.Object The Channel accepts any class of data.
Output Channels
out java.lang.String The output will always be of type String.

Example

See the example in Plex.

Author:
P.D.Austin
See Also:
SignInt

Constructor Summary
Sign(String sign, ChannelInput in, ChannelOutput out)
          Construct a new Sign process with the input Channel in and the output Channel out.
 
Method Summary
 void run()
          The main body of this process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sign

public Sign(String sign,
            ChannelInput in,
            ChannelOutput out)
Construct a new Sign process with the input Channel in and the output Channel out.
Parameters:
sign - the user-defined signature to attach to each item.
in - the input Channel.
out - the output Channel.
Method Detail

run

public void run()
The main body of this process.
Specified by:
run in interface CSProcess

CSP for Java
(JCSP) 1.0-rc4

Submit a bug or feature to jcsp-team@ukc.ac.uk
Version 1.0-rc4 of the JCSP API Specification (Copyright 1997-2000 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.