automated verifjcation of rules and regulations in cad
play

Automated verifjcation of rules and regulations in CAD models of - PowerPoint PPT Presentation

Automated verifjcation of rules and regulations in CAD models of railway signalling and interlocking Bjrnar Luteberget and Claus Feyling 15th International Conference on Railway Engineering Design and Operation July 21, 2016 1 / 24 Talk


  1. Automated verifjcation of rules and regulations in CAD models of railway signalling and interlocking Bjørnar Luteberget and Claus Feyling 15th International Conference on Railway Engineering Design and Operation July 21, 2016 1 / 24

  2. Talk outline 1. Background and motivation 2. Semantic CAD using railML 3. Knowledge base design for verifjcation 4. Prototype tool integrating this verifjcation into existing engineering tools (RailCOMPLETE) 2 / 24

  3. Designing signalling and interlocking ◮ Constructing new railway lines or improving existing ones requires through planning to meet quality demands ◮ Computer-aided design (CAD) tools are widely used for producing documentation ◮ Creating a good design takes much skill and effort 3 / 24

  4. Technical regulations ◮ In our case study: Norwegian regulations from infrastructure manager Jernbaneverket 4 / 24

  5. Technical regulations Example from regulations: ◮ A home main signal shall be placed at least 200 m in front of the fjrst controlled, facing switch in the entry train path. 200 m ◮ Many regulations fall into one or more of the following categories: – Object properties – Topological layout properties – Geometrical layout properties – Interlocking specifjcation properties 5 / 24

  6. Objective Given a railway signalling and interlocking design, verify that it complies with regulations. Secondary objectives: ◮ Integrate with engineering/design tools – On-the-fmy verifjcation (“lightweight”) – Usable for engineers who are not formal methods experts ◮ Find suitable language for expressing regulations 6 / 24

  7. Talk outline 1. Background and motivation 2. Semantic CAD using railML 3. Knowledge base design for verifjcation 4. Prototype tool integrating this verifjcation into existing engineering tools (RailCOMPLETE) 7 / 24

  8. The railML XML standard data exchange format ◮ Thoroughly modelled infrastructure schema ◮ First presented by Nash et al. at COMPRAIL 2004 ◮ Development by international standard committee 8 / 24

  9. Embedding railML in CAD: “semantic CAD” ◮ Extending CAD objects with additional information gives railway-technical meaning to the symbols CAD document Model space (geometry Polyline Block reference corresponding to track horizon- (symbol for sig- ... nalling equipment) tal geometry) Extension Extension ... dictionary dictionary railML railML ... Complete fragment fragment railML document 9 / 24

  10. CAD verifjcation tool and tool chain ◮ Also, the structured data can be re-used for many other purposes, notably data exchange with other tools: – Interlocking code generation and verifjcation – Capacity simulation – 3D view, Building Information Modeling ◮ This leads us to the tool chain overview... 10 / 24

  11. Tool chain overview CAD program (design stage) ◮ Static verifjcation can CAD document User decision Veri fi cation discover violations of (station layout) issues GUI technical regulations early, as Shapes and Issue description (rule, objects, locations) the user is building the model symbols w/ attached railML ◮ Dotted boxes indicate external fragments programs Complete Interlocking railML speci fi cation ◮ More heavy-weight document Veri fi cation verifjcation, simulation, program railML Export testing, etc. benefjts from machine-readable data Machine- readable exhcange layout and speci fi cations Building Interlocking Capacity Information code analysis Modeling generation (OpenTrack, (BIM) (Prover) LUKS, (Autodesk, Treno) Bentley, Code etc.) 11 / 24 veri fi cation

  12. Talk outline 1. Background and motivation 2. Semantic CAD using railML 3. Knowledge base design for verifjcation 4. Prototype tool integrating this verifjcation into existing engineering tools (RailCOMPLETE) 12 / 24

  13. Formalization of regulations ◮ Formalize the following information – The CAD design (extensional information, or facts) – The regulations (intensional information, or rules) ◮ Use a solver which: – Is capable of expressing and verifying the regulations – Runs fast enough for on-the-fmy verifjcation 13 / 24

  14. Datalog ◮ Basic Datalog: conjunctive queries with fjxed-point operators (“SQL with recursion”) – Guaranteed termination – Polynomial running time (in the number of facts) ◮ Expressed as logic programs in a Prolog-like syntax: a ( X, Y ) :– b ( X, Z ) , c ( Z, Y ) � ∀ x, y : (( ∃ z : ( b ( x, z ) ∧ c ( z, y ))) → a ( x, y )) ◮ We also use: – Stratifjed negation (negation-as-failure semantics) – Arithmetic (which is “unsafe”) 14 / 24

  15. Encoding facts and rules in Datalog ◮ The process of formalizing the railway data and rules to Datalog format is divided into three stages: 1. Railway designs (station data) – facts 2. Derived concepts (used in several rules) – rules 3. Technical regulations to be verifjed – rules ◮ Now, more details about each stage... 15 / 24

  16. Derived concepts ◮ Derived concepts are defjned through intermediate rules ◮ Railway concepts defjned independently of the design ◮ Example: directlyConnected ( a, b ) ← ∃ t : track ( t ) ∧ belongsTo ( a, t ) ∧ belongsTo ( b, t ) , connected ( a, b ) ← directlyConnected ( a, b ) ∨ ( ∃ c 1 , c 2 : connection ( c 1 , c 2 ) ∧ directlyConnected ( a, c 1 ) ∧ connected ( c 2 , b )) . ◮ A library of concepts allows concise expression of technical regulations 16 / 24

  17. Technical regulations as Datalog rules ◮ Detecting errors in the design corresponds to fjnding objects involved in a regulation violation ◮ To validate the rules in a given design, we show that there are no satisfjable instances of the negation of the rule ◮ An example: – Home signal placement: topological and geometrical layout property for placement of a home signal 17 / 24

  18. Rule example ◮ A home main signal shall be placed at least 200 m in front of the fjrst controlled, facing switch in the entry train path. ◮ Uses arithmetic and negation 200 m isFirstFacingSwitch ( b, s ) ← stationBoundary ( b ) ∧ facingSwitch ( s ) ∧ ¬ ( ∃ x : facingSwitch ( x ) ∧ between ( b, x, s )) , ruleViolation ( b, s ) ← isFirstFacingSwitch ( b, s ) ∧ ( ¬ ( ∃ x : signalFunction ( x, home ) ∧ between ( b, x, s )) ∨ ( ∃ x, d, l : signalFunction ( x, home ) ∧ ∧ distance ( x, s, d, l ) ∧ l < 200) . 18 / 24

  19. Talk outline 1. Background and motivation 2. Semantic CAD using railML 3. Knowledge base design for verifjcation 4. Prototype tool integrating this verifjcation into existing engineering tools (RailCOMPLETE) 19 / 24

  20. Prototype tool implementation ◮ Verifjcation integrated in the RailCOMPLETE tool, based on Autodesk AutoCAD and XSB Prolog 20 / 24

  21. Case study ◮ Railway engineers working on CAD model of Arna station (Norconsult AS / RailComplete AS), have thoroughly modeled using railML attributes ◮ Challenge: engineers want to understand and modify rules to better cover regulations, add edge cases, etc. Programming in Datalog is still outside railway engineer’s competence. 21 / 24

  22. Running time Testing Arna Arna station phase A phase B Relevant components 15 152 231 Interlocking routes 2 23 42 Datalog facts 85 8283 9159 Running time ( s ) 0.1 4.4 9.4 ◮ Running time for verifjcation of a few properties: ≈ 1 – 10 s – More optimization needed for truly on-the-fmy verifjcation ◮ Challenge: Compute the verifjcation so fast that the engineering/design process benefjts from immediate feedback on changes. 22 / 24

  23. Summary ◮ We have demonstrated a way to automate checking of regulations compliance for railway signalling and interlocking designs ◮ Our tools have been integrated in an existing CAD design environment ◮ Datalog allowed us to express technical regulations concisely and perform effjcient verifjcation ◮ Advantages: – eliminate tedious tasks, like fjlling out check-lists – get instant feedback on design quality while editing – make use of railML, a standard for describing railway designs 23 / 24

  24. Future work ◮ Immediate feedback: use incremental evalulation of Datalog programs for effjciency – DRed algorithm, FBF algorithm – Tools such as XSB Prolog and RDFox support incr. eval. ◮ Involve engineers in knowledge base design: fjnd user-friendly input language – DSL for expressing railway regulations – Controlled Natural Language, à la Attempto. 24 / 24

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend