| Algorithm 1 CMNC |
| Input: |
| data content δ, |
| the channel set , |
| the class set
|
| Output: |
| the transmission strategy in the millimeter-meter network |
| 1: for the sensor node
do
|
| 2: for the sensor node data x
do
|
| 3: extract data content δ from the sensor node |
| 4: end
for
|
| 5: end
for
|
| 6: for the sensor node
do
|
| 7: for the data content δ
do
|
| 8: compare to the training set using Equations (18), (19), (20) |
| 9: end
for
|
| 10: end
for
|
| 11: calculate the combination of the BPA and the belief function of the sensor node by Equations (24), (25) |
| 12: for the sensor node
do
|
| 13: for the data content δ
do
|
| 14: get the maximize belief function as the basis of assigning class by Equation (28) |
| 15: end
for
|
| 16: end
for
|
| 17: get the class label by Equation (30) |
| 18: for the class set
do
|
| 19: for the channel set
do
|
| 20: compare the number of channels and classes |
| 21: if
then
|
| 22: running the high response priority assignment method |
| 23: calculate the of the class by using Equation (32) |
| 24: else
|
| 25: sequentially assigned to channel |
| 26: end
if
|
| 27: end
for
|
| 28: end
for
|
| 29: assign the channel to the corresponding class |
| 30: for each class ω
do
|
| 31: for the sensor node D belongs to the same class do
|
| 32: get the neighborList |
| 33: if neighborList[] = 1 then
|
| 34: some data have been gotten |
| 35: else
|
| 36: some data have not been gotten |
| 37: end
if
|
| 38: end
for
|
| 39: end
for
|
| 40: obtain the data to be transferred
|
| 41: generate a random linear encoding package
|
| 42: for each class ω
do
|
| 43: for the sensor node D belong to the same class do
|
| 44: transmit the linear encoding package |
| 45: if the receiver gets enough
then
|
| 46: decoding package and gets the original data
|
| 47: else
|
| 48: continue to receive
|
| 49: end
if
|
| 50: end
for
|
| 51: end
for
|