
COMPUTER ENGINEERING
1999 25 10 Vol.25 No.10 1999



CORBA׼STEPݿʵо
䡡־ܡ˼
ժҪΪҵ칹ƽ̨ĲƷݹ⣬ƷCORBA׼STEPлؽʵ˻STEP AP203ȫģ͵ļҵƷݴ洢ϵͳ--STEPݿ⡣STEPݿҪɲ֣STEPӿڡSTEPģ͹֯ܽ˵
ؼʣݿ⣻STEP׼CORBA׼SDAIҵƷݴ洢
A COEBA Based STEP Database System
Zhao Youzhen Song Zhijie Yang Jun Deng Jiati
(720 Instiute,Beijing University of Seronautics and Astronautics,Beijing 100083)
AbstractIn order to provide one solution to the problem about sharing product data between inhomogeneous application platforms,this paper seamlessly conjoins two international standards,CORBA and STEP,to implement one integrated virual enterprise product data repository--STEP database,which is based on the STEP AP203 hlobal data model.The three main parts of the STEP database(the STEP services,the STEP model management,and the core data area organization architecture)are introduced in this paper.
Key wordsDatabase;STEP standard;CORBAR standard;SDAI;Virtual enterprise product data repository
żܵĿչԼݱʾ׼ĳ֣ҵܹӻѸЧĹͬµгµĲƷҵĺΪҵҵҲԱΪݵȫ磬Щñ׼칹Դ
ʵʩҵĹؼǿ칹ϵͳϢļɡCORBA(Common Object Request Broker Architecture)STEP(ISO-10303)ʱ׼ĽΪҵĿʵʩṩ˿ܡ
STEP׼ڲƷڣƷͳһģ͵ĽӶΪͬϵͳ֮ϢԶת͹ṩ˱׼ֶΡ
STEP׼ݽʵʩ·Ϊļļ׼ݴȡӿڡݿ⹲֪ʶ⹲ʵֻͳһSTEPƷģ͵ĹݿⷽʽϵͳɵĹؼ֮һȻSTEPʵݿⷽ3ϰϢģ͵ķʽEXPRESSԵضԼڹ̶ݽǹڷʽݻΪСԪأڳиѴEXPRESSڲƷ֮֯ⱻ⣬EXPRESSݲWWWϴ
STEP DB ʵУӦEXPRESS-XԣStepStepпStep ȷӶ˷˸ϰ
ݿǼɵĺģѡǹǿOracleݿϵͳ
STEP DBϵͳCORBASTEPṩ˻ϵĲƷݹֽṹУCORBAṩ칹ƽ̨ĻܣSTEPṩ˽ϢԡϵͳĽṹͼͼ1

ͼ1 STEP DBϵͳṹͼ
1STEP
1.1 STEPĻ
STEPCORBA׼ġIDLĽӿڼЩӿڼģ͵ˮƽ϶STEPݿвݣʹӦݿѰҡɾģ͸סͻӦóSTEPͨװģݿ⣬Щģ˲ƷĲͬ档
ģһݿ飬STEPƷеһܵԪIDL棬һģһSTEP棬һЩʵʵļϣЩʵʵ˸ģ͵ݡIDLģͶӵһЩЩܽ˸ģ͵ϢԼһЩݿһģģ֮Ĺϵ
ʵṩɱһƷģͼϵķ񡣻Ϊ(ڲΪ)ʱ(Slate)ϼڲ񣬴ӰһSTEPļвģͼϣʱϼصģͣڳ־(house)ϼעĳ(Щ)ģͽһѡ(election)־ڳ־ϼĳ(Щ)ģͣڳ־ϼע񣬸ĳ(Щ)ģͽһѡ񱻴ӳ־ɾڳ־ϼ洢ɾĳ(Щ)ģͲĳ(Щ)ģ͡
STEPʹ3ıʵ£
 ʱݴⲿתƵ
 ־ЩƷģͣЩģʹݿС
 ƽ̨(platform) һģͼеϢⲿͨš
1.2 STEPIDLӿ
(1) ʵĽӿ
interface Indexed_instance:Schema_instance
{ void internalize(inout stream s);
void internalize(in sequence<SDAImodel>);
stream externalize();
sequence<SDAImodel>externalize();
Indexed_model findModel (in string key,in string type);
sequence<Indexed_model>allModel(in string type);
void addModel (in Indexed_model candidate);
sequence<Indexed_model>winners();
boolean start_election();
boolean abort_election();
boolean end_election();
;//ϸ
};
Internalize(ڲ) ⲿģͼϡЩģǴзֵġSTEP Part 21 ļSTEP Part 21ļĵͬExternalize(ⲿ)ģͼϵⲿ硣ЩģͱSTEP part 21 ļǵͬPart 21ļļ
(2) "model"Ľӿ
interface Indexed_model:Model
string key();string user_name();
string type();boolean isA(in string s);
sequence<Indexed_instance>indexes();};
user _name һģ͵ַԺͼ(key)ֵͬҲǼֵıûİ汾֤Ψһԡ
(3) AP203ʵ
interface AP203_instance:Indexed_instance{Advanced_b_representation findAdvanced_b_representation (in string s);;
Application_context findApplication_context(in string s);
sequence<Advanced_b_representation>
allAdvanced_b_representation();

sequence<Application_context>allApplication_context();}
ýӿУַһַͨģ͵ļ(key)ֵҸģܷͣ򷵻NULLڶַݸͷои͵ģͣûָ͵ģ򷵻бΪա
2ģʽ
ӱҪƷݵı뽻׼STEP޶Եġֱ׼Ǿ޴ģ൥ӦϵͳҪϸڡƷģ͵ļͼʡ˸ģ͵ĲҪϸڣӸʹ
һӦϵͳƷģ͵ļͼһӦϵͳ˵һͬŻЧϵͳŹϵġ˿ɲƷģ͵ͼҿɼõӦϵͳ⽫STEP׼Ŀԡ
ôֲͼȫģ֮䡢Լͬͼ֮ĶӦϵأνͳģSTEPģתأSTEPУƷģEXPRESSġζţƷģ͵ͼڸòƷģ͵EXPRESS塣˶STEP˵ҪһEXPRESSϢģ͵ͼ塣EXPRESS-XԵĿġEXPRESS-XEXPRESSչ˶EXPRESSϢģͼĽṹͬEXPRESSģʵӳ䣬ЩӳԱһݼϵĿɹѡʾͳģSTEPģ֮Լͳģ֮ӳ䡣
ҵƷ洢STEP AP203ġAP203Ϊÿװ䶨һģͣģͰ˴Լ500ݶ塣ڶVEPR(ҵ洢)ⲿӿʱSTEPAP203 14UoF(ܵԪ)ĴԼ40ӦöЩԱ֯ƷƷ汾״װϵԡ40ͨEXPRESS-Xӳ500ݶġУڲEXPRESS-X𽫷ϲͬӦģ͵תΪ40ʵAP203Ӧòοģ(ARM)ݣЩARMתAIMģȥںⲿEXPRESS-XĹǡǡ෴ȽAIMתΪARM ݣȻٽתΪӦϵͳģݡתУģʽϢȴŵˡ
ģʽǶVEPRģʽѾڱ׼ӦЭ顢ԴԼͬľֲӦģ֮䡢ֲӦģȫģ֮ӳΪ塢޸ӦģԼͬģ֮תĻ   ģʽĹܰģʽ¼룬ģʽֵɣģʽӳɣӳֵɣģʽӳ޸ģģʽһάάĳһģʽSTEP AP203ģʽӼ
3ܽṹ
EXPRESSϢģǲƷȫڵ߼ģͣЩ߼ģʹ֮ǰ뱻ӳΪʵּEXPRESSģ4ʵּͼ2ʾ

ͼ2 STEPʵּ
һ򵥵ʵ֡һEXPRESSͨSTEP Part 21ʽļڲͬӦϵͳ֮нӦϵͳڲƷݵıûκԼʵַʽ߱˼һʵַʽص㣬ڴ湤ݻEXPRESSϢģݵʵַʽ߱˼еص㣬˴洢ݿϵͳݵɲƷݿԴŹ෽ݡӦϵͳԴȡƷݣҿԳݿص㣬磺ѯĵʵַ߱нϵʵּصԼEXPRESSԼ֤ܶݿݽ
ΧEXPRESSϢģ͹ݿɣEXPRESSݿṹṩݿSDAIȡӿڡ
3.1 EXPRESSݿģʽת
EXPRESSϢģתΪĿݿģʽ塣תҪEXPRESSԵĿݿݶ(DDL)ӳ䡣
EXPRESSص뱻ҪĲԭʼϢ
(1)ENTITY(ʵ)ÿһʵ嶼ӳΪһежӦʵı(local)ԣϵͳʵӾΨһ־ʶÿһʵʵ͵ԱֱӴֵ(磬ʵʵѡ񡢾ۼ)ΪΨһʵ־ⲿ(2)Inheritance(̳)̳ζŸ֮ԵĸƣϵͳзʽĹһÿֻжӦʵıԡһм̳ԵʵʵԶͨͲбʵʶӻá
(3)Primitive Type()ϵͳԼͻɼͶͽб롣
1EXPRESS͵ݿӦ͵ĶӦɼͶΪʹ
1 EXPRESS͵ݿ͵ӳ
EXPRESS ݿ
realfloat/double
booleaninteger
logicalinteger
integerinteger
stringvarchar
binarynumber
enumerationvarchar
(4)Enumeration(ö)ϵͳȡʹָ򵥶öٱķģöݿеıʾ
(5)Select(ѡ)ϵͳȡѡģѡݿеıѡеÿԱͶӦűеһСеÿһֻһкֵΪաֵмΪҪѡȡ͵ʵ
(6)Aggregate(ۼ)ۼһЩݿнģ⡣ݿвһʽıžۼֵ磺 
2 ĳбݿбʾ 
ListIDElementIDNextListID
List_ID_1Point_ID_1List_ID_2
List_ID_2Point_ID_2 NULL
2ʾĳһΪListOfPointֵݿеĴбPointIDŷֱPoint_ID_1Point_ID_2
⣬ݿʵֻܹλDerivedԡlocalGlobalԼԼuniqueinverseӡ
3.2 SDAIȡ
ݵصԼʱҪ3ֿܽṹɹѡ
 ģͣߵ--ļ/SDAIࣻ
 ģͣߵ--SDAIࣻ
 ֵߴ--ֱӵSDAIࡣ
⣬ϵͳ(early binding)(late binding)Ļ෽ʽݿȡԲͬEXPRESSṹӦ⣬ṩ޵Լ鹦ܡ 
4
CORBA׼ṩInternet/Intranet칹ƽ̨ǿĶû͸ӡͨšܣSTEPṩƷȫڵȫģ͡STEP DBʵṩ˿ļеݿܣϸر֤˹ȫݵԡһԡϵͳʵΪɹʵʩҵݴ洢ṩϵ̽Լ弼ϵʾãṩһSTEP AP203ȫģ͵ļɵҵƷݴ洢ϵͳ
Ŀ863Ŀ
߼飺䣨1972УʿоΪҵеݿ⼼
ߵλպѧ720о100083
ο
1 Hardwick M.The STEP Services Reference Manual.Teck.Report96004,Laboratory for Industrial Information Infrastructure,Rensselaer Polytechnic Institute,Troy,New York,1995
2 Shah Jami J,Jeon Dae K,Urban Susan D,et al.Database Infrastructure for Supporting Engineering Design Histories.Computer-Aided Design,1996,28,(5):347-360
3 Martin H,Spooner D L,Rando T,Morris KC.Sharing Manufacturing Information in Virtual Enterprises.Communications of the ACM,1996,15(5)
4 Martin H,Spooner D L,Rando T.et al.Lessons learned Developing Protocols for the Industrial Virtual Enterprise.http://www.steptools.com,1998
ոڣ1999-0126
