|
CSP for Java (JCSP) 1.1-rc1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Any2OneChannelInt
This defines an interface for an any-to-one integer channel, safe for use by many writers and one reader.
The reading process may ALT
on this channel.
The writing process is committed (i.e. it may not back off).
The default semantics of the channel is that of CSP -- i.e. it is zero-buffered and fully synchronised. The reading process must wait for a 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.
Alternative
,
One2OneChannelInt
,
One2AnyChannelInt
,
Any2AnyChannelInt
,
ChannelDataStoreInt
Method Summary | |
---|---|
AltingChannelInputInt |
in()
Returns the input end of the channel. |
SharedChannelOutputInt |
out()
Returns the output end of the channel. |
Method Detail |
---|
AltingChannelInputInt in()
SharedChannelOutputInt out()
|
CSP for Java (JCSP) 1.1-rc1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |