@Override public Void call() throws Exception { for (int b = 0; b < alt.size(); b++) { // synchronized (critEv) { eval.set( a, b, ((Double) alt.get(a) .getFormation() .getAttribute(EFormationValueAttribute.NETWORK_COST_SEND) .getValue() + (Double) alt.get(a) .getFormation() .getAttribute(EFormationValueAttribute.NETWORK_COST_RECIEVE) .getValue()) / ((Double) alt.get(b) .getFormation() .getAttribute(EFormationValueAttribute.NETWORK_COST_RECIEVE) .getValue() + (Double) alt.get(b) .getFormation() .getAttribute(EFormationValueAttribute.NETWORK_COST_SEND) .getValue())); // } } return null; }
@Override public Void call() throws Exception { for (int b = 0; b < alt.size(); b++) { // synchronized (critEv) { eval.set( a, b, (Double) alt.get(a) .getFormation() .getAttribute(EFormationValueAttribute.VALUE) .getValue() / (Double) alt.get(b) .getFormation() .getAttribute(EFormationValueAttribute.VALUE) .getValue()); // } } return null; }