/** * Constructs and returns an array of output channel ends, each of which can only be used by a * single writer. The returned array, <code>r</code>, is constructed such that * <code>r[i] = c[i].out ()</code> for <code>0 <= i < c.Length</code>. * * @param c the array of channel to obtain output ends from. * @return the array of output input ends. */ public static ChannelOutputInt[] getOutputArray(One2OneChannelInt[] c) { ChannelOutputInt[] In = new ChannelOutputInt[c.Length]; for (int i = 0; i < c.Length; i++) { In[i] = c[i].Out(); } return(In); }
/** * Construct a new SuccessorInt process with the input Channel in and the * output Channel out. * * @param in the input Channel * @param out the output Channel */ public SuccessorInt(ChannelInputInt In, ChannelOutputInt Out) { this.In = In; this.Out = Out; }
/** * Construct a new <TT>ProcessWriteInt</TT>. * * @param out the channel to which to write */ public ProcessWriteInt(ChannelOutputInt Out) { this.Out = Out; }
/** * Construct a new PrefixInt process with the input Channel in and the * output Channel out. * * @param n the initial int to be sent down the Channel. * @param in the input Channel * @param out the output Channel */ public PrefixInt(int n, ChannelInputInt In, ChannelOutputInt Out) { this.In = In; this.Out = Out; this.n = n; }
/** * Construct a new IdentityInt process with the input Channel in and the * output Channel out. * * @param in the input Channel * @param out the output Channel */ public IdentityInt(ChannelInputInt In, ChannelOutputInt Out) { this.In = In; this.Out = Out; }
public AltingChannelOutputIntSymmetricImpl( AltingBarrier ab, ChannelOutputInt Out) { this.ab = ab; this.Out = Out; }
/** * Construct a new Delta2Int process with the input Channel in and the output * Channels Out0 and Out1. The ordering of the Channels Out0 and Out1 make * no difference to the functionality of this process. * * @param in the input channel * @param Out0 an output Channel * @param Out1 an output Channel */ public Delta2Int(ChannelInputInt In, ChannelOutputInt out0, ChannelOutputInt out1) { this.In = In; this.Out0 = out0; this.Out1 = out1; }
public Producer(ChannelOutputInt outChannel) { this.outChannel = outChannel; }