Cancel
Showing results for 
Search instead for 
Did you mean: 

move freely location

Genius
Genius

Hello,

 

I would like to know when worker stop moving. So I waituntil his location = his destination.

But for the workerPool I can't use this trick because when a worker exit from a workstation his location is set to workerPool. What ever his distination and his actual location.

 

 

Is it possible to know if a worker is moving ?

 

Regards

 

rpinon

6 REPLIES

Re: move freely location

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
since the worker only walks on foothPath objects, you could check the location.class.name/="FootPath" after a change of location (e.g. observer for location)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: move freely location

Genius
Genius

He

 

Thanks but my workers move freely so I don't use footpath...

 

Regards

Re: move freely location

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

ok, the location of the worker is WorkerPool, while he walks, but he is not waiting when he is walking, so you could try the condition:

worker.location/= workerpool or worker.waiting

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: move freely location

Genius
Genius

Definitly, no ... After several tests when a worker walk he wait ...workerWalk.png

 

An other idea ?

Re: move freely location

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

really?
One problem is the workerpool, after walking to the workerpool the location doesn't change, so you need a second observer for availableForMediation ...

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: move freely location

Genius
Genius

Your solution is a little bit tricky but it works. 

 

I would have prefered a build in solution like an isEnrouteToDestination or isTransporting or isMoving.

 

Thank you for your time.

 

Regards,

 

rpinon