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.