How to programmatically manage startWatch and stopWatch in an AnyLogic model -


i'm building model anylogic using process model library (pml).

in network have 4 "source" elements emits agents, of same type different "category" string id inside them (saved variable) differentiate them; purchase order different departments. have inserted blocks measure time agents spend exit assembler elements (you see in picture inside red circles). time want plot in graph show how fast are.

after test , reading documentation have see when agent pass under start photocell (agent of department) timer activated , opposite when agent (agent of department) pass under stop photocell timer stopped. in case of agent different category ids.

how can synchronize timers measure time of object same category id? want if first source element "category nilo&salmoni" produce agent stopwatch measure time of 1 , not of one, emitted category, reach stopwatch first.

sample of network


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -