如何在 omnet++ 中模拟 运行 时更新 .ini 文件中的 xml 文件?

How to update xml file within .ini file while simulation running in omnet++?

我在 omnet++ 中使用 NesTing 库。为了调度开关门,门控制列表定义在一个 xml 文件中,该文件由 .ini 文件加载。例如,

**.n5.eth[3].queue.gateController.initialSchedule = xmldoc("schedules.xml", "/schedule/switch[@name='n5']/port[@id='3']/schedule")
**.n6.eth[1].queue.gateController.initialSchedule = xmldoc("schedules.xml", "/schedule/switch[@name='n6']/port[@id='1']/schedule")
**.n6.eth[2].queue.gateController.initialSchedule = xmldoc("schedules.xml", "/schedule/switch[@name='n6']/port[@id='2']/schedule")

我想动态更改 'schedules.xml' 文件的参数,并希望配置文件重新读取更新后的文件,以便实施更新后的 GCL。如果需要,我当然可以提供更多信息来解决我的问题。

我相信 NesTing 不准备临时更改参数和调度。所以你不能那样做。