/** * Constructs and returns an array of <code>Any2AnyChannel</code> * objects. * * @param n the size of the array of channels. * @return the array of channels. * * @see jcsp.lang.ChannelArrayFactory#createAny2Any(int) */ public Any2AnyChannel[] createAny2Any(int n) { Any2AnyChannel[] toReturn = new Any2AnyChannel[n]; for (int i = 0; i < n; i++) { toReturn[i] = createAny2Any(); } return(toReturn); }
/** * Constructs and returns an array of <code>Any2AnyChannel</code> * objects with a given buffering behaviour. * * @param n the size of the array of channels. * @param buffer the buffer implementation to use. * @return the array of channels. * * @see jcsp.lang.ChannelArrayFactory#createAny2Any(int) */ public Any2AnyChannel[] createAny2Any(ChannelDataStore buffer, int n) { Any2AnyChannel[] toReturn = new Any2AnyChannel[n]; for (int i = 0; i < n; i++) { toReturn[i] = createAny2Any(buffer); } return(toReturn); }
public static Any2AnyChannel[] any2anyArray(int size, ChannelDataStore data, int immunity) { Any2AnyChannel[] r = new Any2AnyChannel[size]; for (int i = 0; i < size; i++) { r[i] = any2any(data, immunity); } return(r); }
public static Any2AnyChannel[] any2anyArray(int size) { Any2AnyChannel[] r = new Any2AnyChannel[size]; for (int i = 0; i < size; i++) { r[i] = any2any(); } return(r); }
/** * Constructs a new filtered channel object based on an existing channel. */ internal FilteredAny2AnyChannelImpl(Any2AnyChannel chan) { _In = new FilteredSharedChannelInputWrapper(chan.In()); _Out = new FilteredSharedChannelOutputWrapper(chan.Out()); }