• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (10): 182-185.

• 论文 • 上一篇    下一篇

Web Services的权重空间距离和定量选择

李〓珍1,2,王红兵2   

  1. (1.江苏海事职业技术学院信息工程系,江苏 南京 211170;2.东南大学计算机科学与工程学院,江苏 南京 211100)
  • 收稿日期:2010-04-30 修回日期:2010-08-27 出版日期:2011-10-25 发布日期:2011-10-25

The Weighted Space Distance and Quantitative Selection of Web Services

LI Zhen1,2,WANG Hongbing2   

  1. (1.School of Information Engineering,Jiangsu Maritime Institute,Nanjing 211170;2.School of Computer Science and Engineering,Southeast University,Nanjing 211100,China)
  • Received:2010-04-30 Revised:2010-08-27 Online:2011-10-25 Published:2011-10-25

摘要:

一个Web Service服务有很多的QoS属性,不同的用户对不同的QoS有不同的偏好要求,为从众多功能相同的Web Service中选择用户最期望的服务,本文给出了基于n维空间的权重距离的算法。根据用户给定的偏好,计算每个Web Service服务的一阶权重距离,其最大值对应的服务a为最优;如果服务a和次优服务的相对差大于等于给定阈值,则向用户返回该服务;否则计算二阶权重距离对应的最优服务b,如果服务b和次优服务的相对差大于等于给定阈值,就向用户返回服务b;否则,比较服务a和服务b的相对差,将相对差较大的服务返回给用户。该算法能充分体现用户对不同QoS属性的偏好,因而具有明显的优势。

关键词: QoS, 空间距离, 网络服务, 选择

Abstract:

A web service has many different QoS attributes. Different customers have different preferences on different QoS attributes of a web service. For getting a service which can best fit the customer’s desire, this paper gives a quantitative selection algorithm based on the weighted space distance in the n dimensions. Using the preferences, the algorithm calculates the firstorder weighted space distance of every service, and selects the best service named “a”; If the relative dispersion is greater than or equal to the threshold value, it returns service “a” to the customer. Or else, the algorithm calculates the secondorder weighted space distance of every service, and selects the best service named “b”; if the relative dispersion is greater than or equal to the threshold value, it returns service “b” to the customer. Otherwise the service returns to the customer is the one that has the large relative dispersion. This algorithm can select the best one from web services with the same performance, which sufficiently indicates the preferences, and thus has its obvious advantage.

Key words: QoS;space distance;web service;selection