时间自动机课件_第1页
时间自动机课件_第2页
时间自动机课件_第3页
时间自动机课件_第4页
时间自动机课件_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论