#!/bin/bash export PATH=@BIN_DIR@:$PATH SYNC="fairmq-ex-n-m-synchronizer" SYNC+=" --id Sync" SYNC+=" --channel-config name=sync,type=pub,method=bind,address=tcp://localhost:8010" SYNC+=" --rate 100" xterm -geometry 80x25+0+0 -hold -e $SYNC & SENDER0="fairmq-ex-n-m-sender" SENDER0+=" --id Sender1" SENDER0+=" --channel-config name=sync,type=sub,method=connect,address=tcp://localhost:8010" SENDER0+=" name=data,type=pair,method=connect,address=tcp://localhost:8021,address=tcp://localhost:8022,address=tcp://localhost:8023,address=tcp://localhost:8024" SENDER0+=" --sender-index 0" SENDER0+=" --subtimeframe-size 1000000" SENDER0+=" --num-receivers 4" xterm -geometry 80x25+500+0 -hold -e $SENDER0 & SENDER1="fairmq-ex-n-m-sender" SENDER1+=" --id Sender2" SENDER1+=" --channel-config name=sync,type=sub,method=connect,address=tcp://localhost:8010" SENDER1+=" name=data,type=pair,method=connect,address=tcp://localhost:8031,address=tcp://localhost:8032,address=tcp://localhost:8033,address=tcp://localhost:8034" SENDER1+=" --sender-index 1" SENDER1+=" --subtimeframe-size 1000000" SENDER1+=" --num-receivers 4" xterm -geometry 80x25+500+350 -hold -e $SENDER1 & SENDER2="fairmq-ex-n-m-sender" SENDER2+=" --id Sender3" SENDER2+=" --channel-config name=sync,type=sub,method=connect,address=tcp://localhost:8010" SENDER2+=" name=data,type=pair,method=connect,address=tcp://localhost:8041,address=tcp://localhost:8042,address=tcp://localhost:8043,address=tcp://localhost:8044" SENDER2+=" --sender-index 2" SENDER2+=" --subtimeframe-size 1000000" SENDER2+=" --num-receivers 4" xterm -geometry 80x25+500+700 -hold -e $SENDER2 & RECEIVER0="fairmq-ex-n-m-receiver" RECEIVER0+=" --id Receiver1" RECEIVER0+=" --channel-config name=data,type=pair,method=bind,address=tcp://localhost:8021,address=tcp://localhost:8031,address=tcp://localhost:8041" RECEIVER0+=" --num-senders 3" xterm -geometry 80x25+1000+0 -hold -e $RECEIVER0 & RECEIVER1="fairmq-ex-n-m-receiver" RECEIVER1+=" --id Receiver2" RECEIVER1+=" --channel-config name=data,type=pair,method=bind,address=tcp://localhost:8022,address=tcp://localhost:8032,address=tcp://localhost:8042" RECEIVER1+=" --num-senders 3" xterm -geometry 80x25+1000+350 -hold -e $RECEIVER1 & RECEIVER2="fairmq-ex-n-m-receiver" RECEIVER2+=" --id Receiver3" RECEIVER2+=" --channel-config name=data,type=pair,method=bind,address=tcp://localhost:8023,address=tcp://localhost:8033,address=tcp://localhost:8043" RECEIVER2+=" --num-senders 3" xterm -geometry 80x25+1000+700 -hold -e $RECEIVER2 & RECEIVER3="fairmq-ex-n-m-receiver" RECEIVER3+=" --id Receiver4" RECEIVER3+=" --channel-config name=data,type=pair,method=bind,address=tcp://localhost:8024,address=tcp://localhost:8034,address=tcp://localhost:8044" RECEIVER3+=" --num-senders 3" xterm -geometry 80x25+1000+1050 -hold -e $RECEIVER3 &