文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > Structuring formal control systems specifications for reuse Surviving hardware changes
侵权投诉

Structuring formal control systems specifications for reuse Surviving hardware changes

Formal capture and analysis of the required behavior of control systems have many advantages. For instance, it encourages rigorous requirements analysis, the required behavior is unambiguously defined, and we can assure that various safety properties are s

REQ

MON

CON

IN

OUT

Structuring formal control systems specifications for reuse Surviving hardware changes

INPUT

Structuring formal control systems specifications for reuse Surviving hardware changes

SOFT

Figure1.Atraditionalprocesscontrolmodel(center)andhowitiscapturedwiththefourvariablemodel

attemptingtocontrol.Thesensorsmeasurephysicalquantitiesintheprocess.Thesemeasurementsarepro-videdasinputtothesoftwarecontroller.Thecon-trollermakesdecisionsonwhatactionsareneededandcommandstheactuatorstomanipulatethepro-cess.Thegoalofthesoftwarecontrolistomaintainsomepropertiesinthephysicalprocess.Thus,un-derstandinghowthesensors,actuators,andprocessbehaveisessentialforthedevelopmentandevalua-tionofcorrectsoftware.Theimportanceofthissys-temsviewhasbeenrepeatedlypointedoutintheliter-ature[19,17,12].

Toreasonaboutthistypeofsoftwarecontrolledsystems,DavidParnasandJanMadeyde nedwhattheycallthefour-variablemodel(outsidesquareofFigure1)[19].Inthismodel,themonitoredvari-ables(MON)arephysicalquantitieswemeasureinthesystemandcontrolledvariables(CON)arephys-icalquantitieswewillcontrol.Therequirementsonthecontrolsystemareexpressedasamapping(REQ)frommonitoredtocontrolledvariables.Forinstance,arequirementmaybethat“incaseofacollision,therobotmustbackupandturn90degreesleft.”Natu-rally,toimplementthecontrolsoftwarewemusthavesensorsprovidingthesoftwarewithmeasuredvaluesofthemonitoredvariables(INPUT),forexample,anindicationiftherobothascollidedwithanobstacle.ThesensorstransformMONtoINPUTthroughtheINrelation;thus,theINrelationde nesthesensorfunc-tions.Toadjustthecontrolledvariables,thesoftwaregeneratesoutputthatactivatesvariousactuatorsthatcanmanipulatethephysicalprocess,forinstance,ameanstovarythespeedoftherobot.Theactuator

functionOUTmapsOUTPUTtoCON.Thebehaviorofthesoftwarecontrollerisde nedbytheSOFTrela-tionthatmapsINPUTtoOUTPUT.

Therequirementsonthecontrolsystemareex-pressedwiththeREQrelation;thesystemrequire-mentsshallalwaysbeexpressedintermsofquanti-tiesinthephysicalworld.Todevelopthecontrolsoft-ware,however,weareinterestedintheSOFTrelation.Thus,wemustsomehowre nethesystemrequire-ments(theREQrelation)intothesoftwarespeci ca-tion(theSOFTrelation).

TheINandOUTrelationsaredeterminedbythesensorsandactuatorsusedinthesystem.Forexample,todetermineiftherobothascollidedwithanobstaclewemayuseabumperwithmicro-switchesconnectedtoadigitalinputcard.Similarly,tocontrolthespeedofarobotwemayuseadigitaltoanalogconverterandDCmotors.ArmedwiththeREQrelation,theINrelation,andtheOUTrelationwecanderivetheSOFTrelation.Thequestionis,howshallwedothisandhowshallwestructurethedescriptionoftheSOFTrelationinalanguagesuchasRSML?

Asmentionedabove,thesystemrequirementsshouldalwaysbeexpressedintermsofthephysicalprocess.Theserequirementswillmostlikelychangeoverthelifetimeofthecontroller(orfamilyofsimi-larcontrollers).Thesensorsandactuatorsarelikelytochangeindependentlyoftherequirementsasthecon-trollerisreusedindifferentmembersofafamilyornewhardwarebecomesavailable;thus,allthreerela-tions,REQ,IN,andOUT,arelikelytochangeovertime.IfeitheroneoftheREQ,IN,orOUTrela-tionschange,theSOFTrelationmustbemodi ed.Toprovideasmoothtransitionfromsystemrequire-ments(REQ)tosoftwarespeci cation(SOFT)andtoisolatetheimpactofrequirements,sensor,andactu-atorchangestoaminimum,thestructureofthesoft-warespeci cationSOFTshouldbebasedheavilyonthestructureoftheREQrelation[18,23].

WeachievethisbysplittingtheSOFTrelationintothreepieces,IN,OUT,andSOFT(Figure2).INtakesthemeasuredinputandreconstructsanes-timateofthephysicalquantitiesinMON.TheOUTrelationmapstheinternalrepresentationofthecon-trolledvariablestotheoutputneededfortheactuatorstomanipulatetheactualcontrolledvariables.Given

theINandOUTrelations,theSOFT

rela-tionwillnowbeessentiallyisomorphictothesystemrequirements(theREQrelation)and,thus,berobustifitisreusedonanewplatform(manifestedaschanges

上一页第3页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email