Package org.jcsp.lang
Class StandardConnectionFactory
java.lang.Object
org.jcsp.lang.StandardConnectionFactory
- All Implemented Interfaces:
ConnectionArrayFactory,ConnectionFactory
public class StandardConnectionFactory
extends Object
implements ConnectionFactory, ConnectionArrayFactory
Implements a factory for creating connections.
- Author:
- Quickstone Technologies Limited
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs and returns an implementation ofAny2AnyConnection.createAny2Any(int n) Constructs and returns an array of instances of an implementation ofAny2AnyConnection.Constructs and returns an implementation ofAny2OneConnection.createAny2One(int n) Constructs and returns an array of instances of an implementation ofAny2OneConnection.Constructs and returns an implementation ofOne2AnyConnection.createOne2Any(int n) Constructs and returns an array of instances of an implementation ofOne2AnyConnection.Constructs and returns an implementation ofOne2OneConnection.createOne2One(int n) Constructs and returns an array of instances of an implementation ofOne2OneConnection.
-
Constructor Details
-
StandardConnectionFactory
public StandardConnectionFactory()
-
-
Method Details
-
createOne2One
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofOne2OneConnection.- Specified by:
createOne2Onein interfaceConnectionFactory- Returns:
- the constructed
One2OneConnectionobject. - See Also:
-
createAny2One
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofAny2OneConnection.- Specified by:
createAny2Onein interfaceConnectionFactory- Returns:
- the constructed
Any2OneConnectionobject. - See Also:
-
createOne2Any
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofOne2AnyConnection.- Specified by:
createOne2Anyin interfaceConnectionFactory- Returns:
- the constructed
One2AnyConnectionobject. - See Also:
-
createAny2Any
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofAny2AnyConnection.- Specified by:
createAny2Anyin interfaceConnectionFactory- Returns:
- the constructed
Any2AnyConnectionobject. - See Also:
-
createOne2One
Description copied from interface:ConnectionArrayFactoryConstructs and returns an array of instances of an implementation ofOne2OneConnection.- Specified by:
createOne2Onein interfaceConnectionArrayFactory- Parameters:
n- the number ofOne2OneConnectionobjects to construct.- Returns:
- the constructed array of
One2OneConnectionobjects. - See Also:
-
createAny2One
Description copied from interface:ConnectionArrayFactoryConstructs and returns an array of instances of an implementation ofAny2OneConnection.- Specified by:
createAny2Onein interfaceConnectionArrayFactory- Parameters:
n- the number ofAny2OneConnectionobjects to construct.- Returns:
- the constructed array of
Any2OneConnectionobjects. - See Also:
-
createOne2Any
Description copied from interface:ConnectionArrayFactoryConstructs and returns an array of instances of an implementation ofOne2AnyConnection.- Specified by:
createOne2Anyin interfaceConnectionArrayFactory- Parameters:
n- the number ofOne2AnyConnectionobjects to construct.- Returns:
- the constructed array of
One2AnyConnectionobjects. - See Also:
-
createAny2Any
Description copied from interface:ConnectionArrayFactoryConstructs and returns an array of instances of an implementation ofAny2AnyConnection.- Specified by:
createAny2Anyin interfaceConnectionArrayFactory- Parameters:
n- the number ofAny2AnyConnectionobjects to construct.- Returns:
- the constructed array of
Any2AnyConnectionobjects. - See Also:
-