Examples of JabaResults


Examples of jmt.gui.jaba.JabaResults

    /* disable all change-checking */
    model.discardResults();
    model.setChanged();

    JabaResults res = null;

    try {
      if (model.getClasses() == 2) {
        res = solve2classes(model);
      } else if (model.getClasses() == 3) {
View Full Code Here

Examples of jmt.gui.jaba.JabaResults

      //System.out.println(i+": "+a+" "+b);
      vertices.addElement(new newPoint(a, b));
    }

    calc = new SectorEngine();
    JabaResults jres = new JabaResults();
    saturationSects = calc.Calc2D(vertices, stationNames, classNames);
    jres.setSaturationSectors(saturationSects);

    v = new Vector<Point2D>();
    for (int k = 0; k < stationNames.length; k++) {
      v.add(new DPoint(serviceTimes[k][0][0],
          serviceTimes[k][1][0], stationNames[k]));
    }
    convexEngine = new EngineConvex2D(v, saturationSects);
    jres.setConvex(convexEngine.getConvex());
    jres.setAllConvex(convexEngine.getAllConvex());
    jres.setAllDominants(convexEngine.getAllDominants());
    jres.setDominants(convexEngine.getDominants());
    jres.setFiltDominats(convexEngine.getFiltDominants());
    jres.setFiltConvex(convexEngine.getFiltConvex());
    jres.setFiltDominates(convexEngine.getFiltDominates());
    jres.setPoints(convexEngine.getPoints());
    jres.setDominates(convexEngine.getDominates());
    jres.setFilteredArea(convexEngine.getFilteredArea());
    jres.setAllPoints(convexEngine.getAllPoints());
   
    PerformanceEngine performanceEngine = new PerformanceEngine(serviceTimes, saturationSects, stationNames);
   
    jres.setUtilization(performanceEngine.getUtilization());
    //jres.setEquiUtilizationPoint(calc.calcEquiUtilizationPoint(vertices));

    /*
    // Per la visualizzazione
    ViewResults vres = new ViewResults();
View Full Code Here

Examples of jmt.gui.jaba.JabaResults

    //System.out.println("res.size(): "+res.size());
    //ViewResults vres = new ViewResults();
    //System.out.println("vres");

    // Setta i risultati per la GUI
    JabaResults jres = new JabaResults();
    Vector<Object> out = new Vector<Object>();

    for (int i = 0; i < calc.getsett1staz().size(); i++) {
      out.addElement(calc.getsett1staz().get(i));
    }
    for (int i = 0; i < calc.getsett2staz().size(); i++) {
      out.addElement(calc.getsett2staz().get(i));
    }
    for (int i = 0; i < calc.gettriangles().size(); i++) {
      out.addElement(calc.gettriangles().get(i));
    }
    jres.setSaturationSectors(out);
    jres.setFaces(cHullFaces);
    // Restituisce il risultato
    return jres;
  }
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.