public Builder schedulePickup(CarrierShipment shipment){
  assertIsNotNull(shipment);
  boolean wasNew=openPickups.add(shipment);
  if (!wasNew) {
    throw new IllegalStateException("Trying to deliver something which was already picked up.");
  }
  assertLastElementIsLeg();
  Pickup pickup=createPickup(shipment);
  tourElements.add(pickup);
  previousElementIsActivity=true;
  return this;
}

public Builder schedulePickup ( CarrierShipment shipment ) { assertIsNotNull ( shipment ) ; boolean wasNew = openPickups . add ( shipment ) ; if ( ! wasNew ) { throw new IllegalStateException ( "Trying to deliver something which was already picked up." ) ; } assertLastElementIsLeg ( ) ; Pickup pickup = createPickup ( shipment ) ; tourElements . add ( pickup ) ; previousElementIsActivity = true ; return this ; }
schedules pickup , i . e . adds a pickup to current tour .
