Hi,
I have migrated my old software from OMNET3.3 to 5.6.
It is error free syntax now, but I still get this running Error (while Initializing).
“unknown Parameter nodeAddress in module SetUpHandler (see attached fig)
I don't know what the issue is, since it is defined in the ini and ned files.
Here is my code:
void SetUpHandler::initialize() {
//Pointer to the StatisticsCollector module to collect statistics
cModule *module = this->getParentModule()->getParentModule()->getSubmodule("statistics");
stats = check_and_cast<StatisticsCollector *>(module);
//Get a pointer to the Topology module
cModule *mod = this->getParentModule()->getParentModule()->getSubmodule("topology");
topo = check_and_cast<Topology *>(mod);
cMessage *smsg = new cMessage();
this->scheduleAt(simTime().dbl(),smsg);
}
void SetUpHandler::handleMessage(cMessage *msg) {
delete msg;
this->initializeIpTopology(LP);
this->initializeIpTopology(HP);
}
……
….
……
void SetUpHandler::initializeIpTopology(Priority priority){
cModule *sourmod = this->getParentModule();
volatile int sAddress = sourmod->par("nodeAddress"); //.longValue();
volatile int dAddress;
volatile int numOutFibers = sourmod->gateSize("outputFibers");
Thanks for your response, but….
Sorry, that does not help,
I do not use INET and do not have L3 Address,,
actually the node address in my network is defined in the NED and INI files,
(Node {
parameters:
volatile int nodeAddress;
volatile double rposx;
volatile double rposy; )
furthermore I can access this Par in other modules ( e.g. Topology Module) of my simulation, but not from the SetUpHandler ..!!!
I hope you can help to solve this Prob.
thanks
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/AM0P193MB04197FB043F8D1A88BD63B568CDD0%40AM0P193MB0419.EURP193.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/AM0P193MB04197FB043F8D1A88BD63B568CDD0%40AM0P193MB0419.EURP193.PROD.OUTLOOK.COM.
I suspect tht the parent module is no the node, it is posible that you have other module between the SetUpHandler and the node
Enviado desde Correo para Windows 10
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/CAGQpg6C5u%2BJj_E8M1fLd1Y3NnUtE7PtgBu8TrBpcLByyzDgDew%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/549a20ed-54bf-4b1f-a0f9-eb6b9c7abc8d%40googlegroups.com.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/AM0P193MB04197FB043F8D1A88BD63B568CDD0%40AM0P193MB0419.EURP193.PROD.OUTLOOK.COM.
--
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+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/549a20ed-54bf-4b1f-a0f9-eb6b9c7abc8d%40googlegroups.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/AM0P193MB04197FB043F8D1A88BD63B568CDD0%40AM0P193MB0419.EURP193.PROD.OUTLOOK.COM.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/CAGQpg6C5u%2BJj_E8M1fLd1Y3NnUtE7PtgBu8TrBpcLByyzDgDew%40mail.gmail.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/1c458799-5183-4454-8945-64272359452f%40googlegroups.com.