Esempio n. 1
0
 /**
  * Updates the three data members from the parameter. Checks that the ItemToShip is not null.
  *
  * @param item ItemToShip package
  */
 public void logItem(ItemToShip item) {
   // Make sure that ItemToShip is not null
   if (item != null) {
     // ItemToShip is used to record the item's statistics
     numCompleted++;
     totalWaitTime += item.getWaitTime();
     totalProcessTime += item.getProcessTime();
   }
 }