Example #1
0
        private void Allocate(string resourceId, float amount)
        {
            var demands = new List <Cell> {
                _cell
            };
            var stocks = new List <IDictionary <string, float> > {
                _stocks
            };
            var allocationTable = new float[1, 1] {
                { amount }
            };
            var allocation = new Allocation(resourceId, demands, stocks, allocationTable);

            _allocator.AddAllocation(resourceId, allocation);
        }