Suppose I have the following simple module defined in Client.ned:
simple Client
{
parameters:
volatile int xServerCoord = 1;
volatile int yServerCoord = 2;
}
Also suppose that we have the following network defined in Network.ned:
network Traditional
{
parameters:
volatile int xDiff = intuniform(-20,20);
volatile int yDiff = intuniform(-20,20);
submodules:
client: Client {
parameters:
xCoord = xServerCoord + xDiff;
yCoord = yServerCoord + yDiff;
@display("p=$xCoord,$yCoord");
};
}
When I try to run the simulation, I get the following error:
Cannot evaluate parameter 'xCoord': (omnetpp::cModule)Traditional: Unknown parameter 'xServerCoord' -- during network initialization
Is it possible for me to read the xServerCoord and yServerCoord parameters within Network.ned?
Thanks.