Package org.jcsp.lang
Interface ConnectionArrayFactory
-
- All Known Implementing Classes:
StandardConnectionFactory
public interface ConnectionArrayFactoryDefines an interface for a factory that can create arrays of connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Any2AnyConnection<T>[]createAny2Any(int n)Constructs and returns an array of instances of an implementation ofAny2AnyConnection.<T> Any2OneConnection<T>[]createAny2One(int n)Constructs and returns an array of instances of an implementation ofAny2OneConnection.<T> One2AnyConnection<T>[]createOne2Any(int n)Constructs and returns an array of instances of an implementation ofOne2AnyConnection.<T> One2OneConnection<T>[]createOne2One(int n)Constructs and returns an array of instances of an implementation ofOne2OneConnection.
-
-
-
Method Detail
-
createOne2One
<T> One2OneConnection<T>[] createOne2One(int n)
Constructs and returns an array of instances of an implementation ofOne2OneConnection.- Parameters:
n- the number ofOne2OneConnectionobjects to construct.- Returns:
- the constructed array of
One2OneConnectionobjects.
-
createAny2One
<T> Any2OneConnection<T>[] createAny2One(int n)
Constructs and returns an array of instances of an implementation ofAny2OneConnection.- Parameters:
n- the number ofAny2OneConnectionobjects to construct.- Returns:
- the constructed array of
Any2OneConnectionobjects.
-
createOne2Any
<T> One2AnyConnection<T>[] createOne2Any(int n)
Constructs and returns an array of instances of an implementation ofOne2AnyConnection.- Parameters:
n- the number ofOne2AnyConnectionobjects to construct.- Returns:
- the constructed array of
One2AnyConnectionobjects.
-
createAny2Any
<T> Any2AnyConnection<T>[] createAny2Any(int n)
Constructs and returns an array of instances of an implementation ofAny2AnyConnection.- Parameters:
n- the number ofAny2AnyConnectionobjects to construct.- Returns:
- the constructed array of
Any2AnyConnectionobjects.
-
-