コード例 #1
0
 @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;
 }
コード例 #2
0
 @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;
 }