private void __SetGLinkLstSet(UGLink_unit LKx, int SW, int rc, int no1, int no2) // in-cell link { UGLink_pair LK1 = new UGLink_pair(LKx, SW, rc, no2); if (GLK_connection[rc, no1] == null) { GLK_connection[rc, no1] = new List <UGLink_pair>(); } GLK_connection[rc, no1].Add(LK1); UGLink_pair LK2 = new UGLink_pair(LKx, SW, rc, no1); if (GLK_connection[rc, no2] == null) { GLK_connection[rc, no2] = new List <UGLink_pair>(); } GLK_connection[rc, no2].Add(LK2); }
private void __SetGLinkLstSet(UGLink_unit LKx, int SW, int tfx, int no, UCell UC1, UCell UC2) // cell-cell link { int rc1 = UC1.rc, rc2 = UC2.rc; UGLink_pair LK1 = new UGLink_pair(LKx, SW, rc2, no); if (GLK_connection[rc1, no] == null) { GLK_connection[rc1, no] = new List <UGLink_pair>(); } GLK_connection[rc1, no].Add(LK1); UGLink_pair LK2 = new UGLink_pair(LKx, SW, rc1, no); if (GLK_connection[rc2, no] == null) { GLK_connection[rc2, no] = new List <UGLink_pair>(); } GLK_connection[rc2, no].Add(LK2); }