| 
CSP for Java (JCSP) 1.1-rc3  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcsp.plugNplay.ints.PrinterInt
public class PrinterInt
Prints each int from its input channel to a PrintStream.

For convenience, PrinterInt may be configured with prefix and postfix strings with which to decorate its output.
| Input Channels | ||
|---|---|---|
| in | int | All channels in this package carry integers. | 
MergeInt.
Parallel| Constructor Summary | |
|---|---|
PrinterInt(ChannelInputInt in)
Construct a new PrinterInt with System.out as its PrintStream and empty prefix and postfix strings.  | 
|
PrinterInt(ChannelInputInt in,
           PrintStream printStream)
Construct a new PrinterInt with empty prefix and postfix strings.  | 
|
PrinterInt(ChannelInputInt in,
           PrintStream printStream,
           String prefix,
           String postfix)
Construct a new PrinterInt.  | 
|
PrinterInt(ChannelInputInt in,
           String prefix,
           String postfix)
Construct a new PrinterInt with System.out as its PrintStream.  | 
|
| 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 | 
|---|
public PrinterInt(ChannelInputInt in)
in - the channel from which to read
public PrinterInt(ChannelInputInt in,
                  String prefix,
                  String postfix)
in - the channel from which to readprefix - the string to write in front of each integerpostfix - the string to write after each integer
public PrinterInt(ChannelInputInt in,
                  PrintStream printStream)
in - the channel from which to readprintStream - the stream to which to write
public PrinterInt(ChannelInputInt in,
                  PrintStream printStream,
                  String prefix,
                  String postfix)
in - he channel from which to readprintStream - the stream to which to writeprefix - the string to write in front of each integerpostfix - the string to write after each integer| Method Detail | 
|---|
public void run()
run in interface CSProcess
  | 
CSP for Java (JCSP) 1.1-rc3  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||