Hi all,
I have used a DroptailQueue in ned file and want to perform some operation on this queue at.cc file. I dont know how to access this parameters in .cc file.
E.g In ned file I have
submodule:
dropTailQueue1: DropTailQueue {
@display("p=274,110");
queueName = "queue1";
}
And in .cc file I want dequeue the elements from this queue if the queue length is 90. I tried
if(strcmp(getName(),"dropTailQueue2")==0)
{//dequeue operation}
and
if(strcmp(getName(),"queue2")==0)
{//dequeue operation}
but both of these code throws the error. I dont know how to use it. Or I need to declare a queue in the c++ file? If so what happens to the queue used in ned file.
Kindly, provide your inputs.
Regards,
Karthick