public AmmoTransport(ArrayList tasks) { for (Iterator iterator = tasks.iterator(); iterator.hasNext();) { Task t = (Task) iterator.next(); GeolocLocation taskSource = getSource(t); GeolocLocation taskDestination = getDestination(t);  if ((taskSource == null) || (taskDestination == null)) {  _gp.getLoggingService().error("AmmoTransport(): task without a source/destination"); } else if ((mySource == null) || (myDestination == null)) { mySource = taskSource; myDestination = taskDestination; } else if (!(mySource.getGeolocCode().equals(taskSource.getGeolocCode()))) { _gp.getLoggingService().error("AmmoTransport(): " + mySource + " not equal to " + taskSource); } else if (!(myDestination.getGeolocCode().equals(taskDestination.getGeolocCode()))) { _gp.getLoggingService().error("AmmoTransport(): " + myDestination + " not equal to " + taskDestination); } } }
public AmmoTransport () {}
  public AmmoTransport(ArrayList tasks) {    for (Iterator iterator = tasks.iterator(); iterator.hasNext();) {      Task t = (Task) iterator.next();      GeolocLocation taskSource = getSource(t);      GeolocLocation taskDestination = getDestination(t);            if ((taskSource == null) || (taskDestination == null)) {        _gp.getLoggingService().error("AmmoTransport(): task without a source/destination");      } else if ((mySource == null) || (myDestination == null)) {        mySource = taskSource;        myDestination = taskDestination;      } else if (!(mySource.getGeolocCode().equals(taskSource.getGeolocCode()))) {        _gp.getLoggingService().error("AmmoTransport(): " + mySource + " not equal to " +                            taskSource);      } else if (!(myDestination.getGeolocCode().equals(taskDestination.getGeolocCode()))) {        _gp.getLoggingService().error("AmmoTransport(): " + myDestination +                            " not equal to " + taskDestination);      }    }  }