xMOF:ASemanticsSpecicationLanguageforMetamodelingTanjaMayerhofer,PhilipLanger,ManuelWimmerBusinessInformaticsGroup,ViennaUniversityofTechnology,Austria{mayerhofer,langer,wimmer}@big.
tuwien.
ac.
atAbstract.
WhileMOFconstitutesastandardizedandwidelyacceptedlanguageforformallydeningamodelinglanguage'sabstractsyntax,nostandardizedlanguageforspecifyingitsbehavioralsemanticsexists.
Thisimpedestheef-cientdevelopmentoftoolswhichbuilduponthebehavioralsemanticsofmodel-inglanguages,suchasmodelinterpreters,debuggers,andtestingenvironments.
Toaddressthisshortcoming,weproposetoadoptthestandardizedactionlan-guagefUMLassemanticsspecicationlanguageinmetamodeling.
Inthispa-perwepresenttoolsupportintegratedwiththeEMFenvironmentforspecifyingthebehavioralsemanticsofmodelinglanguageswithfUMLaswellasforex-ecutingmodelsbasedonthesespecications.
Ateaserforthedemonstrationofthistoolsupportcanbefoundathttp://www.
youtube.
com/watchv=p4alBfqbjk8.
1IntroductionInmodel-drivenengineering(MDE),modelsconstitutethecentralartifactsinthesoft-waredevelopmentprocess.
Thus,thesuccessofMDEdependssignicantlyontheavailabilityofadequatetoolsupportforcreating,exploring,analyzing,andutilizingmodels.
Todevelopsuchtoolsefciently,modelinglanguages(i.
e.
,theirsyntaxandse-mantics)havetobedenedformally[1].
MOF[4]constitutesastandardizedandwidelyacceptedmetamodelinglanguageforformallydeningtheabstractsyntaxofmodelinglanguagesandlaidthegroundfortheemergenceofavarietyoftoolsbuildingupontheabstractsyntaxdenitionofamodelinglanguage,suchastechniquesforderivingmod-elingeditorsfromametamodelandgenericcomponentsformodelserializationandcomparison.
Despitethefactthatseveralapproachesforformallyspecifyingthebehav-ioralsemanticsofmodelinglanguageshavebeenproposedinthepast(cf.
[1]),noneoftheseapproachesiswidelyadoptedcomparedtometamodelinglanguages.
Thisham-perstheefcientdevelopmentoftoolswhichbuilduponthebehavioralsemanticsofamodelinglanguage,suchasmodelinterpreters,debuggers,andtestingenvironments.
Duetothislackofastandardizedlanguageforspecifyingthebehavioralseman-ticsofmodelinglanguages,weinvestigatedwhetherthestandardizedactionlanguagefUML[6]canbeusedassemanticsspecicationlanguageinmetamodelingandhowitcanbeintegratedwithexistingmetamodelingmethodologiesandenvironments.
ThisinvestigationresultedinthemetamodelinglanguageexecutableMOF(xMOF)integrat-ingfUMLwithEcore,whichisthemostprominentimplementationofMOFandem-ployedinEMF[7].
Furthermore,weelaboratedamethodologyforsystematicallydevel-opingsemanticsspecicationswithxMOFandutilizingthemformodelexecution.
Thismethodologyintegratesseamlesslywithexistingmetamodelingmethodologiesanden-vironmentswhichenabledustoimplementconformingtoolsupportforEMF1.
InSection2wegiveanoverviewofourmetamodelinglanguagexMOF.
InSec-tion3wepresentourmethodologyfordevelopingsemanticsspecicationsandexe-cutingmodelsbasedonxMOFanditstoolsupportinEMF.
InSection4wegiveanoverviewofthetooldemonstration.
Finally,inSection5weconcludethispaper.
2SemanticsSpecicationLanguagexMOFfUML[6]isasubsetofUML[5]comprisingmodelingconceptsfordeningUMLclasses,aswellasactivitiesdeningtheclasses'behavior.
Furthermore,fUMLdenestheexecutionsemanticsofthisUMLsubsetintermsofavirtualmachine(VM)capableofexecutingcompliantmodels.
BecauseUMLclassesandMOFmetaclassesdifferonlyintheirintendedusage(modelingofsystemsvs.
modelingoflanguages),wearguethatfUMLmightbewellsuitedforalsodeningthebehaviorofmetaclasses.
Furthermore,asfUMLisanobject-orientedandimperativeactionlanguageandwellknownintheMDEcommunityasitisasubsetofUML,whichiswidelyadoptedinMDE,itmightbeintuitivetouseforspecifyingthebehavioralsemanticsofmodelinglanguages.
AsbothMOFandfUMLarestandardizedbyOMG,fUMLmaybeconsideredaspromisingcandidateforbecomingastandardizedactionlanguageinmetamodeling.
ForintegratingfUMLwithexistingmetamodelinglanguagesinordertoenablethespecicationofthebehavioralsemanticsofmodelinglanguagesweidentiedtwostrategies[3]:atransformation-basedandanintegration-basedstrategy.
Becauseofthebetterintegrationwithexistingmetamodelingenvironmentswedecidedtoapplytheintegration-basedstrategy.
Inthisstrategy,ametamodelinglanguageisextendedwiththebehavioralpartoffUMLcomprisingmodelingconceptsfordeningactivitiesandactionssothatthebehaviorofmetaclassoperationsdenedinthemetamodelofamod-elinglanguagecanbespeciedintermsoffUMLactivities.
ByapplyingthisstrategyforintegratingfUMLwithEcore,whichisthemostprominentimplementationofMOF,weobtainedanewmetamodelinglanguagewhichwecalledexecutableMOF(xMOF).
ThemetamodelofxMOFisdepictedinFigure1.
ForintegratingEcorewiththebe-havioralpartoffUMLweintroducedthemetaclassesBehavioredEClassier,Behaviored-EClass,MainEClass,andBehavioredEOperation.
ThemetaclassBehavioredEClassierisasubclassofEClassierandcanownBehaviorsintermsofActivities.
Behaviored-EClassisaconcretesubclassofBehavioredEClassierandEClassandcanthereforeownActivities.
TheclassMainEClassisintroducedtodistinguishoneBehavioredEClassinasemanticsspecicationasthemainclasscontrollingtheexecutionofamodelcon-formingtothemodelinglanguage.
WealsointroducedasubclassofEOperationcalledBehavioredEOperationwhosebehaviorcanbedenedbyanActivity.
3MethodologyforDevelopingxMOFSemanticsSpecicationsWithxMOFitispossibletodenetheabstractsyntaxandthebehavioralsemanticsofmodelinglanguages.
TofosterthesystematicandefcientdevelopmentofbehavioralsemanticsspecicationsusingxMOF,aswellastheutilizationofthesespecications1ThemetamodelofxMOF,thesourcecodeofourtoolsupport,aswellasdemosandcasestudiescanbefoundatourprojectwebsitehttp://www.
modelexecution.
org.
Fig.
1:MetamodelofxMOF(excerpt)forexecutingmodels,weelaboratedadedicatedmethodologywhichisaccompaniedbyEMF-basedtoolsupport.
AnoverviewofourmethodologyisdepictedinFigure2.
Inthesemanticsspecication,thebehavioralsemanticsofamodelinglanguageisdevelopedstartingfromitsEcore-basedmetamodel.
Thebehavioralsemanticsisde-nedinanownartifactcalledxMOF-basedcongurationwhichisautomaticallyinitial-ized.
Inthisinitializationonesubclass(BehavioredEClass)ofeachmetaclassdenedinthemetamodelisgenerated.
Theyarecalledcongurationclassesandcanbeex-tendedwithadditionalattributes,references,operations,andactivitiesforspecifyingthebehavioralsemanticsofthemetaclasses.
Alsoadditionalcongurationclassescanbedened.
Furthermore,oneBehavioredEClasscalledInitializationisgeneratedwhichcanbeusedtodenesupplementarydatathatisnecessaryasadditionalinputforex-ecutingmodelsbasedonthissemanticsspecication.
Thisclasscanbeextendedwithattributes,references,andadditionalcontainedclassescalledinitializationclasses.
Inthemodelexecutionpreparation,preparatorytasksforexecutingamodelac-cordingtothexMOF-basedbehavioralsemanticsspecicationoftheusedmodelinglanguagearecarriedout.
InEMF,modelsconsistofinstancesofthemetaclassesde-nedintheEcore-basedmetamodeloftheusedmodelinglanguage.
Asthesemanticsofthesemetaclassesisdenedbytheoperationsintroducedinthecongurationclasses,themodeltobeexecutedhastoberepresentedintermsofinstancesoftherespectivecongurationclasses.
ThisrepresentationiscalledxMOF-basedmodelandisgeneratedautomatically.
Thesupplementarydataneededasinputforexecutingamodeldenedbytheinitializationclasseshastobeinstantiatedmanuallybythemodeler.
ThexMOF-basedmodelcanbeexecutedbyleveragingthefUMLVM(modelexe-cution).
Therefore,itisautomaticallyconvertedintoanfUML-basedmodelconformingtotheformatrequiredbythefUMLVM.
DuringtheexecutionthefUMLVMinterpretstheactivitiesspecifyingthebehavioralsemanticsofthemodelinglanguageandmanip-ulatesthefUML-basedmodelaccordingly.
TheresultoftheexecutionconsistsofthemanipulatedfUML-basedmodel(fUMLextensionalvalues)representingtheruntimestateoftheexecutedmodelaftertheexecutionnished.
Forenablingitsvisualizationmodelannotationsaregeneratedfortheexecutedmodel.
ForthiswemakeuseofEMFProles[2]whichisanmechanismforannotatingEMF-basedmodels.
Fig.
2:OverviewofoursemanticsspecicationapproachbasedonfUML4DemonstrationInthedemonstrationofourtoolsupportforspecifyingthebehavioralsemanticsofmod-elinglanguages,wewilldevelopaPetriNetmodelinglanguage(PNML)followingthemethodologyintroducedinSection3.
WewillshowcasehowthefollowingtasksareaccomplishedusingourEMF-basedtoolsupport:(i)initializationofthexMOF-basedcongurationfromtheEcore-basedmetamodelofPNML,(ii)specicationofthebe-havioralsemanticsofPNMLbyextendingthexMOF-basedconguration,(iii)execu-tionofPNMLmodelsbasedonthexMOF-basedcongurationofPNML.
TheEcore-basedmetamodelofPNML(cf.
Figure3a)denesthataNetconsistsofPlacesandTransitionswhereasaTransitionisassociatedwithatleastoneinputandoneoutputPlace.
ThexMOF-basedcongurationofPNML(cf.
Figure3b)consistsofthecongurationclassesNetConguration,PlaceConguration,andTransitionCongurationgeneratedforthemetaclassesofPNML.
ForthecongurationclassTransitionCong-urationtheoperationre()wasintroducedwhosebehaviorisspeciedbytheactivitydepictedinFigure3c.
ThisactivityspeciesthatfortheoutputplacesofatransitiontheoperationaddToken()iscalledwhilefortheinputplacesremoveToken()isinvoked.
Fur-thermore,theinitializationclassTokenwasintroducedwhichhastobeusedfordeningtheinitialtokendistributioninthenettoenabletheexecutingofaPNMLmodel.
5ConclusionWehavepresentedthemetamodelinglanguagexMOFintegratingfUMLwithEcore.
Itenablestodenethebehavioralsemanticsofmodelinglanguagesinanoperationalway.
Furthermore,wegaveanoverviewaboutourmethodologyfordevelopingxMOF-basedsemanticsspecicationsandutilizingthemformodelexecutionandwepresentedaccompanyingtoolsupportforEMF.
Toevaluatetheapplicabilityofoursemanticsspecicationapproach,wecarriedoutseveralcasestudiesinwhichwedevelopedthebehavioralsemanticsspecicationsofdistinctmodelinglanguagesandutilizedthesespecicationstoexecuteconformingFig.
3:ToolsupportforspecifyingbehavioralsemanticswithfUMLmodelsusingtheimplementedtoolsupport.
Insummary,thecasestudiesconrmedthatxMOF,itsaccompanyingmethodology,anditstoolsupportareapplicablefordeningthebehavioralsemanticsofdifferentkindsofmodelinglanguages.
Regardingthesuit-abilityoffUMLassemanticsspecicationlanguage,wecometotheconclusionthatduetoitsobject-orientedandimperativenature,fUMLishighlysuitable.
References1.
B.
R.
Bryant,J.
Gray,M.
Mernik,P.
J.
Clarke,R.
B.
France,andG.
Karsai.
ChallengesandDirectionsinFormalizingtheSemanticsofModelingLanguages.
ComputerScienceandInformationSystems,8(2):225–253,2011.
2.
P.
Langer,K.
Wieland,M.
Wimmer,andJ.
Cabot.
EMFProles:ALightweightExtensionApproachforEMFModels.
JournalofObjectTechnology,11(1):1–29,2012.
3.
T.
Mayerhofer,P.
Langer,andM.
Wimmer.
TowardsxMOF:ExecutableDSMLsbasedonfUML.
InProc.
ofthe12thWorkshoponDomain-SpecicModeling,pages1–6.
ACM,2012.
4.
ObjectManagementGroup.
OMGMetaObjectFacility(MOF)CoreSpecication,Version2.
4.
1,August2011.
Availableat:http://www.
omg.
org/spec/MOF/2.
4.
1.
5.
ObjectManagementGroup.
OMGUniedModelingLanguage(OMGUML),Superstructure,Version2.
4.
1,August2011.
Availableat:http://www.
omg.
org/spec/UML/2.
4.
1.
6.
ObjectManagementGroup.
SemanticsofaFoundationalSubsetforExecutableUMLMod-els(fUML),Version1.
0,February2011.
Availableat:http://www.
omg.
org/spec/FUML/1.
0.
7.
D.
Steinberg,F.
Budinsky,M.
Paternostro,andE.
Merks.
EMF:EclipseModelingFramework.
Addison-WesleyProfessional,2ndedition,2008.
小白云是一家国人自营的企业IDC,主营国内外VPS,致力于让每一个用户都能轻松、快速、经济地享受高端的服务,成立于2019年,拥有国内大带宽高防御的特点,专注于DDoS/CC等攻击的防护;海外线路精选纯CN2线路,以确保用户体验的首选线路,商家线上多名客服一对一解决处理用户的问题,提供7*24无人全自动化服务。商家承诺绝不超开,以用户体验为中心为用提供服务,一直坚持主打以产品质量用户体验性以及高效...
BGPTO是一家成立于2017年的国人主机商,从商家背景上是国内的K总和有其他投资者共同创办的商家,主营是独立服务器业务。数据中心包括美国洛杉矶Cera、新加坡、日本大阪和香港数据中心的服务器。商家对所销售服务器产品拥有自主硬件和IP资源,支持Linux和Windows。这个月,有看到商家BGPTO日本和新加坡机房独服正进行优惠促销,折扣最低65折。第一、商家机房优惠券码这次商家的活动机房是新加坡...
在前面的文章中就有介绍到半月湾Half Moon Bay Cloud服务商有提供洛杉矶DC5数据中心云服务器,这个堪比我们可能熟悉的某服务商,如果我们有用过的话会发现这个服务商的价格比较贵,而且一直缺货。这里,于是半月湾服务商看到机会来了,于是有新增同机房的CN2 GIA优化线路。在之前的文章中介绍到Half Moon Bay Cloud DC5机房且进行过测评。这次的变化是从原来基础的年付49....
无状态为你推荐
51自学网站有哪些免费自学网支付宝查询余额支付宝怎么查余额?!?!深圳公交车路线深圳公交线路spgnux怎么安装思普操作系统arm开发板新手入门应如何选择 ARM 开发板?网站联盟怎样进入网站联盟彩信中心短信中心的号码是多少网易公开课怎么下载如何下载网易公开课硬盘人电脑对人有多大辐射?保护气球如何才能让气球放久了不会没气
腾讯云盘 idc评测网 香港新世界电讯 howfile 佛山高防服务器 电信虚拟主机 网通服务器托管 免费asp空间 全能空间 贵阳电信 电信宽带测速软件 阵亡将士纪念日 中国域名根服务器 德国代理 let 回程 次世代主机 kosspp sockscap教程 大容量存储模式 更多