示例#1
0
 public void ReceiveShelfBoxFromStorage(ShelfBox shelfBox)
 {
     // Decrement StorageReceiveWaitingTime by one
     _shelfBoxWaitCount -= 1;
     // Add received shelfbox to shelfboxes
     ShelfBoxes.Add(shelfBox);
 }
示例#2
0
 public ShelfSpace(string name, IEnumerable <Article> itemTypes) : this(name)
 {
     ListOfBoxes = new List <ShelfBox>();
     foreach (var itemType in itemTypes)
     {
         var line     = new Line(itemType, 100);
         var shelfBox = new ShelfBox(line);
         ListOfBoxes.Add(shelfBox);
     }
 }
示例#3
0
 private void SendShelfBoxToStorage(ShelfBox shelfBox)
 {
     // Remove shelfBox from ShelfBoxes
     ShelfBoxes.Remove(shelfBox);
     // faked sending: beep, beep
 }