logical behavior modeling for uml
play

Logical Behavior Modeling for UML: Behavior as Composite Structure - PowerPoint PPT Presentation

Logical Behavior Modeling for UML: Behavior as Composite Structure Conrad Bock, U.S. National Institute of Standards and Technology James Odell, Thematix Tim Weilkiens, oose Innovative Informatik James Baker, Sparx Systems Antoine Lonjon,


  1. Logical Behavior Modeling for UML: Behavior as Composite Structure Conrad Bock, U.S. National Institute of Standards and Technology James Odell, Thematix Tim Weilkiens, oose Innovative Informatik James Baker, Sparx Systems Antoine Lonjon, MEGA September 13, 2009 (revised July 16, 2010 for DODAF DM2 WG, Dec 31, 2013 for JPL) 1

  2. Overview § Motivation § Logical modeling § Composite structure § Behaviors as composites – Sequencing • Aside on SysML extensions for logical modeling – Events – Participants – Flows (object flows and messaging) • External participants • Flow ordering 2 • Composition with flows and participants

  3. Motivation § UML has three behavior diagrams. – Activity, state, interaction. § Three underlying metamodels. § Very little integration. § Develop an integrated behavior metamodel for the three notations. – Implies focus on meaning rather than notation. 3

  4. Logical Modeling § Motivation § Logical modeling § Composite structure § Behaviors as composites – Sequencing • Aside on SysML extensions for logical modeling – Events – Participants – Flows (object flows and messaging) • External participants • Flow ordering 4 • Composition with flows and participants

  5. Quantitative Modeling § Quantitative modeling – Numerical formulas (equations) – Dynamic and stochastic simulations § Used for: – Calculating or simulating numeric values and probabilities. – Deriving new numerical formulas. 5

  6. Logical Modeling § Logical modeling is about categorizing things and relations between things ... – This document is a requirement, this other one is a design, and the second satisfies the first. § … and keeping these categorizations consistent. – Requirements or designs are changed, does the satisfies relation still hold? – If not, what would make it hold again? 6

  7. Categories = Conditions for Things in the Category § Things “fall into” categories. § Categories have conditions for what can and cannot fall into the category. ThingsThatFloat Category { x : density(x) < density(water) } Condition for things falling into the category. Individual things that fall into the category Things that don’t 7

  8. Categories only Specify Sets, they are not sets themselves § Which things fall into a category can change over time without changing the category (condition). – New things created, some things destroyed, conditions met or unmet over time. – Not true for set membership. ThingsThatFloat { x : density(x) < density(water) ^ exists(x) } New plastic bottle Hole in hull Amphibious passenger cars invented 8

  9. Applied to Language Semantics § Modeling language semantics = How systems will be and behave when they are built according to a user model. Ships Category { Specifications for ships } Semantics Condition for things falling into the category. Individual things that fall into the category Things that don’t 9

  10. Category Generalization § = Everything in one category is in another. ThingsThatFloat { x : density(x) < density(water) ^ exists(x) } UML notation for Generalization Ships (= Ships Float) { Specifications for ships minus floating } Additional conditions on ships besides floating. Subsets of individual things 10

  11. Formal Languages for Categorization § First order logic and some of its specializations (“fragments”). § Description Logic / Ontology Web Language (OWL / SROIQ DL). § Model-theoretic semantics (formally relating categories and things falling into them). § Widely supported by efficient automated reasoners. 11

  12. Informal Languages for Categorization § Many of these. § Unified Modeling Language and its extensions. – Categorization semantics added in UML 2, alongside object-orientation. – Specified in free text, for example: • “An instance of a Classifier is also an (indirect) instance of each of its generalizations.” § OWL/DL has been applied to formalize UML semantics. – OWL 2 has a specialization for UML-like 12 languages.

  13. Categorization in UML § Repeated categorization in UML = metalevels. UML term / notation for Metamodel category (category / Abstract syntax Class for categories) (M2) ThingsThatFloat User-defined Model (M1) categories Ships Instances Individual Santa Maria : (M0) thing 17

  14. Categorization applied to UML Behaviors § Behaviors are – Classes (modeled by M2 generalization). – specialized at M1 by user. – occur (execute, are performed) at M0. Class Metamodel UML Behaviors / Abstract syntax (M2) are categories Behavior Take Picture #1 User-defined Model behaviors (M1) Take Picture #2 Occurrences Individual Take Picture 18 (M0) 3/15/09 2pmET : occurrence

  15. Behavior Generalization TakePicture #1 TakePicture #2 = occurrence § Venn diagram illustration of previous 19 example.

  16. Behavior Generalization TakePicture #2 TakePicture #1 Multi Shoot Log Focus Shoot Focus Follows Follows Follows only #1 both only #3 Behavior Log Shoot SingleFocus MultiFocus Take Picture Time § By the definition of generalization: – Every occurrence (instance) of the specialized behavior 20 (class) is an occurrence of the general behavior.

  17. Composite Structure § Motivation § Logical modeling § Composite structure § Behaviors as composites – Sequencing • Aside on SysML extensions for logical modeling – Events – Participants – Flows (object flows and messaging) • External participants • Flow ordering 21 • Composition with flows and participants

  18. Composite Structure § Whole-part relationships can modeled as associations, but part- part relationships cannot. Attempt at part-part Whole-part Satellite ctrl cam Model controls (M1) Camera Controller Controlling camera in RussianSatellite: USSatellite: Instances different (M0) satellite ctrl cam ctrl cam Controller in Controller in Camera in Camera in 22 USSatellite: RussianSat: RussianSat: controls: USSatellite:

  19. UML Composite Structure § New diagram in UML 2. – Rectangles are properties typed by classes. – Lines are connectors typed by associations class Satellite : controls Model cam : Camera ctrl : Controller (M1) RussianSatellite: USSatellite: Instances (M0) ctrl cam ctrl cam Controller in Controller in Camera in Camera in controls controls USSatellite: RussianSat: RussianSat: USSatellite: 23 Controlling camera in same satellite

  20. Whole-part Metamodeling type Metamodel owned Attribute (M2) Class Property Model cam Camera Satellite (M1) Instances US US cam (M0) Satellite : Camera : 24

  21. Part-part Metamodeling type type Association owned Metamodel Connector owned Attribute /role (M2) Class Property Connector Satellite Model : controls (M1) cam: Camera ctrl: Controller cam US Camera: Instances US controls (M0) Satellite : ctrl US Controller: 25

  22. Formal Languages for Composite Structure § Area of ongoing research. § Less restrictive specializations of first order logic (larger fragments). § See complex role inclusion in OWL / SROIQ DL. § Rule (non-monotonic) languages. 26

  23. Behaviors as Composites § Motivation § Logical modeling § Composite structure § Behaviors as composites – Sequencing • Aside on SysML extensions for logical modeling – Events – Participants – Flows (object flows and messaging) • External participants • Flow ordering 27 • Composition with flows and participants

  24. UML Composite Structure Applied to UML Behaviors* § Whole-part – Activities have actions, some calling behaviors. – State machines have state behaviors and submachines. – Interactions have interaction uses, messages, and actions. § Part-part – Activities have control and object flow between actions. – State Machines have transitions between states. – Interactions have general orderings between messages. 28 * Not in UML, a bit in SysML.

  25. Whole-part for Behaviors type owned Attribute Class Property Metamodel (M2) ownedStep Step Behavior happens happens Behavior During Before Occurrence Model (M1) step1 Focus TakePicture Occurrences step1 TakePicture Focus (M0) 3/15/09 10-12pmET : 3/15/09 10-11amET : § Steps: – Are properties ... – typed by behaviors at M1, and specialized from a general temporal relation (happensDuring) … 29 – that have “suboccurrences” as values at M0.

  26. Part-part for Behaviors type type Association owned Connector owned /role Attribute Class Property Connector Metamodel (M2) /fromStep ownedStep Step Succession Behavior /toStep TakePicture Model : happensBefore (M1) step1 : Focus step2 : Shoot 1 1 step1 Focus 3/15/09 10-11amET : Occurrences TakePicture happensBefore (M0) 3/15/09 10-12pmET : step2 Shoot 3/15/0911-12pmET : § Successions: – Are connectors … – typed by general temporal relation at M1 (happensBefore) … 30 – resulting in links between suboccurrences at M0.

  27. Aside on SysML Extensions for Logical Modeling § Motivation § Logical modeling § Composite structure § Behaviors as composites – Sequencing • Aside on SysML extensions for logical modeling – Events – Participants – Flows (object flows and messaging) • External participants • Flow ordering 31 • Composition with flows and participants

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