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