private void loadNext(ScheduleItem scheduleItem,Car car){
  if (scheduleItem == null) {
    log.debug("schedule item is null!, id: {}",getScheduleId());
    return;
  }
  car.setNextLoadName(scheduleItem.getShipLoadName());
  car.setFinalDestination(scheduleItem.getDestination());
  car.setFinalDestinationTrack(scheduleItem.getDestinationTrack());
  car.setNextPickupScheduleId(scheduleItem.getPickupTrainScheduleId());
  car.setNextWait(scheduleItem.getWait());
  scheduleItem.setHits(scheduleItem.getHits() + 1);
  log.debug("Car ({}) type ({}) next load ({}) final destination ({}, {}) next wait: {}",car.toString(),car.getTypeName(),car.getNextLoadName(),car.getFinalDestinationName(),car.getFinalDestinationTrackName(),car.getNextWait());
  car.updateKernel();
}

private void loadNext ( ScheduleItem scheduleItem , Car car ) { if ( scheduleItem == null ) { log . debug ( "schedule item is null!, id: {}" , getScheduleId ( ) ) ; return ; } car . setNextLoadName ( scheduleItem . getShipLoadName ( ) ) ; car . setFinalDestination ( scheduleItem . getDestination ( ) ) ; car . setFinalDestinationTrack ( scheduleItem . getDestinationTrack ( ) ) ; car . setNextPickupScheduleId ( scheduleItem . getPickupTrainScheduleId ( ) ) ; car . setNextWait ( scheduleItem . getWait ( ) ) ; scheduleItem . setHits ( scheduleItem . getHits ( ) + 1 ) ; log . debug ( "Car ({}) type ({}) next load ({}) final destination ({}, {}) next wait: {}" , car . toString ( ) , car . getTypeName ( ) , car . getNextLoadName ( ) , car . getFinalDestinationName ( ) , car . getFinalDestinationTrackName ( ) , car . getNextWait ( ) ) ; car . updateKernel ( ) ; }
loads the car ' s with a final destination which is the ship address for the schedule item . also sets the next load and wait count that will kick in when the car arrives at the spur with this schedule .
