Server with multiple entries and exits

217 views
Skip to first unread message

mennova...@gmail.com

unread,
May 4, 2020, 5:59:07 AM5/4/20
to Jaamsim Users Discussion Group
Hi all,

I was wondering if there was a simple method (or maybe there are existing elements) to have a server with multiple inputs and outputs?

I want to let the server choose from which of its inputs it will take its next product. Also, i want to let the server choose where to send its product after finishing.

Furthermore, does a server always needs to have a queue as input? I want to couple multiple servers. Is this allowed?

Kind regards,

Menno

Harry King

unread,
May 4, 2020, 10:23:33 AM5/4/20
to Jaamsim Users Discussion Group
Menno,

You can choose between multiple Queues by entering an expression to the WaitQueue input for the Server. See the release notes for version 2020-03 for more details.

Use a Branch object after the Server to direct the product after finishing.

Harry

mennova...@gmail.com

unread,
May 11, 2020, 2:09:27 PM5/11/20
to Jaamsim Users Discussion Group
I tried entering an expression containing multiple Queues in the Server WaitQueue's entry. Only it does not accept my piece of code.
The release notes of 2020-03 mention a Watchlist, but I cannot find anything in the notes or in Jaamsim on the Watchlist objects. Can you help me out?

Alternatively, there must be some example models where this is used, as it seems pretty basic functionality. Do you know if any of these models exist that can easily access? 

Many thanks for your help!

Harry King

unread,
May 11, 2020, 2:22:50 PM5/11/20
to Jaamsim Users Discussion Group
The pop-up description for the 'WaitQueue' keyword provides an example input:

   'this.NumberProcessed % 2 == 0 ? [Queue1] : [Queue2]'

With this input, the WatchList input must include both Queue1 and Queue2.

Include your input to WaitQueue in your next post if you still cannot get it to work.

Harry

mennova...@gmail.com

unread,
May 11, 2020, 3:28:49 PM5/11/20
to Jaamsim Users Discussion Group
Hi Harry,

Thanks for your replay (and patience). My guess is that Watchlist is an attribute of the Server, probably with a fill-in field in somewhere in the input editor. I cannot seem to find it under Key-inputs or any other of the tabs.
I tried to find more information on where I could find this Watchlist, but no success. Could you help me?


Kind regards,
Menno

Harry King

unread,
May 11, 2020, 3:40:13 PM5/11/20
to Jaamsim Users Discussion Group
The WatchList input was added to Server in release 2020-03. You can find it under the Key Inputs tab.

Harry

mennova...@gmail.com

unread,
May 12, 2020, 3:01:03 AM5/12/20
to Jaamsim Users Discussion Group
Ah...I checked the version and saw I was running the 2020-02 version of Jaamsim…it didn't have the Watchlist functionality yet. Now it works!

mennova...@gmail.com

unread,
May 12, 2020, 10:34:26 AM5/12/20
to Jaamsim Users Discussion Group
Is it possible that the source code for JaamSim that is available on GitHub is not yet updated to the 2020-03 (or 2020-05) release (the executasble that is readily downloadable from https://jaamsim.com/downloads.htm)?

Maybe that is where my confusion started. I hope to hear some feedback.

Kind regards,

Menno

Harry King

unread,
May 12, 2020, 10:42:02 AM5/12/20
to Jaamsim Users Discussion Group
Menno,

The code on GitHub (https://github.com/jaamsim/jaamsim) includes everything up to release 2020-05. Are you looking in the wrong repository? There are lots of JaamSim forks.

Harry

oak...@gmail.com

unread,
May 19, 2020, 3:54:29 PM5/19/20
to Jaamsim Users Discussion Group
Hi,

I want to do the similar thing. Were you able to do it?

Thanks in advance for the help!

4 Mayıs 2020 Pazartesi 12:59:07 UTC+3 tarihinde mennova...@gmail.com yazdı:
Reply all
Reply to author
Forward
0 new messages