Conditional statement in NED file

735 views
Skip to first unread message

Alessandro Leoni

unread,
Jan 9, 2017, 12:17:55 PM1/9/17
to OMNeT++ Users
Hi all,
I'm wondering if there exist a way to use conditional statements in the NED file.
My problem is that I have a compound module that has two submodules, let's call "DelayNode" and "ProcessingNode". The role of DelayNode is almost only to add a delay of N ns (specified by a NED parameter DELAY) to incoming and outcoming messages between the upper node and the ProcessingNode. What I want to do is to instantiate the DelayNode if the NED parameter DELAY is greater that 0, and to avoid its instantiation if DELAY is 0, so I want to change the gate connections depending on a parameter.

Is it possible? Is there a better way to obtain what I want?

Thanks in advance.

Rudolf Hornig

unread,
Jan 11, 2017, 5:40:28 AM1/11/17
to OMNeT++ Users
Yes, NED support conditional submodules:


and conditional connections too:


However if the only behavior of the conditional module is to add delay, it's better to leave it out and just and a DelayChannel at the right place.


and set the DelayChannel's delay parameter as needed.

Wian Virgi

unread,
Jan 14, 2017, 10:56:57 AM1/14/17
to omn...@googlegroups.com
Hai everybody

Could you help me how make throughput meter and recovery time in statistic after simulation? I just found end to end delay and packet loss...
How to analisis them all? In end to end delay used mean vector I just see 1 node have value from my simulation but when In packet loss I see every node in my simulation but just some node have value...
Anybody can explain to me.. I'm so confused.. Please help me my project almost done.. So need your help all... Please...

Thank you before...

--


You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.


Visit this group at https://groups.google.com/group/omnetpp.


For more options, visit https://groups.google.com/d/optout.


Wian Virgi

unread,
Jan 15, 2017, 4:26:35 AM1/15/17
to omn...@googlegroups.com
Oh I'm sorry... This my mistake... I'm really sorry.. Did't mean to distrub everybody... I'm just to confused last night and hopless for my problem... Really sorry from me...

Nadiya EL KAMEL

unread,
May 26, 2019, 2:45:49 PM5/26/19
to OMNeT++ Users
Hi ,  is it possible to use  conditional statements in omnetpp.ini file  ? 
Reply all
Reply to author
Forward
0 new messages