splitting an entity into two or more entities

348 views
Skip to first unread message

Marcos Barretto

unread,
Aug 1, 2014, 11:29:59 AM8/1/14
to jaamsi...@googlegroups.com
I´m building a model of a clinic, where patients arrive and they are examined in one room (a resource) by a doctor (another resource). The doctor also has to write a report, after examination. Therefore, two process (examination and writing) use concurrently a doctor. What is different from usual concurrency scenarios is that the need for a report only happens after an examination. I used gates to control the creation of new entities (representing reports to write) but it seems tricky! Is there a better way? I think it should be a kind of "disassembly block", where an entity could be split into various kinds of entities and each one routed to its process.

Harry King

unread,
Aug 1, 2014, 2:42:44 PM8/1/14
to jaamsi...@googlegroups.com
Marcos,

As you suggest, JaamSim needs a block that creates new entities that are routed to individual processes. Arena does this with a version of the Separate block. I’ll try to build this object for you next week and get it into release 2014-32.

Harry

Harry King

unread,
Aug 30, 2014, 10:48:09 PM8/30/14
to jaamsi...@googlegroups.com
Marcos,

I've finally got the Duplicate block programmed for you this weekend. It will be included in the next release (2014-36).

I'm sorry to have taken so much longer than I promised. A combination of travelling and jet-lag has kept me from it until now.

Harry

Harvey Harrison

unread,
Sep 5, 2014, 4:54:07 PM9/5/14
to jaamsi...@googlegroups.com
Marcos,

JaamSim2014-36 is now available from the usual place, as Harry mentioned, the Duplicate object you requested has been included in this version.  Enjoy!

Cheers,

Harvey

Harry King

unread,
Sep 8, 2014, 12:11:14 AM9/8/14
to jaamsi...@googlegroups.com
Marcos,

I've attached an example model that uses the Duplicate object.

By the way, we will be issuing a new version of the user manual tomorrow that includes all the latest objects such as Duplicate.

Harry
Duplicate Example.cfg

Al Taliaferro

unread,
Jun 26, 2015, 2:09:08 PM6/26/15
to jaamsi...@googlegroups.com
Looking at the Posed Duplicate Example File, I am getting a null error whenever I add a StateAssignment to EntityConveyor3 or EntityConveyor4.

Is this a known bug? Is there a better place to report this type of information? Please advise.

(Thanks in advance.) 

Harry King

unread,
Jun 26, 2015, 2:34:47 PM6/26/15
to jaamsi...@googlegroups.com
Al,

This is a new bug -- thanks for reporting it. The problem is that the duplicated entities are not being assigned an initial state properly. I'll try to get this fixed for the next release.

Harry 

Harry King

unread,
Aug 21, 2015, 5:35:18 PM8/21/15
to Jaamsim Users Discussion Group
Al,

This bug has been fixed in release 2015-33.

Harry

Marcos Pereira-Barretto

unread,
Aug 21, 2015, 8:10:48 PM8/21/15
to Harry King, Jaamsim Users Discussion Group

Great!!!
Thanks!!

--
You received this message because you are subscribed to a topic in the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jaamsim-users/KRj-Dh4bdJM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jaamsim-user...@googlegroups.com.
Visit this group at http://groups.google.com/group/jaamsim-users.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/89778e59-d902-44bc-b015-ac5add16a114%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Akram Najjar

unread,
Sep 17, 2018, 3:33:28 AM9/17/18
to Jaamsim Users Discussion Group
Hi Harry

I am new to this post. Has the "disassemble" object been added to JaamSim (See your note from 2014 below)? Or any other equivalent?
Example: on return from an Operation, the medical supplies group will receive entities such as medical kits which they will separate into different stock items. I realize you can use an EntityContainer here (with Unpack) but would prefer a disassemble function.


Many thanks
Akram

Harry King

unread,
Sep 17, 2018, 6:04:24 PM9/17/18
to Jaamsim Users Discussion Group
Akram,

The operation performed by the Assemble object cannot be reversed.

If you want to save the individual components, such as the medical supplies in your example, then you need to use an EntityContainer. Note that Match keyword added to EntityContainer and RemoverFrom in the last release (2018-05) allows you to select the entity that you want to remove.

Harry

Akram Najjar

unread,
Sep 18, 2018, 3:00:53 PM9/18/18
to Jaamsim Users Discussion Group
Thanks Harry, will stick to the Container procedure.
Reply all
Reply to author
Forward
0 new messages