executable uml and mbse
play

EXECUTABLE UML AND MBSE What Executable UML does, how it is totally - PowerPoint PPT Presentation

EXECUTABLE UML AND MBSE What Executable UML does, how it is totally di ff erent from UML, and how it fits with other Executable languages Leon Starr leon_starr@modelint.com MODEL INTEGRATION LLC www.modelint.com 1 LiU Seminar xUML MBSE -


  1. EXECUTABLE UML AND MBSE What Executable UML does, how it is totally di ff erent from UML, and how it fits with other Executable languages Leon Starr leon_starr@modelint.com MODEL INTEGRATION LLC www.modelint.com 1 LiU Seminar xUML MBSE - November 16, 2017

  2. FUNDAMENTAL IDEA OF MODELING A model isn’t the thing you are modeling. To be useful, a model must omit certain aspects of the real world subject to focus on the details of interest. 2-2 LiU Seminar xUML MBSE - November 16, 2017

  3. EXCLUDED DETAILS ARE STILL IMPORTANT Just because a detail is Layout diagram systematically ignored, doesn’t mean that it is not important Schematic Focuses on layout geometry Is applied to schematic Focuses on component properties and connectivity Excludes layout details 3-3 LiU Seminar xUML MBSE - November 16, 2017

  4. MODELING LANGUAGES, PURPOSES AND REQUIRED SKILLS What about UML? electronics/optronics Simulink control (usage at SAAB) physical systems structure 4-5 LiU Seminar xUML MBSE - November 16, 2017

  5. UML PURPOSE AND SKILLS Requirements modeling UML profiles High level code Lower level code Just sequences Use cases Lot’s of other uses Executable UML UML is not a modeling language. It is a standardized set of of object-oriented notations for many purposes. 5-4 LiU Seminar xUML MBSE - November 16, 2017

  6. EXECUTABLE UML Modeling language Our purpose is to model requirements imposed by the real world: Information Rules and constraints Real world behavior white papers Essential computation book (shlaer-mellor method) and to separate these from the platform. Mathematical, executable semantics for each model type Doesn’t presume object-oriented implementation 6-3 LiU Seminar xUML MBSE - November 16, 2017

  7. AN EXAMPLE XUML MODEL 7 LiU Seminar xUML MBSE - November 16, 2017

  8. AIR TRAFFIC CONTROL EXAMPLE Subject matter (domain) ATC Center OAK21C SFO37B Gwen ATC67 Rating: B DS1 Loc: Front Login: Cap: 20 2013-9-27T11:00 (On Duty) SJC18C DS3 (not in use) Loc: Center Ianto Cap: 30 ATC51 Rating: C Last shift ended: Toshiko 2013-9-26T17:00 ATC53 (Not logged in) Rating: A Login: 2013-9-27T15:00 (On Duty) DS2 Loc: Front Cap: 45 8 LiU Seminar xUML MBSE - November 16, 2017

  9. RULES / REQUIREMENTS 1) A controller can not direct air traffic while off duty. 2) An on duty controller must be logged into a duty station. 3) A duty station may or may not be available. 4) A control zone must have its traffic directed by one air traffic controller at all times. 5) An air traffic controller may not work a shift longer than two hours and fifteen minutes. 9-6 LiU Seminar xUML MBSE - November 16, 2017

  10. THE CLASS MODEL 0..* 0..1 10 LiU Seminar xUML MBSE - November 16, 2017

  11. POPULATION Air Traffic Controllers ID {I} Name Rating Superclass table 53 Toshiko A ATC53 Same object 67 Gwen B ATC67 51 Ianto C ATC51 On Duty Controllers Off Duty Controllers ID {I, R1} Time logged in Duty Station {R2} ID {I, R1} Last shift ended 53 9/27/13 15:00 S2 ATC53 DS2 51 9-26-13 17:00 ATC51 67 9/27/13 11:00 S1 ATC67 DS1 Duty Station Subclass tables Number {I} Location Capacity User {R3} SFO37B DS1 S1 Front 20 67 Air Traffic Controllers DS3 S3 Center 30 None SJC18C DS2 S2 Front 45 53 ATC53 Control Zones Time logged in Last shift ended 9/27/13 15:00 9-26-13 17:00 ATC67 ATC51 Name Traffic Controller Time logged in SJC18C 30 CZ3 27 ATC53 9/27/13 11:00 CZ2 18 ATC53 SFO37B 25 Off Duty On Duty OAK21C 15 CZ1 9 ATC67 Controllers Controllers OAK21C 11 LiU Seminar xUML MBSE - November 16, 2017

  12. LOGIC AND CONSTRAINTS O ff Duty ATC goes On Duty? 0..* 0..1 12-2 LiU Seminar xUML MBSE - November 16, 2017

  13. LOGIC AND CONSTRAINTS If there is only one On Duty Controller, can he or she go O ff Duty? 0..* 0..1 12-3 LiU Seminar xUML MBSE - November 16, 2017

  14. LOGIC AND CONSTRAINTS If every Control Zone is being directed, can another O ff Duty Controller log in? 0..* 0..1 12-4 LiU Seminar xUML MBSE - November 16, 2017

  15. LOGIC AND CONSTRAINTS Do we know when a shift should end? 0..* 0..1 12-5 LiU Seminar xUML MBSE - November 16, 2017

  16. LOGIC AND CONSTRAINTS Do we know when a shift should end? 0..* Shift Specification 0..1 {I}: Name {(} : Name Min break : Duration Max shift : Duration 12-6 LiU Seminar xUML MBSE - November 16, 2017

  17. EXCLUDED DETAILS States, algorithms, functions are filtered out Platform specific features are filtered out Implementation choices are filtered out Lean modeling language – minimal symbols So you can define and evaluate the application logic without distraction 13-5 LiU Seminar xUML MBSE - November 16, 2017

  18. MODELING BEHAVIOR WITH STATES AND ACTIONS migrate to On Duty Controller my station .= Duty Station( Number: in.Station ) Actions link /R3/my station Time logged in = _now.HMS Logged in -> me In use -> my station State models Class Model 14 LiU Seminar xUML MBSE - November 16, 2017

  19. Cannot go on duty O ff duty OFF DUTY Ready for duty( Station ) Verifying Adequate Break the shift spec .= Shift Specification() // selects singleton Logging Out if ( _now - Last shift ended < the shift spec.Min break ) Log in( in.Station ) -> me User leaving -> /R3/Duty Station else migrate to Off Duty Controller Cannot go on duty -> me Last shift ended = _now.HMS Off duty -> me Log out Log in( Station ) Logging In migrate to On Duty Controller my station .= Duty Station( Number: in.Station ) & /R3/my station // link station Time logged in = _now.HMS Logged in -> me In use -> my station Verifying Full Handoff if /R1/On Duty Controller/R2/Control Zone{ Must handoff zones -> me UI.Control Zones Active( ATC: ID ) Must hand o ff zones } else Log out -> me Logged in ON DUTY Ready for a break Hando ff complete Hando ff ( Zone, Controller ) Handing off Control Zone hoff zone .= /R2/Control Zone( Name: in.Zone ) if in.Controller == ID UI.Cannot handoff to self( Controller: in.Controller ) else { new controller .= On Duty Controller( ID: in.Controller ) swap hoff zone/R2/On Duty Controller with new controller !new missing: UI.Unknown controller( Controller: in.Controller) !old missing: UI.Zone not handled by( Controller: ID) } // swaps controllers and checks for errors Handoff complete -> me 15 LiU Seminar xUML MBSE - November 16, 2017

  20. EXCLUDED DETAILS How execution is implemented How synchronization is implemented Distribution across processes/processors 16-4 LiU Seminar xUML MBSE - November 16, 2017

  21. ACTIONS – EXCLUDED DETAILS Logging In migrate to On Duty Controller my station .= Duty Station( Number: in.Station ) & /R3/my station // link station Time logged in = _now.HMS Logged in -> me In use -> my station Non-essential ordering of computation Data access implementation 17-3 LiU Seminar xUML MBSE - November 16, 2017

  22. FOUNDATION SEMANTICS of the xUML language 18 LiU Seminar xUML MBSE - November 16, 2017

  23. CLASS MODEL SEMANTICS A class is a set of things in the real world such that all things in the set: Aircraft have the same characteristics Tail number {I} Altitude exhibit the same behavior Speed Heading are constrained by the same rules Aircraft Tail Number {I} Altitude Airspeed Heading 19-6 LiU Seminar xUML MBSE - November 16, 2017

  24. RELATIONAL THEORY SET THEORY FUNCTIONS PREDICATE LOGIC forall x such that … y = f(x) 20 LiU Seminar xUML MBSE - November 16, 2017

  25. A CLASS PREDICATE ➤ Each class in your model is an n-ary predicate where n is the number of attributes ➤ An ATC has an ID i , a Name n and a Rating r ➤ We can turn this into a proposition (true/false statement) by instantiating it ➤ ATC53 is named Ianto and has Rating B (true/false statement) ➤ If the instance does not exist, it is false 21-6 LiU Seminar xUML MBSE - November 16, 2017

  26. STATE MODEL SEMANTICS Aircraft Tail number {I} Altitude abstraction Airspeed Heading Position Same characteristics, rules, behavior abstraction Common lifecycle 22-2 LiU Seminar xUML MBSE - November 16, 2017

  27. THE THEORY Moore state machine Leslie Lamport Time, Clocks, and the Ordering of Events in a Distributed System Video animation of the platform independent synchronization Also described here rules 23-4 LiU Seminar xUML MBSE - November 16, 2017

  28. PLATFORM INDEPENDENT EXECUTION RULES What happens when event occurs while instance is executing a state activity? Are events prioritized? What is the duration of an activity? Can event arrival order be guaranteed? 24 LiU Seminar xUML MBSE - November 16, 2017

  29. ACTION SEMANTICS ➤ Access data from class model ➤ Based on relational semantics ➤ Send/receive event data on state model ➤ Follows state machine execution rules ➤ Perform computations ➤ Essential sequence only ➤ No data implementation assumptions 25 LiU Seminar xUML MBSE - November 16, 2017

  30. THE THEORY Data access: Relational operations Sequencing: Data flow semantics Now (system variable) Off Duty Controller Data types: Type theory Time logged in Write in.Station id me On Duty Controller Migrate On Duty Controller my station Select R1 me Link Duty Station Logged in R3 me Signal In use Signal 26 LiU Seminar xUML MBSE - November 16, 2017

  31. DOMAINS 27 LiU Seminar xUML MBSE - November 16, 2017

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