I would like to change the number of the entities in my simulation based on the simulation time. I found this solution (found here: How to change a parameter value over time?):
Network.numberOfEntities = simTime() < 30s ? 50 : 250
I use this parameter for initializing submodules in the ned file like this:
submodules:
entities[numberOfEntities]: Entity;
However, this does not work here, the number does not change. Any idea how I can change the number of network entities at runtime? The only alternative I can think of is to create 250 entities and only make 50 active at the beginning and change this by a parameter over time instead of creating new entities.