I have a model in Main that looks like this:
The source block is set to uniform(4,8) hours in interarrival time.
What is a suitable solution for this problem?
Set the source block to inject instead of interarrival time. Then add a transition of type timeout
from normalWeather
state to itself. Set the timeout as:
uniform(4,8)
And set the action as:
source.inject();
That way, as long as your agent is in the state normal weather, agent injections will occur at your desired rate.