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
-
PrinterInt(ChannelInputInt)
- Construct a new PrinterInt with System.out as the PrintStream.
-
PrinterInt(ChannelInputInt, PrintStream)
- Construct a new PrinterInt.
-
PrinterInt(ChannelInputInt, PrintStream, String, String)
- Construct a new PrinterInt.
-
PrinterInt(ChannelInputInt, String, String)
- Construct a new PrinterInt with System.out as the PrintStream.
-
run()
- The main body of this process.
PrinterInt
public PrinterInt(ChannelInputInt in)
- Construct a new PrinterInt with System.out as the PrintStream.
- Parameters:
- in - The ChannelInt to read the int from
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
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
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
run
public synchronized void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index