




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OutlineThetheoryofTimedautomataAcasestudyFirstintroducedbyRajeevAlurandDavidL.Dillin1990,RajeevAlurandDavidL.Dill.Automataformodelingreal-timesystems.InProceedings,
17thInternationalColloquiumonAutomata,LanguagesandProgramming,1990.R.AlurandD.L.Dill.:`Atheoryoftimedautomata‘InTheoret.Comput.Sci.,Vol.126,No.2,1994,pp.183-235Afinite-stateBuchiautomatonextendedwithasetofrealvaluevariablesTimedsafetyautomata
OffLightBrightPressPressPressPressWANT:ifpressisissuedtwice
quicklythenthelightwillgetbrighter;otherwisethelightisturnedoff.
SimpleLightControlSimpleLightControlOffLightBrightSolution:Addareal-valuedclockx
x:=0x<=3x>3PressPressPressPressAddingcontinuousvariablestostatemachinesTimedAutomatanmaClocks:
x,yx<=5&y>3x:=0GuardBooleancombinationofcomparisonswithInteger/rationalboundsResetActionperformedonclocks(
n,x=2.4,y=3.1415)
(
n,x=3.5,y=4.2415)wait(1.1)Transitions(
n,x=2.4,y=3.1415)
(
m,x=0,y=3.1415)aState
(
location,x=v,y=u)wherev,uareinRAction
forsynchronizationnmaClocks:
x,yx<=5&y>3x:=0Transitions:(
n,x=2.4,y=3.1415)
(
n,x=3.5,y=4.2415)
wait(1.1)(
n,x=2.4,y=3.1415)
wait(3.2)x<=5y<=10LocationInvariantsg1g2g3g4
Invariantsensureprogress!!AddingInvariantsTimedAutomata:SyntaxTimedAutomata:atuple(L,l0,A,V,I,E)L:afinitesetoflocationsl0:initiallocationsA:afinitesetoflabels(alphabet)V:afinitesetofclockvariablesI:alocationconstrainfunctionE:afinitesetofedges.Eachedgehasasourcelocationl,atargetlocationl‘Guardg(variableconstrain)LabelainA(elabelsalsoallowed)AsubsetuofclockvariablestoberesetTimedAutomata:Semantics
ForatimedautomatonA,defineaninfinite-statetransitionsystemS(A)
States
Q:astateqisapair(l,v),wherelisalocation,andvisaclockvector,mappingclocksinXtoR+,satisfyingI(l)
(l0,v)is
initialstate
iflisinV0andv(x)=0
Elapseoftimetransitions:foreachnonnegativerealnumberd,(l,v)-d->(l,v+d)ifbothvandv+d
satisfyI(l)Locationswitchtransitions:(l,v)-a->(l’,v’)ifthereisanedge(l,a,g,l,l’)suchthatvsatisfiesgandv’=v[l:=0]ParallelCompositionTheproductofautomataWeusetimedautomatanetworktomodelthemProductConstructionABx<4x:=0x>3aba|a,x:=0abcCDy<4y:=0y>3bb|b,y:=0bcACBCx<4x:=0x>3ab,y:=0a|a,x:=0ADy<4y>3cBDx<4y<4x>3,b|x>3,b,y:=0a|a,x:=0y>3ca,x:=0Verification
SystemmodeledastimedautomatanetworksPropertiesspecifiedasCTLformulars.VerificationproblemreducedtoreachabilityortotemporallogicmodelcheckingApplicationsReal-timecontrollersAsynchronoustimedcircuitsSchedulingDistributedtiming-basedalgorithmsspecificationofthegoal系统需求现实environmentPLCprogramPLCfulfilsVerificationgoalspecificationoftheenvironmentspecificationofthecontrol系统规范结构描述
plantdiagramPLCprogramModelcheckingspecificationofthegoal系统需求automatonfortheplantautomatonfortheprogramModelcheckingspecificationofthegoal系统需求automatonfortheplantautomatonfortheprogramT_plant||T_program|=Property模型检测:APLCControlSystemInTheaterSteevecontroller:Partofatheatermachinerycontrolsystem
Steeve
usedforpullinglightandscreen,canmoveupanddown,locatedatanypresetheight,poweredbymotor.Range15-195ControlmodeAutomatic:giventhetargetheight,thesteeveachieveautomaticlly.Manual:
usercanletthesteevemoveup,downandstop
StructureofSteeveControlSystemRequirementsInnaturallanguageThesteevestopsattherequiredheight.Thesteevemustmoveunderthesafetyrange,cannotexceedtheupperandlowerbounds.Makesurethewholeoperationcanbefinishedwithin60s.Modelingbytimedautomata9signalsaredefinedforsynchronization,theyarestop,start,up,down,impulse,inc,cw,acw
andsp.Onesignalissharedbytwocomponentsfortheirsynchronization
Therelationshipoftheheightandtheimpulsenumberis:impulse_number=height*21timeunitis0.01sUserAutomatonFiniteautomataa=1:automaticmode.
a=0:manualmode
Ifwewanttosimulateasequenceofoperations,canbemodeledasTAMotorAutomatonmotorwithfixedspeedsensorissuesanimpulseevery2timeunits.Constrainformulay<=2belongstoI(rt_acw)Cyclictransition,y
isresetto0,signalimpulseisissuedeverytwotimeunitesuntilstopordersp
isreceivedSensorAutomatonThereistimedelaybetweensensorreceivingimpulseandsendinginc
tocontroller.Thedelayisbelow1timeunite.Clockvariablex
isusedtorepresentthetimedelay.ControllerAutomatonFunctionCmp,convert,nhigh,nlow,chVariablesh_req:requiredheighth_curr:currentheightmtargetcountingnumberncurrentcountingnumberControllertraces8traces,halfforrisingup,halfforfallingdown.AutomaticmodeUsergivesarequiredheight,thesteevereachesthere.(0,3,5,7,0)Beforereachingthere,usersuddenlystopit.(0,3,5,8,0)ManuelmodePressup,laterpressstop.(0,1,5,8,0)Forgettopressstop,whenreachthebound,motorisforcedtostop.(0,1,5,10,0)PropertyverificationUsetoolUppaalAtimedautomataverificationtoolPropertiesdescriptionAsimpliedversionofCTL:temporaloperatorsareF(<>)andG([])PropertyverificationthesystemshouldbedeadlockfreeA[]notdeadlockIntheautomaticmode,whentheusersetstherequiredheight,thesteeveshouldeventuallyreac
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新型纳米复合材料-深度研究
- 气候适应型良种培育-深度研究
- 广东技术师范大学《内外科护理学B(Ⅰ)》2023-2024学年第二学期期末试卷
- 哈尔滨城市职业学院《留学指导与实践》2023-2024学年第二学期期末试卷
- 广东创新科技职业学院《智慧城市信息系统建设与实践》2023-2024学年第二学期期末试卷
- 石河子工程职业技术学院《玉雕销售与市场调研》2023-2024学年第二学期期末试卷
- 江海职业技术学院《材料科学基础A》2023-2024学年第二学期期末试卷
- 烟台科技学院《药学英语》2023-2024学年第二学期期末试卷
- 企业设立资金投入合同范本
- 货物运输汽车租赁合同
- EPC项目采购管理方案
- 旅游景区旅游安全风险评估报告
- 门窗安装工程投标书范本(二)
- 追觅科技在线测评题
- 智鼎在线测评107题
- 病历书写规范与住院病历质量监控管理制度
- 12诗词四首《渔家傲-秋思》公开课一等奖创新教学设计 初中语文九年级下册
- 金矿承包协议合同2024年
- 解读国有企业管理人员处分条例(2024)课件(全文)
- 创新创业基础-理论、案例与训练(大学生创新创业教育课程)全套教学课件
- TD/T 1072-2022 国土调查坡度分级图制作技术规定(正式版)
评论
0/150
提交评论