HOW we can set the position of a node in the Algorithm code inside j-sim

45 views
Skip to first unread message

Zineb Laouici

unread,
Apr 4, 2014, 12:37:14 PM4/4/14
to j-sim...@googlegroups.com
HOW we can set the position of a node in the Algorithm code <in jsim> instead of tcl file ,

when i import "drcl.inet.mac.MobilityModel " and try to call the setPosition function, the function didn't known;

and when i put this
MobilityModel n =new drcl.inet.mac.MobilityModel();
this.n.setPosition(0, 100,100, 0);
i had an error:
java.lang.NullPointerException
    at drcl.comp.Port.doSending(Port.java:836)
    at drcl.inet.mac.MobilityModel.reportPosition(MobilityModel.java:430)
    at drcl.inet.mac.MobilityModel.setPosition(MobilityModel.java:261)
    at drcl.inet.protocol.AODV2.AODV.RecvLeader(AODV.java:225)
    at drcl.inet.protocol.AODV2.AODV.dataArriveAtDownPort(AODV.java:205)
    at drcl.net.Module.process(Module.java:158)
    at drcl.comp.TaskReceive.execute(TaskReceive.java:71)
    at drcl.sim.event.SEThread.run(SEThread.java:290)
Thread[0,3,SESim1], ACTIVE
Context=/aodvtest/n4/aodv/down@,sz64(INET)sz20--src:3--dest:*--prot:0--TTL:0/1--ROUTER_ALERT--ToS:#1--label:0--nexthop:*__<sz44(AODV)sz24--HELLO--router:3--__<From: 3>__>__
Next_Task=<null>
Locks: <not implemented yet>
#arrivals: 3297
last_sleepOn: null
last_wkUp_thread: null

mehran.k...@gmail.com

unread,
Aug 13, 2014, 10:56:05 AM8/13/14
to j-sim...@googlegroups.com
hi
i am not here to answer you.i have a question if you answer me i'll be happy.my thesis is about energy efficient object tracking in wireless sensor networks.can i simulate that in j-sim?if you can answer me.please mail me to k.a...@yahoo.com
Reply all
Reply to author
Forward
0 new messages