annotate scripts/fishBeta_run.sh @ 119:f84e1684c6be working

put NULL in CS
author sugi
date Thu, 26 Jul 2012 15:43:57 +0900
parents 96674c803853
children 26b4b18c51fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
107
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
1 #!/bin/bash
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
2 max=$1
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
3 child_num=$2
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
4 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot
109
96674c803853 set background
sugi
parents: 107
diff changeset
5 dot -Tpng ./topology/tree.dot > ./topology/tree.png
96674c803853 set background
sugi
parents: 107
diff changeset
6 open ./topology/tree.png
107
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
7 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log &
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
8
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
9 cnt=0
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
10 while [ $cnt -lt $max ]
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
11 do
119
f84e1684c6be put NULL in CS
sugi
parents: 109
diff changeset
12 java -cp ../Alice.jar alice.test.topology.fishmodel.beta.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/modelbeta${cnt}.log -level debug > ./output/std_modelbeta${cnt}.log &
107
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
13 cnt=`expr $cnt + 1`
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
14 done
a8f77957a477 create new model to share fish point
sugi
parents:
diff changeset
15 wait