question

Pui Fong C avatar image
0 Likes"
Pui Fong C asked Steven Hamoen commented

Can I program dispatcher?

The dispatcher is just like the brain of taskexecuters. It receives task from queue and assigns to te according to "Pass to" and "Queue Strategy" options. But there is a question. May I have other choice such as to program the dispatcher according to my logic or let say to implement AI?

FlexSim 18.1.2
dispatchers
· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

What logic do you want?

0 Likes 0 ·

1 Answer

·
Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Steven Hamoen commented

@Pui Fong C Are you looking for ways to program FlexSim triggers? Then you can open every trigger available and look at how FlexSim has done it. Also start with the manual and just try small things. If you want a sample of how to do you what you want than you have to explain what you want to do, just as @Jörg Vogel asked you before.

· 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.

Pui Fong C avatar image Pui Fong C commented ·

It is not must be a fixed logic. For example, the logic can be always changing according to the quantity of source, or maybe a prediction logic. I just want to know is there an environment for user to program the dispatcher?

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen commented ·

@Pui Fong C Yes you can program what ever you want. You already mentioned the "Pass to" and "Queue Strategy" triggers. You can write any code you want there. 2 other triggers that might be useful are the "On Resource Available" and "On Receive Task Sequence".

If you open any trigger by pushing the edit button (the papyrus roll icon) you have an IDE to program the trigger what you want. If that isn't enough you can call a C++ dll function in that trigger and if you really want to go overboard you can create your own dispatcher with C++

0 Likes 0 ·
Pui Fong C avatar image Pui Fong C Steven Hamoen commented ·

Yes, I am going to write some code to the triggers to change the existing logic. Is there any sample or plugin to help me?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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