CSP for Java
(JCSP) 1.1-rc2

org.jcsp.lang
Interface One2OneChannel

All Known Subinterfaces:
FilteredOne2OneChannel

public interface One2OneChannel

This implements a one-to-one object channel.

Description

One2OneChannelImpl implements a one-to-one object channel. Multiple readers or multiple writers are not allowed -- these are catered for by Any2OneChannel, One2AnyChannel or Any2AnyChannel.

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.

Other static create methods allows the user to create fully initialised arrays of channels, including plug-ins if required.

Author:
P.D.Austin, P.H.Welch
See Also:
Alternative, Any2OneChannelImpl, One2AnyChannelImpl, Any2AnyChannelImpl, ChannelDataStore

Method Summary
 AltingChannelInput in()
          Returns the input channel end.
 ChannelOutput out()
          Returns the output channel end.
 

Method Detail

in

AltingChannelInput in()
Returns the input channel end.


out

ChannelOutput out()
Returns the output channel end.


CSP for Java
(JCSP) 1.1-rc2

Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc2 of the JCSP API Specification (Copyright 1997-2007 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.