Package org.jcsp.lang
Class Connection
java.lang.Object
org.jcsp.lang.Connection
This class provides static factory methods for constructing
different types of connection. The methods are equivalent to
the non-static methods of the
StandardConnectionFactory
class.- Author:
- Quickstone Technologies Limited
-
Method Summary
Modifier and TypeMethodDescriptionstatic Any2OneConnection[]
any2oneArray
(int n) static Any2AnyConnection
static Any2AnyConnection[]
createAny2Any
(int n) static Any2OneConnection
static One2AnyConnection
static One2AnyConnection[]
createOne2Any
(int n) static One2OneConnection
static One2OneConnection[]
createOne2One
(int n) static SharedConnectionClient[]
Returns an array of client connection ends suitable for use by multiple concurrent processes.static SharedConnectionClient[]
Returns an array of client connection ends suitable for use by multiple concurrent processes.static AltingConnectionClient[]
Returns an array of client connection ends suitable for use as guards in anAlternative
construct.static AltingConnectionClient[]
Returns an array of client connection ends suitable for use as guards in anAlternative
construct.static SharedConnectionServer[]
Returns an array of server connection ends suitable for use by multiple concurrent processes.static AltingConnectionServer[]
Returns an array of server connection ends suitable for use as guards in anAlternative
construct.static SharedConnectionServer[]
Returns an array of server connection ends suitable for use by multiple concurrent processes.static AltingConnectionServer[]
Returns an array of server connection ends suitable for use as guards in anAlternative
construct.
-
Method Details
-
createOne2One
- See Also:
-
createAny2One
- See Also:
-
createOne2Any
- See Also:
-
createAny2Any
- See Also:
-
createOne2One
- See Also:
-
any2oneArray
- See Also:
-
createOne2Any
- See Also:
-
createAny2Any
- See Also:
-
getClientArray
Returns an array of client connection ends suitable for use as guards in anAlternative
construct.- Parameters:
c
- the connection array to get the client ends from.- Returns:
- the array of client ends.
-
getClientArray
Returns an array of client connection ends suitable for use as guards in anAlternative
construct.- Parameters:
c
- the connection array to get the client ends from.- Returns:
- the array of client ends.
-
getClientArray
Returns an array of client connection ends suitable for use by multiple concurrent processes.- Parameters:
c
- the connection array to get the client ends from.- Returns:
- the array of client ends.
-
getClientArray
Returns an array of client connection ends suitable for use by multiple concurrent processes.- Parameters:
c
- the connection array to get the client ends from.- Returns:
- the array of client ends.
-
getServerArray
Returns an array of server connection ends suitable for use as guards in anAlternative
construct.- Parameters:
c
- the connection array to get the server ends from.- Returns:
- the array of server ends.
-
getServerArray
Returns an array of server connection ends suitable for use as guards in anAlternative
construct.- Parameters:
c
- the connection array to get the server ends from.- Returns:
- the array of server ends.
-
getServerArray
Returns an array of server connection ends suitable for use by multiple concurrent processes.- Parameters:
c
- the connection array to get the server ends from.- Returns:
- the array of server ends.
-
getServerArray
Returns an array of server connection ends suitable for use by multiple concurrent processes.- Parameters:
c
- the connection array to get the server ends from.- Returns:
- the array of server ends.
-