jcsp.plugNplay
Class BlackHole
java.lang.Object
|
+--jcsp.plugNplay.BlackHole
- All Implemented Interfaces:
- CSProcess
- public class BlackHole
- extends Object
- implements CSProcess
Black holes anything sent to it.
Process Diagram
___________
in | |
--->-| BlackHole |
|___________|
Description
BlackHole is a process that accepts everything sent to it.
This class can be used to ignore the output from a process while ensuring
that the data is always read from the channel.
Note: this functionality is (more efficiently) provided by
a BlackHoleChannel
.
Channel Protocols
Input Channels |
in |
java.lang.Object |
The in Channel can accept data of any Class.
|
- Author:
- P.D.Austin
Constructor Summary |
BlackHole(ChannelInput in)
Construct a new BlackHole process with the input Channel in. |
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 |
BlackHole
public BlackHole(ChannelInput in)
- Construct a new BlackHole process with the input Channel in.
- Parameters:
in
- the input channel
run
public void run()
- The main body of this process.
- Specified by:
run
in interface CSProcess
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.