Package org.jcsp.lang

Interface ConnectionArrayFactory

All Known Implementing Classes:
StandardConnectionFactory

public interface ConnectionArrayFactory
Defines an interface for a factory that can create arrays of connections.
  • Method Summary

    Modifier and Type
    Method
    Description
    Constructs and returns an array of instances of an implementation of Any2AnyConnection.
    Constructs and returns an array of instances of an implementation of Any2OneConnection.
    Constructs and returns an array of instances of an implementation of One2AnyConnection.
    Constructs and returns an array of instances of an implementation of One2OneConnection.
  • Method Details

    • createOne2One

      <T> One2OneConnection<T>[] createOne2One(int n)
      Constructs and returns an array of instances of an implementation of One2OneConnection.
      Parameters:
      n - the number of One2OneConnection objects to construct.
      Returns:
      the constructed array of One2OneConnection objects.
    • createAny2One

      <T> Any2OneConnection<T>[] createAny2One(int n)
      Constructs and returns an array of instances of an implementation of Any2OneConnection.
      Parameters:
      n - the number of Any2OneConnection objects to construct.
      Returns:
      the constructed array of Any2OneConnection objects.
    • createOne2Any

      <T> One2AnyConnection<T>[] createOne2Any(int n)
      Constructs and returns an array of instances of an implementation of One2AnyConnection.
      Parameters:
      n - the number of One2AnyConnection objects to construct.
      Returns:
      the constructed array of One2AnyConnection objects.
    • createAny2Any

      <T> Any2AnyConnection<T>[] createAny2Any(int n)
      Constructs and returns an array of instances of an implementation of Any2AnyConnection.
      Parameters:
      n - the number of Any2AnyConnection objects to construct.
      Returns:
      the constructed array of Any2AnyConnection objects.