Package org.jcsp.lang
Class StandardConnectionFactory
- java.lang.Object
-
- org.jcsp.lang.StandardConnectionFactory
-
- All Implemented Interfaces:
ConnectionArrayFactory,ConnectionFactory
public class StandardConnectionFactory extends java.lang.Object implements ConnectionFactory, ConnectionArrayFactory
Implements a factory for creating connections.
-
-
Constructor Summary
Constructors Constructor Description StandardConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Any2AnyConnection<T>createAny2Any()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>createAny2One()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>createOne2Any()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>createOne2One()Constructs and returns an implementation ofOne2OneConnection.<T> One2OneConnection<T>[]createOne2One(int n)Constructs and returns an array of instances of an implementation ofOne2OneConnection.
-
-
-
Method Detail
-
createOne2One
public <T> One2OneConnection<T> createOne2One()
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofOne2OneConnection.- Specified by:
createOne2Onein interfaceConnectionFactory- Returns:
- the constructed
One2OneConnectionobject. - See Also:
ConnectionFactory.createOne2One()
-
createAny2One
public <T> Any2OneConnection<T> createAny2One()
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofAny2OneConnection.- Specified by:
createAny2Onein interfaceConnectionFactory- Returns:
- the constructed
Any2OneConnectionobject. - See Also:
ConnectionFactory.createAny2One()
-
createOne2Any
public <T> One2AnyConnection<T> createOne2Any()
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofOne2AnyConnection.- Specified by:
createOne2Anyin interfaceConnectionFactory- Returns:
- the constructed
One2AnyConnectionobject. - See Also:
ConnectionFactory.createOne2Any()
-
createAny2Any
public <T> Any2AnyConnection<T> createAny2Any()
Description copied from interface:ConnectionFactoryConstructs and returns an implementation ofAny2AnyConnection.- Specified by:
createAny2Anyin interfaceConnectionFactory- Returns:
- the constructed
Any2AnyConnectionobject. - See Also:
ConnectionFactory.createAny2Any()
-
createOne2One
public <T> One2OneConnection<T>[] createOne2One(int n)
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:
ConnectionArrayFactory.createOne2One(int)
-
createAny2One
public <T> Any2OneConnection<T>[] createAny2One(int n)
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:
ConnectionArrayFactory.createAny2One(int)
-
createOne2Any
public <T> One2AnyConnection<T>[] createOne2Any(int n)
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:
ConnectionArrayFactory.createOne2Any(int)
-
createAny2Any
public <T> Any2AnyConnection<T>[] createAny2Any(int n)
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:
ConnectionArrayFactory.createAny2Any(int)
-
-