コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * Construct a new <TT>ProcessWriteInt</TT>.
  *
  * @param out the channel to which to write
  */
 public ProcessWriteInt(ChannelOutputInt Out)
 {
     this.Out = Out;
 }
コード例 #4
0
 /**
  * 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;
 }
コード例 #5
0
ファイル: IdentityInt.cs プロジェクト: PasierbKarol/CSPsharp
 /**
  * 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;
 }
コード例 #6
0
 public AltingChannelOutputIntSymmetricImpl(
     AltingBarrier ab, ChannelOutputInt Out)
 {
     this.ab  = ab;
     this.Out = Out;
 }
コード例 #7
0
ファイル: Delta2Int.cs プロジェクト: PasierbKarol/CSPsharp
 /**
  * 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;
 }
コード例 #8
0
ファイル: Producer.cs プロジェクト: PasierbKarol/CSPsharp
 public Producer(ChannelOutputInt outChannel)
 {
     this.outChannel = outChannel;
 }