Package org.jcsp.lang
Interface One2OneChannelSymmetricInt
-
public interface One2OneChannelSymmetricIntThis defines the interface for a symmetric one-to-one integer channel. The symmetry relates to the use of its channel ends asguardsin anAlternative: both ends may be so used.The only methods provided are to obtain the ends of the channel, through which all reading and writing operations are done. Only an appropriate channel-end should be plugged into a process – not the whole channel. A process may use its external channels in one direction only – either for writing or reading.
Actual channels conforming to this interface are made using the relevant static construction methods from
Channel. Only fullysynchronisingchannels are currently supported.Description
One2OneChannelImpl is an interface for a symmetric one-to-one object channel. Multiple readers or multiple writers are not allowed.Both the reading and writing processes may
ALTon this channel.The 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.
These channels may be constructed by theChannel.one2oneSymmetricInt(). Channel poisoning and buffering are not currently supported for these channels.- Author:
- P.H. Welch, N.C.C. Brown
- See Also:
Alternative,One2OneChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AltingChannelInputIntin()Returns the input channel end.AltingChannelOutputIntout()Returns the output channel end.
-
-
-
Method Detail
-
in
AltingChannelInputInt in()
Returns the input channel end.
-
out
AltingChannelOutputInt out()
Returns the output channel end.
-
-