question

Diego VG avatar image
0 Likes"
Diego VG asked Joerg Vogel commented

Interrupt travel task

Good morning,

I am writing as after some tests I have been unable to manage a workaround to create a travel interruption. Basically I wondered if the following behaviour could be transfered to a model:

1. A taskexecuter is given a travel activity task to a position B (Astar navigator)

2. A delay takes places

3. A new travel activity task to a position C is given. Taskexecuter stops traveling towards B and starts moving towards C.

I would be most grateful for any help or workaround you may have found.

Thanks in advance

Diego

FlexSim 21.2.4
astartravelinterruption
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
Perhaps preemption will do what you want.
0 Likes 0 ·
Diego VG avatar image Diego VG Jason Lightfoot ♦♦ commented ·
It is indeed the case but that will mean creating a dispatcher and creating a rather complex system. I wonderer if a quick solution existed (maybe with a custom code) to stop the travel task and free the task executer so he can dean with any other incoming task.
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Diego VG commented ·
it is there: PREEMPT_AND_ABORT_ALL is the value, that you use in your travel tasksequence to "C".
0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Here is an example: Taskesequences are created in trigger source code On Reset and On Message. A message let the operator travel to C.

Preempt_travel.fsm


preempt-travel.fsm (36.6 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Diego VG avatar image Diego VG commented ·
Dear Joerg,

It is precisely the answer I was looking for. Thanks a lot for the clarity of the example and for having taken the time to create a demo model.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Diego VG commented ·
PREEMPT_AND_ABORT_ACTIVE is another option you can consider.
0 Likes 0 ·