Mercurial > hg > Database > Alice
changeset 640:f05a89484ec1
check topology
author | suruga |
---|---|
date | Sat, 30 Dec 2017 20:33:06 +0900 |
parents | 8d9f35701fdb |
children | 646f705e65b1 |
files | scripts/aquarium.sh |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/aquarium.sh Sat Dec 30 20:25:19 2017 +0900 +++ b/scripts/aquarium.sh Sat Dec 30 20:33:06 2017 +0900 @@ -5,23 +5,23 @@ fi max=$1 child_num=$2 -java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java +# java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java jar_path=../build/libs/Alice.jar -if [ ! -e $java ]; then - echo "$java not found." - exit 1 -fi +# if [ ! -e $java ]; then +# echo "$java not found." +# exit 1 +# fi ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot dot -Tpng ./topology/tree.dot > ./topology/tree.png #open ./topology/tree.png -$java -version -$java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & +java -version +java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & cnt=0 while [ $cnt -lt $max ] do - $java -cp $jar_path alice.test.topology.aquarium.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/aquarium${cnt}.log -level debug > ./output/std_aquarium${cnt}.log & + java -cp $jar_path alice.test.topology.aquarium.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/aquarium${cnt}.log -level debug > ./output/std_aquarium${cnt}.log & cnt=`expr $cnt + 1` done wait