All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.Printer
java.lang.Object
|
+----jcsp.util.Printer
- public class Printer
- extends Object
- implements CSProcess
Process Diagram
___________
in | |
-->-| Printer |
|___________|
Description
The Printer process is an infinite loop which reads an Object from the
in Channel and then writes it to the PrintStream out.
Example
See example in the jcsp.lang.Parallel class.
- Author:
- P.D.Austin
- See Also:
- Parallel
-
Printer(ChannelInput)
- Construct a new Printer with System.out as the PrintStream.
-
Printer(ChannelInput, PrintStream)
- Construct a new Printer.
-
Printer(ChannelInput, PrintStream, String, String)
- Construct a new Printer.
-
Printer(ChannelInput, String, String)
- Construct a new Printer with System.out as the PrintStream.
-
run()
- The main body of this process.
Printer
public Printer(ChannelInput in)
- Construct a new Printer with System.out as the PrintStream.
- Parameters:
- in - The Channel to read the Object from
Printer
public Printer(ChannelInput in,
String prefix,
String postfix)
- Construct a new Printer with System.out as the PrintStream.
- Parameters:
- in - The Channel to read the Object from
- prefix - The String to write in front of each object
- postfix - The String to write after each object
Printer
public Printer(ChannelInput in,
PrintStream out)
- Construct a new Printer.
- Parameters:
- in - The Channel to read the Object from
- out - The Stream to write the Object to
Printer
public Printer(ChannelInput in,
PrintStream out,
String prefix,
String postfix)
- Construct a new Printer.
- Parameters:
- in - The Channel to read the Object from
- out - The Stream to write the Object to
- prefix - The String to write in front of each object
- postfix - The String to write after each object
run
public synchronized void run()
- The main body of this process.
All Packages Class Hierarchy This Package Previous Next Index