コード例 #1
0
ファイル: SyntacticElements.java プロジェクト: jsiembida/jaad
 private void processDependentCoupling(
     boolean channelPair, int elementID, int couplingPoint, float[] data1, float[] data2) {
   int index, c, chSelect;
   CCE cce;
   for (int i = 0; i < cces.length; i++) {
     cce = cces[i];
     index = 0;
     if (cce != null && cce.getCouplingPoint() == couplingPoint) {
       for (c = 0; c <= cce.getCoupledCount(); c++) {
         chSelect = cce.getCHSelect(c);
         if (cce.isChannelPair(c) == channelPair && cce.getIDSelect(c) == elementID) {
           if (chSelect != 1) {
             cce.applyDependentCoupling(index, data1);
             if (chSelect != 0) index++;
           }
           if (chSelect != 2) {
             cce.applyDependentCoupling(index, data2);
             index++;
           }
         } else index += 1 + ((chSelect == 3) ? 1 : 0);
       }
     }
   }
 }