AddTo

The AddTo object is used to add a given number of entities to a received EntityContainer.

The number of entities to be added to each EntityContainer is determined by the NumberOfEntities keyword.  Once the specified number of entities is available in the WaitQueue and there is an EntityContainer waiting in the ContainerQueue, the entities are added one by one to the EntityContainer in the same order as they appeared in the WaitQueue.  The time to add each entity is specified by the ServiceTime keyword.  EntityContainers are filled in the order in which they appear in the ContainerQueue.

When an input to the Match keyword is provided, only the entities in the WaitQueue that have the same Match value are added to the EntityContainer.  The Match keyword for the ContainerQueue is not used by this logic.