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