public void ReceiveShelfBoxFromStorage(ShelfBox shelfBox) { // Decrement StorageReceiveWaitingTime by one _shelfBoxWaitCount -= 1; // Add received shelfbox to shelfboxes ShelfBoxes.Add(shelfBox); }
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); } }
private void SendShelfBoxToStorage(ShelfBox shelfBox) { // Remove shelfBox from ShelfBoxes ShelfBoxes.Remove(shelfBox); // faked sending: beep, beep }