|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface One2AnyChannel
This implements a one-to-any object channel, safe for use by one writer and many readers.
Please note that this is a safely shared channel and not
a broadcaster. Currently, broadcasting has to be managed by
writing active processes (see DynamicDelta
for an example).
All reading processes and the writing process commit to the channel
(i.e. may not back off). This means that the reading processes
may not ALT
on this channel.
The default semantics of the channel is that of CSP -- i.e. it is zero-buffered and fully synchronised. A reading process must wait for the matching writer and vice-versa.
A factory pattern is used to create channel instances. The create methods of Channel
allow creation of channels, arrays of channels and channels with varying semantics such as
buffering with a user-defined capacity or overwriting with various policies.
Standard examples are given in the org.jcsp.util package, but
careful users may write their own.
One2OneChannel
,
Any2OneChannel
,
Any2AnyChannel
,
ChannelDataStore
Method Summary | |
---|---|
SharedChannelInput |
in()
Returns the input end of the channel. |
ChannelOutput |
out()
Returns the output end of the channel. |
Method Detail |
---|
SharedChannelInput in()
ChannelOutput out()
|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |