nbrTableTestbed.h
上传用户:joranyuan
上传日期:2022-06-23
资源大小:3306k
文件大小:56k
- if(TOS_LOCAL_ADDRESS == 1) {
- ownSlot = 5;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 21;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 12;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 22;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 2;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 0;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 4;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 35;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 13;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 13;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 7;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 11;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- } else if(TOS_LOCAL_ADDRESS == 2) {
- ownSlot = 6;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 27;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 3;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 0;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 4;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 35;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 13;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 28;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 7;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 13;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 7;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- } else if(TOS_LOCAL_ADDRESS == 3) {
- ownSlot = 9;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 35;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 13;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 13;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 7;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 31;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 14;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 32;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 9;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 15;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 10;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 17;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 3;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 40;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 8;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 41;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 1;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 42;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 6;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 43;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 11;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 0;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 4;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 4) {
- ownSlot = 2;
- localFrameLength = 8;
- }else if(TOS_LOCAL_ADDRESS == 5) {
- ownSlot = 0;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 35;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 13;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 0;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 4;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 13;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 7;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- } else if(TOS_LOCAL_ADDRESS == 7) {
- ownSlot = 1;
- localFrameLength = 2;
- } else if(TOS_LOCAL_ADDRESS == 9) {
- ownSlot = 8;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 27;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 28;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 7;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 37;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 15;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 13;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 7;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 0;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 4;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 35;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 13;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 21;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 12;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 22;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 2;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- } else if(TOS_LOCAL_ADDRESS == 10) {
- ownSlot = 10;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 27;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 21;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 12;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 22;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 2;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 0;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 4;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 35;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 13;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 13;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 7;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 28;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 7;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- } else if(TOS_LOCAL_ADDRESS == 6) {
- ownSlot = 4;
- localFrameLength = 8;
- } else if(TOS_LOCAL_ADDRESS == 11) {
- ownSlot = 16;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 3;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 9;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 34;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 41;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 1;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 5;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 0;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 37;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 15;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 33;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 0;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 18;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 5;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 40;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 8;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 39;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 16;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 2;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 6;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 14;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 2;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 24;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 1;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 9;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 8;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 1;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 5;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- nbrInfo[14].nodeID = 10;
- nbrInfo[14].bitMap = TWO_HOP;
- nbrInfo[14].frame = 32;
- nbrInfo[14].slot = 10;
- Blacklist(nbrInfo[14].slot, nbrInfo[14].frame);
- nbrInfo[15].nodeID = 19;
- nbrInfo[15].bitMap = TWO_HOP;
- nbrInfo[15].frame = 32;
- nbrInfo[15].slot = 7;
- Blacklist(nbrInfo[15].slot, nbrInfo[15].frame);
- nbrInfo[16].nodeID = 42;
- nbrInfo[16].bitMap = TWO_HOP;
- nbrInfo[16].frame = 32;
- nbrInfo[16].slot = 6;
- Blacklist(nbrInfo[16].slot, nbrInfo[16].frame);
- nbrInfo[17].nodeID = 38;
- nbrInfo[17].bitMap = TWO_HOP;
- nbrInfo[17].frame = 32;
- nbrInfo[17].slot = 11;
- Blacklist(nbrInfo[17].slot, nbrInfo[17].frame);
- } else if(TOS_LOCAL_ADDRESS == 13) {
- ownSlot = 7;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 3;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 9;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 42;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 6;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 33;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 0;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 43;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 11;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 14;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 2;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 18;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 5;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 5;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 0;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 40;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 8;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 24;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 1;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 9;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 8;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 1;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 5;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 39;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 16;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 2;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 6;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 10;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 10;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- nbrInfo[14].nodeID = 15;
- nbrInfo[14].bitMap = TWO_HOP;
- nbrInfo[14].frame = 32;
- nbrInfo[14].slot = 10;
- Blacklist(nbrInfo[14].slot, nbrInfo[14].frame);
- nbrInfo[15].nodeID = 41;
- nbrInfo[15].bitMap = TWO_HOP;
- nbrInfo[15].frame = 32;
- nbrInfo[15].slot = 1;
- Blacklist(nbrInfo[15].slot, nbrInfo[15].frame);
- } else if(TOS_LOCAL_ADDRESS == 14) {
- ownSlot = 2;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 15;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 10;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 17;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 32;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 9;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 0;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 4;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 35;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 13;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 11;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 13;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 7;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- } else if(TOS_LOCAL_ADDRESS == 15) {
- ownSlot = 10;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 14;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 19;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 18;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 5;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 13;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 7;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 21;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 12;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 22;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 2;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 37;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 15;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 38;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 11;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 34;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 16;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 33;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 0;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 39;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 16;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 40;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 8;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- } else if(TOS_LOCAL_ADDRESS == 16) {
- ownSlot = 1;
- localFrameLength = 8;
- }else if(TOS_LOCAL_ADDRESS == 12) {
- ownSlot = 0;
- localFrameLength = 8;
- nbrInfo[0].nodeID = 26;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 8;
- nbrInfo[0].slot = 5;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- } else if(TOS_LOCAL_ADDRESS == 17) {
- ownSlot = 3;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 19;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 7;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 18;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 5;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 21;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 12;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 22;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 2;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 38;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 11;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 37;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 15;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 14;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 2;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 34;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 16;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 33;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 0;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 39;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 16;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- } else if(TOS_LOCAL_ADDRESS == 18) {
- ownSlot = 5;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 15;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 10;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 17;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 43;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 11;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 0;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 4;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 35;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 13;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 11;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 16;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 8;
- nbrInfo[6].slot = 1;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 4;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 8;
- nbrInfo[7].slot = 2;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 6;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 8;
- nbrInfo[8].slot = 4;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 13;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 7;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 32;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 9;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- } else if(TOS_LOCAL_ADDRESS == 20) {
- ownSlot = 2;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 9;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 8;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 10;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 10;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 24;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 1;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 3;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 9;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 2;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 34;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 38;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 11;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 39;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 16;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 37;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 15;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 21;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 12;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 22;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 2;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 0;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 4;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 35;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 13;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 33;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 0;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- } else if(TOS_LOCAL_ADDRESS == 21) {
- ownSlot = 12;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 15;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 10;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 1;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 5;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 17;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 3;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 42;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 6;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 31;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 14;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 9;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 8;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 10;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 10;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 32;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 9;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 27;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 3;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 28;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 7;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 40;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 8;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 41;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 1;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 43;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 11;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 22) {
- ownSlot = 2;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 15;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 10;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 1;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 5;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 10;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 10;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 17;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 3;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 42;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 31;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 14;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 9;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 8;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 32;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 9;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 27;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 3;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 28;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 7;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 40;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 8;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 41;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 1;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 43;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 11;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 19) {
- ownSlot = 7;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 15;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 10;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 17;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 31;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 14;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 35;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 13;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 0;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 4;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 13;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 7;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 11;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 16;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 32;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 9;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- } else if(TOS_LOCAL_ADDRESS == 24) {
- ownSlot = 1;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 0;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 4;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 35;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 13;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 13;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 7;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 20;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 2;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- } else if(TOS_LOCAL_ADDRESS == 25) {
- ownSlot = 0;
- localFrameLength = 2;
- } else if(TOS_LOCAL_ADDRESS == 27) {
- ownSlot = 3;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 9;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 8;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 10;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 10;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 21;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 12;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 34;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 16;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 2;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 38;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 11;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 37;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 15;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 22;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 2;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 0;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 4;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 35;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 13;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- } else if(TOS_LOCAL_ADDRESS == 28) {
- ownSlot = 7;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 9;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 8;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 10;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 10;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 34;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 16;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 21;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 12;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 2;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 38;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 11;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 37;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 15;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 22;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 2;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 0;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 4;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 35;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 13;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- } else if(TOS_LOCAL_ADDRESS == 29) {
- ownSlot = 3;
- localFrameLength = 8;
- nbrInfo[0].nodeID = 4;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 8;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 12;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 8;
- nbrInfo[1].slot = 0;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 26;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 8;
- nbrInfo[2].slot = 5;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 6;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 8;
- nbrInfo[3].slot = 4;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- } else if(TOS_LOCAL_ADDRESS == 30) {
- ownSlot = 0;
- localFrameLength = 8;
- nbrInfo[0].nodeID = 4;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 8;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 12;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 8;
- nbrInfo[1].slot = 0;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 26;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 8;
- nbrInfo[2].slot = 5;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 6;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 8;
- nbrInfo[3].slot = 4;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 16;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 8;
- nbrInfo[4].slot = 1;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- } else if(TOS_LOCAL_ADDRESS == 26) {
- ownSlot = 5;
- localFrameLength = 8;
- nbrInfo[0].nodeID = 12;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 8;
- nbrInfo[0].slot = 0;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- } else if(TOS_LOCAL_ADDRESS == 31) {
- ownSlot = 14;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 19;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 7;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 21;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 12;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 22;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 2;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 37;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 15;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 38;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 11;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 34;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 33;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 0;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 39;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 16;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- } else if(TOS_LOCAL_ADDRESS == 32) {
- ownSlot = 9;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 14;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 19;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 18;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 5;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 21;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 12;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 22;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 2;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 38;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 11;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 37;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 15;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 24;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 1;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 20;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 2;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 28;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 7;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 33;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 0;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 1;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 5;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 39;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 16;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 34;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 16;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- nbrInfo[14].nodeID = 3;
- nbrInfo[14].bitMap = TWO_HOP;
- nbrInfo[14].frame = 32;
- nbrInfo[14].slot = 9;
- Blacklist(nbrInfo[14].slot, nbrInfo[14].frame);
- } else if(TOS_LOCAL_ADDRESS == 34) {
- ownSlot = 16;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 27;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 3;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 17;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 3;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 42;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 28;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 7;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 32;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 9;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 31;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 14;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 15;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 10;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 40;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 8;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 41;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 1;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 43;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 11;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 13;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 7;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 35) {
- ownSlot = 13;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 3;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 9;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 5;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 0;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 18;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 5;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 14;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 2;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 2;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 6;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 19;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 7;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 24;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 1;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 1;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 5;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 10;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 10;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 9;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 8;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 28;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 7;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 27;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 3;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 38;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 11;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 0) {
- ownSlot = 4;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 3;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 9;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 19;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 14;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 2;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 18;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 5;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 5;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 0;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 2;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 6;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 24;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 1;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 9;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 8;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 1;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 5;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 10;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 10;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 28;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 7;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 27;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 3;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 39;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 16;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- } else if(TOS_LOCAL_ADDRESS == 37) {
- ownSlot = 15;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 9;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 8;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 17;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 42;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 6;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 27;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 3;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 31;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 14;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 32;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 9;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 15;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 10;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 28;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 7;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 20;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 2;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 41;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 1;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 40;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 8;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 43;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 11;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 11;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 16;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 10;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 10;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- } else if(TOS_LOCAL_ADDRESS == 33) {
- ownSlot = 0;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 13;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 7;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 31;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 14;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 32;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 9;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 15;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 10;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 17;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 3;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 40;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 8;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 41;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 1;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 42;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 6;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 43;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 11;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- } else if(TOS_LOCAL_ADDRESS == 38) {
- ownSlot = 11;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 27;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 3;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 28;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 7;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 17;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 3;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 32;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 9;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 31;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 14;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 15;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 10;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 40;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 8;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 41;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 1;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 42;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 6;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 43;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 11;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 11;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 16;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- } else if(TOS_LOCAL_ADDRESS == 39) {
- ownSlot = 16;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 20;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 2;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 11;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 16;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 0;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 4;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 13;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 7;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 17;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 3;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 42;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 6;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 31;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 14;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 15;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 10;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 32;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 9;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 41;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 1;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- nbrInfo[10].nodeID = 40;
- nbrInfo[10].bitMap = TWO_HOP;
- nbrInfo[10].frame = 32;
- nbrInfo[10].slot = 8;
- Blacklist(nbrInfo[10].slot, nbrInfo[10].frame);
- nbrInfo[11].nodeID = 43;
- nbrInfo[11].bitMap = TWO_HOP;
- nbrInfo[11].frame = 32;
- nbrInfo[11].slot = 11;
- Blacklist(nbrInfo[11].slot, nbrInfo[11].frame);
- nbrInfo[12].nodeID = 28;
- nbrInfo[12].bitMap = TWO_HOP;
- nbrInfo[12].frame = 32;
- nbrInfo[12].slot = 7;
- Blacklist(nbrInfo[12].slot, nbrInfo[12].frame);
- nbrInfo[13].nodeID = 27;
- nbrInfo[13].bitMap = TWO_HOP;
- nbrInfo[13].frame = 32;
- nbrInfo[13].slot = 3;
- Blacklist(nbrInfo[13].slot, nbrInfo[13].frame);
- } else if(TOS_LOCAL_ADDRESS == 41) {
- ownSlot = 1;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 11;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 16;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 22;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 2;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 37;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 15;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 38;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 11;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 21;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 12;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 34;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 16;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 33;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 0;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 39;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 16;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 13;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 7;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- } else if(TOS_LOCAL_ADDRESS == 42) {
- ownSlot = 6;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 11;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 16;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 13;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 22;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 2;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 37;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 15;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 38;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 11;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 21;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 12;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 34;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 16;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 33;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 0;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 39;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 16;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- } else if(TOS_LOCAL_ADDRESS == 43) {
- ownSlot = 11;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 18;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 5;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 13;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 21;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 12;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 22;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 2;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 37;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 15;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 33;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 0;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 34;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 16;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 39;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 16;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 0;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 4;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- } else if(TOS_LOCAL_ADDRESS == 40) {
- ownSlot = 8;
- localFrameLength = 32;
- nbrInfo[0].nodeID = 11;
- nbrInfo[0].bitMap = TWO_HOP;
- nbrInfo[0].frame = 32;
- nbrInfo[0].slot = 16;
- Blacklist(nbrInfo[0].slot, nbrInfo[0].frame);
- nbrInfo[1].nodeID = 13;
- nbrInfo[1].bitMap = TWO_HOP;
- nbrInfo[1].frame = 32;
- nbrInfo[1].slot = 7;
- Blacklist(nbrInfo[1].slot, nbrInfo[1].frame);
- nbrInfo[2].nodeID = 22;
- nbrInfo[2].bitMap = TWO_HOP;
- nbrInfo[2].frame = 32;
- nbrInfo[2].slot = 2;
- Blacklist(nbrInfo[2].slot, nbrInfo[2].frame);
- nbrInfo[3].nodeID = 37;
- nbrInfo[3].bitMap = TWO_HOP;
- nbrInfo[3].frame = 32;
- nbrInfo[3].slot = 15;
- Blacklist(nbrInfo[3].slot, nbrInfo[3].frame);
- nbrInfo[4].nodeID = 38;
- nbrInfo[4].bitMap = TWO_HOP;
- nbrInfo[4].frame = 32;
- nbrInfo[4].slot = 11;
- Blacklist(nbrInfo[4].slot, nbrInfo[4].frame);
- nbrInfo[5].nodeID = 21;
- nbrInfo[5].bitMap = TWO_HOP;
- nbrInfo[5].frame = 32;
- nbrInfo[5].slot = 12;
- Blacklist(nbrInfo[5].slot, nbrInfo[5].frame);
- nbrInfo[6].nodeID = 34;
- nbrInfo[6].bitMap = TWO_HOP;
- nbrInfo[6].frame = 32;
- nbrInfo[6].slot = 16;
- Blacklist(nbrInfo[6].slot, nbrInfo[6].frame);
- nbrInfo[7].nodeID = 33;
- nbrInfo[7].bitMap = TWO_HOP;
- nbrInfo[7].frame = 32;
- nbrInfo[7].slot = 0;
- Blacklist(nbrInfo[7].slot, nbrInfo[7].frame);
- nbrInfo[8].nodeID = 39;
- nbrInfo[8].bitMap = TWO_HOP;
- nbrInfo[8].frame = 32;
- nbrInfo[8].slot = 16;
- Blacklist(nbrInfo[8].slot, nbrInfo[8].frame);
- nbrInfo[9].nodeID = 15;
- nbrInfo[9].bitMap = TWO_HOP;
- nbrInfo[9].frame = 32;
- nbrInfo[9].slot = 10;
- Blacklist(nbrInfo[9].slot, nbrInfo[9].frame);
- }