All Packages Class Hierarchy This Package Previous Next Index
Class jcsp.util.buildingblocks.BlackHole
java.lang.Object
|
+----jcsp.util.buildingblocks.BlackHole
- public class BlackHole
- extends Object
- implements CSProcess
Process Diagram
___________
in | |
--->-| BlackHole |
|___________|
Description
The BlackHole class is a process which has an infinite loop that waits
a Object of any type to be sent down the in Channel. The process then
discards the Object.
This class can be used to ignore the output from a process while ensuring
that the data is always read from the Channel.
Channel Protocols
Input Channels |
in |
java.lang.Object |
The in Channel can accept data of any Class.
|
Output Channels |
- Author:
- P.D.Austin
-
BlackHole(ChannelInput)
- Construct a new BlackHole process with the input Channel in.
-
run()
- The main body of this process.
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.
All Packages Class Hierarchy This Package Previous Next Index