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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Any2AnyConnection
<T> Constructs and returns an implementation ofAny2AnyConnection
.<T> Any2AnyConnection<T>[]
createAny2Any
(int n) Constructs and returns an array of instances of an implementation ofAny2AnyConnection
.<T> Any2OneConnection
<T> Constructs and returns an implementation ofAny2OneConnection
.<T> Any2OneConnection<T>[]
createAny2One
(int n) Constructs and returns an array of instances of an implementation ofAny2OneConnection
.<T> One2AnyConnection
<T> Constructs and returns an implementation ofOne2AnyConnection
.<T> One2AnyConnection<T>[]
createOne2Any
(int n) Constructs and returns an array of instances of an implementation ofOne2AnyConnection
.<T> One2OneConnection
<T> Constructs and returns an implementation ofOne2OneConnection
.<T> One2OneConnection<T>[]
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:ConnectionFactory
Constructs and returns an implementation ofOne2OneConnection
.- Specified by:
createOne2One
in interfaceConnectionFactory
- Returns:
- the constructed
One2OneConnection
object. - See Also:
-
createAny2One
Description copied from interface:ConnectionFactory
Constructs and returns an implementation ofAny2OneConnection
.- Specified by:
createAny2One
in interfaceConnectionFactory
- Returns:
- the constructed
Any2OneConnection
object. - See Also:
-
createOne2Any
Description copied from interface:ConnectionFactory
Constructs and returns an implementation ofOne2AnyConnection
.- Specified by:
createOne2Any
in interfaceConnectionFactory
- Returns:
- the constructed
One2AnyConnection
object. - See Also:
-
createAny2Any
Description copied from interface:ConnectionFactory
Constructs and returns an implementation ofAny2AnyConnection
.- Specified by:
createAny2Any
in interfaceConnectionFactory
- Returns:
- the constructed
Any2AnyConnection
object. - See Also:
-
createOne2One
Description copied from interface:ConnectionArrayFactory
Constructs and returns an array of instances of an implementation ofOne2OneConnection
.- Specified by:
createOne2One
in interfaceConnectionArrayFactory
- Parameters:
n
- the number ofOne2OneConnection
objects to construct.- Returns:
- the constructed array of
One2OneConnection
objects. - See Also:
-
createAny2One
Description copied from interface:ConnectionArrayFactory
Constructs and returns an array of instances of an implementation ofAny2OneConnection
.- Specified by:
createAny2One
in interfaceConnectionArrayFactory
- Parameters:
n
- the number ofAny2OneConnection
objects to construct.- Returns:
- the constructed array of
Any2OneConnection
objects. - See Also:
-
createOne2Any
Description copied from interface:ConnectionArrayFactory
Constructs and returns an array of instances of an implementation ofOne2AnyConnection
.- Specified by:
createOne2Any
in interfaceConnectionArrayFactory
- Parameters:
n
- the number ofOne2AnyConnection
objects to construct.- Returns:
- the constructed array of
One2AnyConnection
objects. - See Also:
-
createAny2Any
Description copied from interface:ConnectionArrayFactory
Constructs and returns an array of instances of an implementation ofAny2AnyConnection
.- Specified by:
createAny2Any
in interfaceConnectionArrayFactory
- Parameters:
n
- the number ofAny2AnyConnection
objects to construct.- Returns:
- the constructed array of
Any2AnyConnection
objects. - See Also:
-