Formal Development and Verification of a Distribut

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

FormalDevelopmentandVericationofaDistributedRailwayControlSystemAnneE.Haxthausen1andJanPeleska21Dept.ofInformationTechnology,Techn.UniversityofDenmark,DK-2800Lyngby,e-mailah@it.dtu.dk2BISS,UniversitatBremen,P.O.Box330440,D-28334Bremen,e-mailjp@informatik.uni-bremen.deAbstract.Inthisarticleweintroducetheconceptforadistributedrail-waycontrolsystemandpresentthespecicationandvericationofthemainalgorithmusedforsafedistributedcontrol.Ourdesignandveri-cationapproachisbasedontheRAISEmethod,startingwithhighlyab-stractalgebraicspecicationswhicharetransformedintodirectlyimple-mentabledistributedcontrolprocessesbyapplyingaseriesofrenementandvericationsteps.Concretesafetyrequirementsarederivedfromanabstractversionthatcanbeeasilyvalidatedwithrespecttosoundnessandcompleteness.Complexityisfurtherreducedbyseparatingthesys-temmodelintoadomainmodeldescribingthephysicalsysteminabsenceofcontrolandacontrollermodelintroducingthesafety-relatedcontrolmechanismsasaseparateentitymonitoringobservablesofthephysicalsystemtodecidewhetheritissafeforatraintomoveorforapointtobeswitched.1IntroductionThepresentmodernisationofEuropeanrailwaynetworksraisesalargevarietyofissuesrelatedtothedesignandvericationofrailwaycontrolsystems.Oneoftheseproblemsisthequestionhowtodesigncontrolsystemsforsmalllocalnetworksthatcanonlyoperateeectivelyifthecostsforinitialinstallation,operationandmaintenanceofthecontrolsystemarelow.Today’scentralisedinterlockingsystems{atleastthosewhichareavailableinGermany{arefartooexpensiveforsuchsmall(possiblyprivatised)networks.Apromisingapproachistodistributethetasksoftraincontrol,trainprotectionandinterlockingoveranetworkofcooperatingcomponentsusingthestandardcommunicationfacilitiesoeredbymobiletelephoneproviders.Ontheotherhand,adistributedcontrolconceptalsointroducesnewsafetyissuesthatcouldbedisregardedaslongascentralisedcontrolwasapplied:First,thenewcommunicationmediumrequiressecurityandreliabilitymechanismsthatwereunnecessaryforcentralisedsystemstransmittingcontrolcommandstosignalsandpointsoverwires.Second,thedistributionofacontrolalgorithmoverseveralcomponentsraisesnewdesignandvericationissues,sincetheconceptofaglobalstatespaceasavailableinacentralisedinterlockingsystemcannolongerbeimplemented.Inthisarticle,wewilldescribetheconceptofadistributedrailwaycontrolsystemconsistingofswitchboxes(SB),eachonelocallycontrollingapoint,andtraincontrolcomputers(TCC)residinginthetrainenginesandcollectingthelocalstateinformationfromswitchboxesalongthetracktoderivethedecisionwhetherthetrainmayenterthenexttracksegment.Thesystemconceptdoesnotrequiresignalsalongthetrack,sincethe\go/no-godecisionsareperformedandindicatedinthetraincontrolcomputers.Wegiveanoverviewoverthefor-malspecicationandvericationofthemaincontrolalgorithmexecutedbythedistributedcooperatingcontrolcomponents.Thesystemisdesignedtooperateonsimplenetworks,whichmeansinourcontextthattherearetwodistinguisheddestinationsAandB,suchthatateachtracksegmentofthenetworkthereisauniquelydeneddirectiontoreachAandB,respectively.Typically,thisdeni-tionappliestonetworkswhicharenothighlyfrequentedbytrainsandconnecttwomainstationswithsmallintermediatestations(Figure1).ABdirectionABdirectionBAFig.1.Simplerailwaynetwork.OurspecicationandvericationapproachisbasedontheRAISEformalmethodandtoolset[Rlg92,Rmg95]andfollowstheinvent-and-verifyparadigm.Toaddresssafetyissuesinasystematicwaythestandardprocedure(see[Sto96])separatingtheequipmentundercontrol{thatis,therailwaynetworkwithitstrains{fromthecontrolsystem{inourcase,thesetofTCCsandSBs{isapplied.Tothisend,werstdevelopabstractalgebraicspecicationsforthedomainmodel,i.e.,therailwaynetworkandthetrainstobecontrolled,andthesafetyrequirementsstatingthatthesystemmustnotperformatransitionintoahazardousstatewheretrainsmaycollideorderailingmightoccur.Theserequire-mentsareexpressedasconditionsabouttheobservablesofthedomainmodel.Usingstepwiserenementandaccompanyingvericationsteps,weintroduceadditionalobservablesthatmaybemonitoredbyacontrollergivingthe\canmove/cannotmoveconditionsforeachtrainandthe\canbeswitched/cannotbeswitchedconditionsforeachpoint.Thecompletenessandconsistencyoftheseconditionsisveriedbyprovingrenementrelationstothehigher-levelspecicationswhichalreadyhavebeenprovedtobeconsistentwiththeinitialsafetyrequirements.Therststageoftheinvent-and-verifydevelopmentendswhentheobservablesofthelastrenementneededtocontrolthesafetyoftrainmovementsandpointswitchingareimplementableinthesensethattheycan2betransformedintoaconcretestatespacethatmaybeconvenientlypartitionedamongasetofdistributedcooperatingprocesses.Thesecondstagespeciesandveriestheconcrete{i.e.,implementable{distributedcontrollermodelbyintroducingcommunicatingprocesseswhichrepresenttraincontrolcomput-ersandswitchboxes.TheTCCprocessescollectstateinformationfromtheSBprocessestomakethe\canmove/cannotmovedecisions.TheSBprocessesstoretherelevantstateinformationtotakethe\canbeswitched/cannotbeswitcheddecisionsfortheirlocalpoints.Theresultingcontrollerisanondeter-ministicdistribu

1 / 15
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功