о뷢չ
JOURNAL OF COMPUTER RESEARCH AND DEVELOPMENT
1999 36 9 Vol.36 No.9 1999



һֻTriBusɿ
ܪڿ
ժҪһϵṹ.ϵṹͶ˹̡Agent 3ͣһֳΪTriBus߻涨˲ͬ๹֮ͨTriBusĵùϵͬ๹֮˫ùϵϵṹڼЭͬӦʵ.
ؼʡϵṹߣЭͬ
ͼšTP311.5
A SOFTWARE INTEGRATING FRAMEWORK BASED ON TriBus
LI Bao-Jian, ZENG Guang-Zhou, and LIN Zong-Kai
(CAD Laboratory at Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080)(Department of Computer Science, Shandong University of Technology, Jinan 250061)
AbstractA domain-specific software architecture style is proposed in the paper here. In the architecture style, three software component types are defined: procedure components, object components and agent components. A software bus called TriBus is designed to facilitate interactions among these components and specify one way citation relations between different component types and two-way citation relations between components of the same type. An application example of the software architecture style in the domain of Computer Supported Collaborative Design is given.
Key wordssoftware architecture, software component, software bus, computer supported collaborative design
1
domain specificϵṹϵṹоһҪ.оĿͨضӦĿṩõƷĹcomponentsͿܣframeworks.ֿǻ˼뼴һϵͳĹͬԳȡӶԽϵ͵ĳɱͨʵµϵͳ1.
ϵṹмֵһᣬһἰġ򡱣䷶Χխɿ.˵üȰãְɹĿܵ.ĳһϵṹΨһģǴһϵṹռ.
Ľһϵṹͣǳ֮ΪD3ϵṹ.ϵṹ͵漰ǲõо.о뿪һ־ļЭͬƣCSCDĲβģϵͳĹУ2ݣǲ˴гȡһϵṹ뷨.ĿָһCSCDComputer Supported Collaborative DesignϵͳĿ.ΣϵṹĹУǷҲܾڸķΧƩ˵CSCWDPSDistributed Problem SolvingȵǱ˹Ͳͼʹ֮и÷Χ.
2༰໥ϵ
ǽD3ṹеĹֳ3ࣺ̹󹹼Agent.ֱǵĶ.
1. ̹д任ʣԶݽб任õݣҲԶȫݻ״̬вʹ֮ı.ӹ˵̹һĹ̻.Ĺ̻ûԼ˽ݻ״̬ҲûԼ˽ݻ״̬.ָ̻ĵùϵ.
2. 󹹼ǾԼݻ״̬ṩݻ״̬صĲĳģڼģ.
õǹĶ.󹹼ǿݺͲķװ.ⲿֻҪһԼݺ״̬ṩصĲ񣬾;߱Ϊ󹹼.磬һͨݿӦóȼԹͿɹɶ󹹼.
3. AgentAgent.Agent״̬Կ(belief)Ŀ(goal)(intention)ŵ(commitment)ɷֹɵģ໥֮ûΪͨԭ֪ͨ顢ܡܾȽнúͺģһĻ³еĳʵ.
ѧʲôAgentвͬĹ۵.ǵӦҪǲһ֪(cognitive) AgentĹ۵.֪Agentǿ̬ԪĿꡢȵȷʾ34ݣAgentΪ(rational behavior)ֱʾĽ.
ǵĹУȷؽAgentֲֳͬĹ.ͽAgentΪһĶͬ.Ȼĳ˵ԽAgentһĶ󣬵֮ٴ죺
(1) ״̬Agent״̬.״̬ȡݣԣȡֵΪ仯ͬӰΪ.״̬һδֻԼ״̬仰˵ЩԼЩԵĽȫȡڸԱ.Agentͬ״̬ȷĿꡢȾɷ.
(2) AgentϢͨţϢԼͻģAgentϢȷΪۼͻ.Agent֪֮ͨͨ顢ܡܾ֮Ϣʵֽ.
ˣΪAgentһĶ󣬲ΪAgentһָ߲ε.ָ߲εĳ󣬿DPSCSCWӦṩֱӵ֧.
3ֹ֮ĹϵǶԵȵ.ǿԹ涨֮ùϵͼ1ʾ.ǽ̺ͺá󴫵ϢAgent ͨԭͳΪá.֮ùϵֳ3ΣAgentΣ󹹼κ͹̹.ÿ֮ڵĹ໥ãϲ㹹²㹹֮Ȼ.涨ҲԵģ̹Ǵ任ʵģûԼ״̬.󹹼Լݺ״̬AgentԼ̬.涨ǲ֮ĵÿԱ⸴Ԥϵ.ͬ๹֮ĵùϵͬ๹֮˫ùϵҲD3ϵṹ͵Ҫɲ.

/֮乹ùϵ
ͼ1ùϵ
3TriBus
(connector)ϵṹҪɲ֮һǹ빹֮佻õн.D3ϵṹǹ涨ͼ1ʾùϵǽ̺ͺá󴫵ϢAgent ͨԭͳΪ.ΪǷɢϵģʵֹ֮ùϵһҪ.ûΪ̺ͺá󴫵ϢAgentͨԭÿһ÷ֱƲͬһֳΪTriBusΪôн.ҪɫṩAgent֮ͨԭнõĻ.ΪAgent֮ͨԭｻйصģÿصͨԭﶼҪرĴЭ.AgentоԶδ죬е߱׼CORBAȲṩҪAgentֶͨ.
TriBusɱʶߣIdBusߣComBusߣDataBusϺ߹BusManagerɣṩڹ߹ҽӵĿͻͷԴ⣨ͻǷõĹǽõĹ.ͬһȿǿͻҲǷ.ṹͼ2ʾ.ǽTriBusʵΪֲ̨̣ڲͬϵTriBusǶԵȵģͨϢ໥ϵ.

ͼ2TriBus
BusManagerⲿϢĽݷĽʶ..
IdBusַ͡λϢýӿ⣨¼Id⣩ֿ֧ƽ̨ȫֹʶýӿڿռ䣬ṩ洢¡ȹӦóӿڣAPIͬϵıʶ֮һ⣨Ҫ˵һǣܸTriBusùϵǶԵȵģTriBusһϣĳѡTriBusΪ׼,Ӷƣ.
ComBusTriBusиôĲշ߼ЭICP͹ṹͼ3ʾ.ComBusӦóṩڶ̬õAPIӦóշ֮Ķ̬ӿ.

ͼ3(߿)ṹ
շĹ֮һǽմӦóľBusManagerľͳһʽãбǷصã͸أӹִнͨICPʵתϵĿTriBus߲ӦĽ.շһǸյõԴַĿĵַòǷ߽жýݵĴ.
ICPЭĹǸ֮üĴ.ICPЭʵһӵʵ.Բͬ뺯á֮ϢͼAgent֮ͨԭṩͬĴ.
𱾵عĹ򱾵عòִн.
DataBusרŸýݵ紫.ÿDataBusһý崫Эʵ壬ý巢ͽɣһ͵ý.ý崫һǷǳӵ.ýĶԼýӦõĹ㷺Զ紫估Եǿ̵Ҫ.ͼһֶ֧ýĸӦõͨõDataBusϣˣTriBusУDataBusÿDataBusƳɿװж.
֮TriBusͨţѭͳһĽӿڱ׼TriBusȷҽ.һIDLӿڶԣ̹󹹼Agentķӿ.ĳֳԱдɵģIDL˵ΪĿ.ӦIDLĿԵӳ淶.IDLӳ淶дְܣ
(1) ݹӿIDLTriBusṩķԴɷǼܣserver side skeletonķǼIDLĿԱʾģTriBusҽӲComBus.
(2) ݿͻԷľ̬áķӿIDLTriBusṩĿͻԴɿͻ׮client side stubͻ׮ͬIDLĿʾͻTriBusҽӲComBusת̬.
ùעIdBusע.עIDLɹķǼܣԴͷǼܽбӣݹӿڵIDLIdBusע.עṩIdBusע滻ĳһĹ.
ͻַʽʹ÷һǾ̬õķʽһǶ̬õķʽ.ν̬÷ʽָͻڼͰź˵Ĺ÷ʽ.̬÷ʽʹ÷ǣIDLҪõķӿIDLɿͻ׮Ͱ˶ԷõĿͻһɿͻִд.̬õķʽָͻֱӵTriBusṩAPIڼIdBusѯӿڲʱͨAPI.
4һD3ϵṹʵ
ϵṹ(architectural style)ϵṹʵ(architectural instance)ͬĸ.һϵṹʵָһضϵͳϵṹһϵṹһϵṹʵʽͽṹӦԼ.ϵṹ͹涨ʵܾеĹ(connector)ԼԼԼȣ1.
ǽҪܵһD3ϵṹʵһǿļͼЭͬԭϵͳ(CODDS)ϵṹ.ʵãconfigurationͼ4ʾѡD3ϵṹеĶAgent͵ĹͨTribus໥.

ͼ4CODDSϵͳϵṹʾͼ
CODDSУƶ󹹼ʵϵͳ.ƵĲƷ༰ιϵ;ۺϹϵȵͼλʾ.CODDSϵͳһͼα༭乲ƶ󹹼ĻͼǱʾ֣ࣨûԣԼۺϵȹϵļͼΣһͼα༭ͬ.ʩǵĲ󹹼ķࡢɾԡ볷̳лۺӹϵ.
ЭͬƣCSCDĿ֧Ⱥ幤һЧCSCDϵͳȺ幤صصϵķֲԡʱϵͬ첽ԡԵȱԿǣ5ݣȺЭֽͬװ䡢ƻءͻȱϵͳӳԸõ֧˽.
Ϊ˽Эͬ󼯳ɵCODDSУϵͳƶ󹹼ͶԱ֮ɶAgentɵĶAgentϵͳ.ÿ߶һAgent֣߿ֱӵزAgentÿAgentֱӲݹƶ󣬵ֻͨмAgentӵزݹƶ.
ÿAgentΪ̬Ԫbeliefsdesiresgoalsintentions.ΪЭͬĳЩԼֱӷӳÿAgentЭͬΪһ̬ԪسΪJoint endeavor2.Agentͨinform, request, consent, proposal, accept, refuseͨԭ໥.мAgentϵͳͨγ̬Joint endeavorƾǽõͨԭӶЭͬƵĳЩԼ󼯳ɵϵͳ.ÿAgentûӿںԪûӿڡģ顢ЭģԼAgentŵڲģ͵Ȳ.ԱͨûӿAgentԹ󹹼ĲϢֲҪܵģļأЭͬԼAgentݽյĲϢԹ󹹼ʵʩʵʲ.ԪûӿṩԱЭֶ.ʵϣԱǾԪûӿͨAgent֮໥ͨԭ໥.Эģ鸺Joint endeavorJoint endeavorĹ涨ЭͬΪ.
CODDSϵͳϵṹȫD3ϵṹ͵Ĺ涨.Agent֮ͨͨԭ໥ãǶԹ󹹼ĲϵD3ϵṹ͵˵ùϵ.Agentһƶ󹹼ڶ󹹼֮໥ùϵ.ÿAgentǷҲǿͻΪ֮ùϵ໥.ƶ󹹼ֻAgentã˽ΪTribusע.
5
ǽD3ϵṹеĹ໥ϵһD3ϵṹʵ.˵ģϵṹ͵ĹУһCSCDϵͳƣֲڴ.D3ϵṹ͵һʼһоӦ
(1) ̽D3ϵṹ͵÷ΧڿǽӦõһںڰģ͵ĶAgentֲʽϵͳ.
(2) ϵṹʵ֮.ĳϵṹ͵ȻƷشӰ.˻D3ϵṹ͵Ʒֵǽһо.
ΪֹоD3ϵṹͶԹ໥ϵĹ涨ȻģӦǰҲǹ.
עõҡ塱صƼĿ(Ŀ96-729-01-01)ɽʡȻѧ(ĿY98G07103).
߼飺У196410ʿоҪоΪܻЭͬ.
ܣУ19473ڣҪоΪ˹ܺ.
ڿУ19343оԱʿʦҪоΪݿ⼰Эͬ.
ߵλڿйѧԺ㼼оCADʵҡ100080
ܪɽҵѧϵϡ250061
ο
1Garlan D, Perry D E. Introduction to the special issue on software architecture. IEEE Transactions on Software Engineering, 1995, 21(4): 269274
2Li Baojian, Zeng Guangzhou, Lin Zongkai. A hierarchical operation model based on half-automated agent for collaborative design. In: Proc of Third International Workshop on CSCW in Design. Japan, 1998
3Shoham Y. Agent oriented programming. Artificial Intelligence, 1993, 60: 5192
4Cohen P R, Levesque H J. Intention is choice with commitment. Artificial Intelligence, 1990, 42: 213261
5Lin Zongkai. The appearance of CSCD making CAD technology to leap onto a new step. In: Proc of Second International Workshop on CSCW in Design. Bangkok, Thailand, 1997. 162167
ԭյڣ1997-12-29޸ĸյڣ1998-10-06.
