context aware factors in rearchitecting two level models
play

Context aware factors in rearchitecting two-level models into - PowerPoint PPT Presentation

Context aware factors in rearchitecting two-level models into multilevel models Mira Balaban, Igal Khitron, Azzam Maraee Ben-Gurion University Israel 1 MULTI 2018 October 2018 Essential MLM rearchitecting The type-Instance pattern and its


  1. Context aware factors in rearchitecting two-level models into multilevel models Mira Balaban, Igal Khitron, Azzam Maraee Ben-Gurion University Israel 1 MULTI 2018 October 2018

  2. Essential MLM rearchitecting The type-Instance pattern and its MLM rearchitecture: Improved accidental complexity in the MLM: • reduce instance size • Book is upgraded from a dynamic instance into a conceptual model element 2 MULTI 2018 October 2018

  3. Essential MLM rearchitecting with context • Direct clients • Indirect associations • Related classes • Class hierarchy: Ancestors, descendants 3 MULTI 2018 October 2018

  4. Context “ peculiarities ” Mixed class hierarchy with Association cycle with ProductType and Product ProductType and Product ProductType has descendants 4 MULTI 2018 October 2018

  5. Context  levels? How? ? Level of types of types ▪ Association cycle classification ▪ Mixed class hierarchy ▪ Descendants ? Pro ? duc tTyp Difficult: e What is a (the) best ? context aware MLM rearchitecture? ? Pro du c Level of types 5 MoDELS-2011 October 11

  6. Context aware MLM rearchitecture ▪ Need to decide how/where to place context elements ▪ Decisions affect/impact on quality of MLMs No silver bullet – no best context aware MLM Accidental complexity is affected by multiple factors Intention: ▪ Single out factors that affect quality ▪ determine accidental complexity of the MLM ▪ Suggest quantitative measures for the factors ▪ measure accidental complexity of the MLM Observation: • Factors can be inter-related • Overlapping • Conflicting • Modelers need to state ideals • Select factors that maximize the modeler ’ s ideals 6 MULTI 2018 October 2018

  7. Factor redundancy : Measure duplication • level 2: OrderItem, Bundle join ProductType • level 1: ProductType has 4 member subtypes • Level 0: Some objects exactly/ exactly/ 7 MULTI 2018 October 2018

  8. Factor redundancy : Measure duplication • OrderItem, Bundle – no subtype classification Singletons duplication redundancy • orders duplicated by 4 associations • contains duplicated by 4 associations <<Singleton>> <<Singleton>> exactly/ Duplication = 1 2 6 10 8 MULTI 2018 October 2018

  9. Factor refinement : dual to redundancy Refinement is the “ alter ego ” of redundancy : An unnecessary duplication can turn into a desirable refinement Additional constraint : A bundle cannot include both a PCStan and PCDel <<Singleton>> <<Singleton>> Xor Duplication = 6 9 MULTI 2018 October 2018

  10. Factor Upward Level-Coupling ( ULC ): A level is coupled with multiple higher levels • A level might be affected by changes in multiple higher levels • Reminds the divergent change software smell Level 0 is affected by levels 1 and 2: • Bundle • Or1 • Oi1 • PCDel Suggested ULC measures: ULC = 1 10 MULTI 2018 October 2018

  11. More factors and measures for MLM rearchitecture • Downward Level Coupling (DLC ): A level coupled with multiple lower levels – Dual to ULC – Reminds the shotgun surgery software smell – DLC measures: : • Level instability : A level of types is changed following state changes in a data level – Types are relatively stable – Objects are frequently changed – snapshots – Measure: 11 MULTI 2018 October 2018

  12. More factors and measures for MLM rearchitecture • Level instability : A level of types is changed following state changes in a data level – Types are relatively stable – Objects are frequently changed -- snapshots – Measure: – Add a bundle 12 MULTI 2018 October 2018

  13. More factors and measures for MLM rearchitecture • Conceptualization : make conceptual elements first-class citizens in the model – Type-Instance relationship MLM gains – Attribute inheritance control – Association inheritance control – Dynamic type creation – Lose of visibility MLM lose • Addition of operation • Duplicate client request • Compositionality : a model is composed from component models – Compositional management – Reuse – Measure: like ULC and DLC 13 MULTI 2018 October 2018

  14. More factors and measures for MLM rearchitecture • Direct mapping : directly reflect intended abstractions – Level incohesion: caused by mixture of objects and types • Understandability : a multilevel model is more difficult to understand than a 2-level model – Number of levels – Number of constraints • Implicit • explicit – Inter-level constraints • Explicit • Inter-level associations • Leap-potency 14 MULTI 2018 October 2018

  15. Factor conflicts • MLM might – increase duplication – Reduce visibility (conceptualization) • Direct mapping might increase – upward level coupling, – downward level-coupling, – level incohesion • Direct mapping and conceptualization might reduce – compositionality and understandability Modelers need to state ideals • Select factors that maximize the modeler ’ s ideals 15 MULTI 2018 October 2018

  16. MLM transformation, guided by modeling ideals The directives (ideals): Direct mapping; Understandability Backward inter-level association Accidental complexity = 7 16 MULTI 2018 October 2018

  17. Conclusion and future work • MLM needs I n-depth study of management methods – – Development methodology – User study • Careful analysis of quality – modeling elements in an MLM environment – E.g., use backward inter-level association, to preserve client visibility • Automation techniques – E.g., modeling-ideals-based MLM transformations 17 MULTI 2018 October 2018

  18. Thank you 18 MULTI 2018 October 2018

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