double[][] visits;
double[][][] serviceTimes;
String[] stationNames;
String[] classNames;
Vector<newPoint> vertices;
SectorEngine calc;
Vector<Object> saturationSects;
double prop;
EngineConvex2D convexEngine;
Vector<Point2D> v;
stations = model.getStations();
//Solver solver = null;
stationNames = model.getStationNames();
classNames = model.getClassNames();
serviceTimes = model.getServiceTimes();
visits = model.getVisits();
vertices = new Vector<newPoint>();
prop = 100;
for (int i = 0; i < stations; i++) {
// Crea il vettore da passare a Calc2D
//System.out.println(i);
// il giusto sarebbe moltiplicare per 1000000, ma dà problemi
int a = (int) (serviceTimes[i][0][0] * prop * visits[i][0]);
int b = (int) (serviceTimes[i][1][0] * prop * visits[i][1]);
//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],