Beispiel #1
0
        public int Allocate(SlotCategory slotCategory)
        {
            this.slotCategory = SlotCategoryFactory.GetSlotCategory(slotCategory);
            int resourceId = this.slotCategory.resourceId;

            this.slotCategory.MarkBusy();
            return(resourceId);
        }
Beispiel #2
0
 public void Deallocate(SlotCategory slotCategory, int resourceId)
 {
     this.slotCategory            = SlotCategoryFactory.GetSlotCategory(slotCategory);
     this.slotCategory.resourceId = resourceId;
     this.slotCategory.MarkFree();
 }