叶荣华 等 一个支持 Web 服务聚集的多 Agent 协作框架 第2 期 示当不采用行业关联时的相应比例 图 4 为重复 10 次实验的 Q r 和 Q0 的分布情况 实验表明 在 简单搜索的情况下 SA 能搜到满足服务能力的需 求的比例明显低于采用相关行业关联策略后的情 况 的无关 RA 返回 而采用关键词策略后返回的 RA 只比准确的 RA 略高一点 所以 采用关键词策略 可以大大降低 SA 与无用 RA 接触的机会 从而减 少了不必要的网络开销 图5 图4 行业关联策略对需求搜全率的影响 4 2 2 关键词策略对返回 RA 个数的影响 设置 RA 的个数为 1 000 SA 的个数为5 000 在一个确定分类中允许的不同功能数为 200 的情 况下 记 1 与服务能力匹配的平均 RA 数为 R e 2 当采用关键词策略时 MA 返回给 SA 的平均 RA 数为 R k 当不采用关键词策略时 MA 返回给 SA 的平均 RA 数为 R0 图 5 显示了重复 10 次实验的 R e R k 和 R0 的 分布情况 实验表明 不采用关键词策略会有大量 167 关键词策略对返回 RA 数的影响 以上 2 个实验说明 在中介 Agent 的设计中 采用了相关行业关联策略可以使 SA 搜索到尽可 能全的 RA 而采用关键词策略可以使 SA 搜索到 尽可能准确的 RA 5 结束语 将 Web 服务看成是主动的服务 Agent 实体 面向服务的计算将演变成一种非集中式的分布式 9 结构 MAS 为这种分布式结构提供了有力的支 持 本文为实现服务 Agent 向需求 Agent 的聚集 设计了一种多 Agent 协作框架 初步解决了服务 聚集中的效率和负载均衡问题 参考文献 1 郑丽伟 金芝 需求驱动的主动网构实体聚合 J 软件学报 2008 19 5 1083 1098 2 叶荣华 金芝 王璞巍 等 一种需求驱动的自主 Web 服 务聚集 方 法 J 11 20 http www jos org cn 1000 9825 3666 htm 3 W3C Working Group Web Services Architecture EB 02 11 http www w3 org TR ws arch 4 Wang Puwei Jin Zhi Liu Lin et al Building toward capability specifications of web services based on an environment ontology J IEEE Trans on Knowledge and Data Engineering 2008 20 4 547 561 5 UDDI Spec Technical Committee UDDI Version 3 0 2 EB 10 19 http uddi org pubs uddi v3 htm 6 Sen S Reciprocity A Foundational Principle for Promoting Cooperative Behavior Among Self Interested Agents C Proceedings of the Second International Conference on Multi Agent Systems Kyoto AAAI 1996 7 Juszcyk L Michlmayer A Platzer C Large scaleweb service discovery and composition using high performance inmemoryindexing C Pro ceedings of IEEE Joint Conference on E Commerce Technology CEC 07 and Enterprise Computing E Commerce and E Services EEE 07 Tokyo The Electronics Information and Systems Society the Institute of Electrical Engineers of Japan in Technical Cooperation with the IEEE and IEEE Computer Society 2007 8 Lin Fuhua Norrie D H Schema based conversation modeling for agent oriented manufactu ring systems J Computers in Industry 2001 46 3 259 274 9 Jacques F Multi Agent Systems An Introduction to Distributed Artificial Intelligence M Harlow UK Addison Wesley Longman 1999 责任编辑 陶立方