mercredi 21 janvier 2015

creating network of n(n taken from user) nodes in omnet++


Vote count:

0




I am working on a project for Location privacy by using OMNET++, Recently i have developed a network of two nodes (like Tic- Toc game) and want to convert it into a real network which vary from 2 to n nodes as per user requirement.


This is structure of 2 nodes:



simple Txc1
{
gates:
input in;
output out;
}
`enter code here`// Two instances (tic and toc) of Txc1 connected both ways.
// Tic and toc will pass messages to one another.
//
network Tictoc1
{
submodules:
tic: Txc1;
toc: Txc1;
connections:
tic.out --> { delay = 100ms; } --> toc.in;
tic.in <-- { delay = 100ms; } <-- toc.out;
}


How can i do that for n nodes?? I mean how can I input n(from user) in OMNET++??


Anyone please...



asked 20 secs ago







creating network of n(n taken from user) nodes in omnet++

Aucun commentaire:

Enregistrer un commentaire