I am modeling a manufacturing system. The case is that I would like to implement a ramp-up model so the Agents per arrival and Maximum number of arrival change at a specific time during the simulation. I tried to implement this by using an event but then I am not able to actually change the values of the source.
Change your source arrivals to be defined by calls of inject() funtion.
Use a cyclic event with a reccurence time of 1. That will reflect your interarrival time.
Then use an if statement to control your maximum arrivals.
if (source.count() < maxArrivals) {
source.inject(agentsPerArrival);
}