1
import org.jcsp.lang.*;
2
import org.jcsp.plugNplay.ints.*;
4
public class PlexIntExample {
6
public static void main (String[] argv) {
8
final One2OneChannelInt[] a = Channel.one2oneIntArray (3);
9
final One2OneChannelInt b = Channel.one2oneInt ();
13
new NumbersInt (a[0].out ()),
14
new FibonacciInt (a[1].out ()),
15
new SquaresInt (a[2].out ()),
16
new PlexInt (Channel.getInputArray (a), b.out ()),
17
new PrinterInt (b.in (), "--> ", "\n")