ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Help in dispatching job
Hi all,
Currently I'm under this situation: I want a dispatcher to dispatch a task to centerport1, but if centerport1 object task queue is larger than 10, than dispatch job to nearest centerport object (exclude centerport 1). In many times i wanna join 2 dispatch algorithms from 2 dispatcher templates, but it's too hard for me Can anyone give me a helping hand?? Regards, Kelvin |
#2
|
|||
|
|||
Kelvin,
I don't know why you are refering to centerobjects. The connection between a dispatcher and the task executer is an "A" connection, so I think you should use outobject. What you can do in the "PassTo" trigger of the dispatcher is choose the option "Shortest distance". But in front of this code you add; if(content(gettasksequencequeue(outobject(current, 1))) < 10) { return 1; } else { the rest of the code.. Good luck, Rachid Kolfin |
The Following 3 Users Say Thank You to Rachid Kolfin For This Useful Post: | ||
Phil BoBo (09-18-2009) |