[ns] getting the position of node

2011-07-17 Thread Zilu LIANG
Hi everyone. I'm running simulation in an area of 1200m*1200m. I use the following code to get the position of the node a and c: MobileNode *a, *c; a = (MobileNode *)(Node::get_node_by_address(index)); c = (MobileNode *)(Node::get_node_by_address(next)); a-update_position(); xa = a-X(); ya =

[ns] Using SVM in Ns-2

2011-06-18 Thread Zilu LIANG
Hello everyone! I'm thinking of using SVM in NS-2, any idea how to do it? Thanks in advance. Cheers! Zilu

[ns] Scenario generation in NS-2

2011-05-13 Thread Zilu LIANG
Hello guys, Does any one knows how to generate scenarios in which the initial positions of the nodes are the same, only the moving speed is different? Any comment is welcomed! Thanks in advance! Cheers! Pandita