State assignment Containers

18 views
Skip to first unread message

max dom

unread,
Aug 21, 2025, 8:33:31 AMAug 21
to JaamSim Users Discussion Group
Hi all,
Im simulating a relatively complex process using multiple containers to move entities around. For my results im using the state assignments a lot to keep track of where the containers are and for how long. 

The problem:
My containers approach an 'AddTo" block and get the assignment "Loading". When they are full they leave and their state changes accordingly. This is great but now my AddTo block is influenced by a threshold. Every n hours the AddTo cannot operate for m hours. We call this daylight restrictions. 

What I need is the state of the container to change at this point to "waiting due to daylight restrictions" or something like that. When the threshold is lifted the loading starts again and the state can be "Loading" again. 

I have not been able to figure out how to get this done in Jaamsim. I feel like this problem is not too exotic so if you have encountered this and found a solution I would love to hear.

Many thanks in advance.

Max

KlausH

unread,
Aug 21, 2025, 11:12:45 AMAug 21
to JaamSim Users Discussion Group
Hello Max,
i had a similar problem. There a server process had to be interrupted as soon an entity with higher priority arrived.
I solved this by interrupting the process and by moving the interrupted entity to a "parking" queue.
As soon the important entity was finished the interrupted entity moved to the original server and finished the process for the remaining time.
Maybe this helps you too.
Attached my model.
Interrupted process.PNG
Best Regards,
Klaus
Submodel_Seize Resource and interrupted.cfg
Reply all
Reply to author
Forward
0 new messages