bluetooth - import external data to ONE simulator -


i want convert tracefile.txt standard format using imported trace file 1 simulator. have 3 "txt" file(unical dataset downloaded crawdad site:www.crawdad.org), bluetooth contact file containing 2 nodeid , timestamps below:

1   2   1390923561864- 1   2   1390925003119- 1   9   1391095406320- 1   9   1391096487223- 2   1   1391522133001- 2   1   1391526148381- 2   1   1391527769767- 2   1   1391529571307- .... 

the second file contains friendships between nodes (if 2 nodes friends =1 else =0), , third file :"interests", weighted adjacency matrix,although, know can have graphviz report result in 1 simulator, possible use report imported data in 1 simulator? if yes, how can ?

step 1: process dataset

wirte script (awk, python, or else) convert dataset meet one's requirement, i.e., each line time conn node_i node_j up/down, instance:

21574 conn 1 40 21687 conn 1 40 down 

step 2: import 1 simulator

configure settings file, main items follows:

scenario.simulateconnections = false group.movementmodel = stationarymovement group.nodelocation = 0,1  events.nrof = 2 events1.class = externaleventsqueue events1.filepath = path/infocom05.txt 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -