|
Algorithm 1 Cluster setup. |
|
Let be the node requesting the service S. |
| Let be a global variable that stores the set of available nodes in the cluster. |
| Take a service with processing unit P and related QoS Q such that each is a finite set of n quality choices for the attribute, expressed in decreasing order of preference, for all k QoS dimensions. |
| Let be the set of nodes in the cluster capable of providing a given service. |
| Let broadcast to the local network the request for nodes to register, adding them to . |
| 1: for each do
|
| 2: Let be the QoS delivered by node
|
| 3: if is higher (in all its dimensions) than Q then
|
| 4:
|
| 5: end if
|
| 6: end for
|
| 7: return
|