Combiner for identical entities (no parent required)

Do you have objects, models, libraries, path decorators, textures, symbols, custom API code, documentation, or anything else others might find useful? Please attach it here with a brief description.
Post Reply
SimioSupport
Simio Team Member
Posts: 20
Joined: Fri Sep 07, 2012 8:34 pm

Combiner for identical entities (no parent required)

Post by SimioSupport » Wed Nov 21, 2012 6:11 pm

The Combiner object in the standard library assumes that you have a parent entity representing a box or container and members representing the parts that are combined into the parent.

In some cases you don't want to have a parent, you just have a number of entities that you want to temporarily join together and process as one.

The attached project contains an object of type Node that represents a very simple Combiner and a TestModel to illustrate how it works. The node simply asks for a Batch Size and then holds the incoming entities until that batch size is reached. It creates a "normal" batch so it can be used with the Separator as long as you treat all outbound entities as the same.
CombinerNode.spfx
(52.4 KiB) Downloaded 760 times
Requires Sprint 5.80 or later.
Simio Support Staff

jdoran
Posts: 700
Joined: Tue Dec 06, 2011 6:47 am
Location: Brisbane, QLD

Re: Combiner for identical entities (no parent required)

Post by jdoran » Thu Nov 22, 2012 10:13 pm

Was this created in response to... http://www.simio.com/forums/viewtopic.php?f=6&t=1017

Thanks for the share though.
James Doran
Resident Problem Synthesiser

antonio6vieira
Posts: 107
Joined: Mon Apr 07, 2014 9:35 am

Re: Combiner for identical entities (no parent required)

Post by antonio6vieira » Thu Jun 05, 2014 7:31 am

SimioSupport wrote:The Combiner object in the standard library assumes that you have a parent entity representing a box or container and members representing the parts that are combined into the parent.

In some cases you don't want to have a parent, you just have a number of entities that you want to temporarily join together and process as one.

The attached project contains an object of type Node that represents a very simple Combiner and a TestModel to illustrate how it works. The node simply asks for a Batch Size and then holds the incoming entities until that batch size is reached. It creates a "normal" batch so it can be used with the Separator as long as you treat all outbound entities as the same.
CombinerNode.spfx
Requires Sprint 5.80 or later.
Great job! How did you create the CombinerNode? Is it a sub class of basic or transfer node?

dsturrock
Simio Team Member
Posts: 1452
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: Combiner for identical entities (no parent required)

Post by dsturrock » Thu Jun 05, 2014 8:32 pm

No, I think it was just based on the base "Node Class" from the engine.
Dave Sturrock
VP Operations, Simio LLC

antonio6vieira
Posts: 107
Joined: Mon Apr 07, 2014 9:35 am

Re: Combiner for identical entities (no parent required)

Post by antonio6vieira » Fri Jun 06, 2014 12:39 pm

After viewing the model more carefully I was able to figure it out. Thanks anyway for the reply :D

Post Reply