You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide an API method to get the Submodule Type (typename) from a NED file.
E.g I would like to get the string "Ieee80211g" from C++ when having a NED file like:
The Omnet Manual Section 3.11 Parametric Submodule and Connection Types states that it is preferred to use "Typename pattern assignments" over "node type strings" when specifying submodule types.
This works well as long as the submodules are constructed by the simulation core. If I as a user want to create the submodules dynamically (e.g. using cModuleType::find(modtypename)->create(..) as seen in netbuilder.cc of the routing example), then I have to escape to "node type strings" again, because there's no API to query the "Typename pattern assignments".
Feature Request
Summary
Provide an API method to get the Submodule Type (typename) from a NED file.
E.g I would like to get the string "Ieee80211g" from C++ when having a NED file like:
Description
The Omnet Manual Section 3.11 Parametric Submodule and Connection Types states that it is preferred to use "Typename pattern assignments" over "node type strings" when specifying submodule types.
This works well as long as the submodules are constructed by the simulation core. If I as a user want to create the submodules dynamically (e.g. using
cModuleType::find(modtypename)->create(..)
as seen in netbuilder.cc of the routing example), then I have to escape to "node type strings" again, because there's no API to query the "Typename pattern assignments".It seems as the functionality is already there in cNedNetworkBuilder::getSubmoduleTypeName, it's just not exposed as public API.
The text was updated successfully, but these errors were encountered: