- org.jcsp.lang.BlackHoleChannelInt
-
- All Implemented Interfaces and Traits:
- ChannelOutputInt
public class BlackHoleChannelInt
This implements ChannelOutputInt with black hole semantics.
Description
BlackHoleChannelInt is an implementation of ChannelOutputInt that yields
black hole semantics for a channel. Writers may always write but there can be
no readers. Any number of writers may share the same black hole.
Note: BlackHoleChannelInts are used for masking off unwanted outputs
from processes. They are useful when we want to reuse an existing process component
intact, but don't need some of its output channels (i.e. we don't want to redesign
and reimplement the component to remove the redundant channels). Normal channels cannot
be plugged in and left dangling as this may deadlock (parts of) the component being
reused.
- See Also:
- ChannelOutputInt
- One2OneChannelInt
- Any2OneChannelInt
- One2AnyChannelInt
- Any2AnyChannelInt
- Authors:
- P.H.Welch
-
-
Methods Summary
Methods
Type |
Name and description |
void |
poison(int strength)
|
void |
write(int i) Write an integer to the channel and loose it. |
-
Inherited Methods Summary
-
-
Method Detail
-
public void poison(int strength)
- Summary:
Nested Field Constructor - Method
- | Detail:
Field Constructor - Method
JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk