All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jcsp.util.ints.PrinterInt

java.lang.Object
   |
   +----jcsp.util.ints.PrinterInt

public class PrinterInt
extends Object
implements CSProcess

Process Diagram

      ______________
  in |              |
 -->-|  PrinterInt  |
     |______________|
 

Description

The PrinterInt process is an infinite loop which reads an int from the in ChannelInt and then writes it to the PrintStream out.

Author:
P.D.Austin

Constructor Index

 o PrinterInt(ChannelInputInt)
Construct a new PrinterInt with System.out as the PrintStream.
 o PrinterInt(ChannelInputInt, PrintStream)
Construct a new PrinterInt.
 o PrinterInt(ChannelInputInt, PrintStream, String, String)
Construct a new PrinterInt.
 o PrinterInt(ChannelInputInt, String, String)
Construct a new PrinterInt with System.out as the PrintStream.

Method Index

 o run()
The main body of this process.

Constructors

 o PrinterInt
 public PrinterInt(ChannelInputInt in)
Construct a new PrinterInt with System.out as the PrintStream.

Parameters:
in - The ChannelInt to read the int from
 o PrinterInt
 public PrinterInt(ChannelInputInt in,
                   String prefix,
                   String postfix)
Construct a new PrinterInt with System.out as the PrintStream.

Parameters:
in - The ChannelInt to read the int from
prefix - The String to write in front of each int
postfix - The String to write after each int
 o PrinterInt
 public PrinterInt(ChannelInputInt in,
                   PrintStream out)
Construct a new PrinterInt.

Parameters:
in - The ChannelInt to read the int from
out - The Stream to write the int to
 o PrinterInt
 public PrinterInt(ChannelInputInt in,
                   PrintStream out,
                   String prefix,
                   String postfix)
Construct a new PrinterInt.

Parameters:
in - The ChannelInt to read the Object from
out - The Stream to write the int to
prefix - The String to write in front of each int
postfix - The String to write after each int

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index