Hi,
You can either use :
numG = getParentModule()->par("numGood");
This has to be adapted depending on your topology...
or use the first upper level module holding the parameter you are looking for :
numG = getAncestorPar(("numGood");
Patrick
-----Message d'origine-----
De : omn...@googlegroups.com
[mailto:omn...@googlegroups.com] De
la part de De
Envoyé : mardi 6 juillet 2010 17:07
À : omnetpp
Objet : [Omnetpp-l] Access a Network parameter
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.
system module == the toplevel module in the model == "the network"
Andras
-De
--