JaviPernasResearch_TheSimuLeanProject/Assets/SimuLean.Net/SimElements/OrderArrival.cs
namespace SimuLean
{
    /// <summary>
    /// Models arrival orders (lots of items) of the provider source.
    /// </summary>
    public class OrderArrival : Eventcs
    {
        ProviderSource source;

        int quantity;

        public OrderArrival(int quantity, ProviderSource source)
        {
            this.quantity = quantity;
            this.source = source;
        }
        void Eventcs.Execute()
        {
            source.CreateItems(quantity);
        }
    }
}

