Examples of GeomPlace


Examples of hu.u_szeged.nbo.geometria.element.GeomPlace

      }
    }
  }

  public GeomPlace getPlaceById(int id) throws GeomWrongIndexException{
    GeomPlace place = (GeomPlace)places.get(new Integer(id));
    if(place!=null){
      return place;
    } else {
      throw new GeomWrongIndexException();
    }
View Full Code Here

Examples of hu.u_szeged.nbo.geometria.element.GeomPlace

      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() + "]");
View Full Code Here

Examples of hu.u_szeged.nbo.geometria.element.GeomPlace

   
    Kt = new TreeMap();
    Lt = new TreeMap();
    Iterator iter = resources.getPlaces().iterator();
    while(iter.hasNext()){
      GeomPlace pl = (GeomPlace)iter.next();
      Kt.put(pl, new GeomHalmaz());
      Lt.put(pl, new GeomHalmaz());
    }

    helyekSzama = resources.getPlaces().size();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.