Hi all. I found something very interesting:
- imagine a module that has an array of integers and a command setValue(int) that will set the value passed by argument on TOS_NODE_IDth position of that array. - then, imagine an application that does something like MyModule.setValue(someNumber). If, for each mote, we print that array, we will get something like: - Mote 0 [0] someNumber [1] 0 [2] 0 [3] 0 ... - Mote 1 [0] 0 [1] someNumber [2] 0 [3] 0 ... - Mote 2 [0] 0 [1] 0 [2] someNumber [3] 0 ... etc. How comes that different motes use different arrays? I thought they would share the same array (since the module is the same for all of them) and the result I expected would be something like: [0] someNumber [1] someNumber [2] someNumber [3] someNumber ... Does anyone have a logic explanation for this fact? Does TOSSIM really creates N different modules for a simulation of N motes? Thanks in advance. Kind regards, Pedro Nunes
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
