System.out.println("Utemezes:");
result+="Utemezes:\n";
iter = res.getTeams().iterator();
while(iter.hasNext()){
GeomTeam team = (GeomTeam)iter.next();
GeomPlace place = team.getBasicPlace();
int lefoglaltIdo = 0;
write(buf,"");
result+="\n";
write(buf,"E" + team.getId()+" ("+place.getName()+"):");
result+="E" + team.getId()+" ("+place.getName()+"):\n";
for(int j=1; j<=team.getHozzarendeltMunkak().gmMeret(); j++){
GeomPack pack = (GeomPack)team.getHozzarendeltMunkak().gmIedikElem(j);
GeomPlace newplace = pack.getWork().getPlace();
if(!newplace.equals(place)){
int utazasiKoltseg = res.matrixRoadCost.getElementByIndex(place.getId(), newplace.getId());
write(buf," utazas: " + newplace.getName() + " (ktg:"+ utazasiKoltseg +")");
result+= " utazas: " + newplace.getName() + " (ktg:"+ utazasiKoltseg +")\n";
lefoglaltIdo += utazasiKoltseg;
place = newplace;
}
lefoglaltIdo += pack.getEnd()-pack.getBegin();
write(buf," M" + pack.getWork().getId()+" [" + pack.getBegin() + "-" + pack.getEnd() + "]");