|
Algorithm 2 WSN parameter calculation. Service time |
|
Input: Circular matrix of service time measures
|
| Array of CPO to be executed |
|
Output: Medium service time
|
| Obtain the current date in Epoch format, create a variable
|
| Create an integer equal to one |
|
while is higher than zero then
|
| is equal to the addition of elements in
|
| Wait for the result of an operation |
| Subtract one unit to
|
| if received result is not a cancellation then
|
| Obtain the current date in Epoch format |
| Store the new measure in in the row
|
| end if
|
| end while |
|
for each server group
do
|
| Integer is equal to number of non-zero elements in i-th row of
|
| is equal to the addition of all non-zero elements in i-th row of
|
|
|
|
end for
|