Beispiel #1
0
        public ChickenFarm()
        {
            List <UInt32> dailySales = new List <UInt32>()
            {
                20,
                20,
                20
            };

            mPricingModel    = new PricingModel(dailySales, new Decimal(), new Decimal());
            mOrderProcessing = new OrderProcessing(mPricingModel);

            mOrderBuffer = new CellBuffer <Order>(4);

            mCurrentPriceCuts = 0;
            mMaxPriceCuts     = 10;

            mLastPrice = Decimal.MaxValue;

            mSubscribers = new Dictionary <Guid, IChickenFarmCallback>();

            mOrderConsumerThread      = new Thread(new ThreadStart(ProcessOrder));
            mOrderConsumerThread.Name = "OrderConsumer";
            mOrderConsumerThread.Start();
        }
Beispiel #2
0
        public ChickenFarm()
        {
            List<UInt32> dailySales = new List<UInt32>()
            {
                20,
                20,
                20
            };

            mPricingModel = new PricingModel(dailySales, new Decimal(), new Decimal());
            mOrderProcessing = new OrderProcessing(mPricingModel);

            mOrderBuffer = new CellBuffer<Order>(4);

            mCurrentPriceCuts = 0;
            mMaxPriceCuts = 10;

            mLastPrice = Decimal.MaxValue;

            mSubscribers = new Dictionary<Guid, IChickenFarmCallback>();

            mOrderConsumerThread = new Thread(new ThreadStart(ProcessOrder));
            mOrderConsumerThread.Name = "OrderConsumer";
            mOrderConsumerThread.Start();
        }