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

context aware factors in rearchitecting two level models
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Context aware factors in rearchitecting two-level models into multilevel models

Mira Balaban, Igal Khitron, Azzam Maraee

Ben-Gurion University Israel

1 October 2018 MULTI 2018

slide-2
SLIDE 2

Essential MLM rearchitecting

The type-Instance pattern and its MLM rearchitecture:

2

Improved accidental complexity in the MLM:

  • reduce instance size
  • Book is upgraded from a dynamic instance into a conceptual

model element

October 2018 MULTI 2018

slide-3
SLIDE 3

Essential MLM rearchitecting with context

3

  • Direct clients
  • Indirect associations
  • Related classes
  • Class hierarchy: Ancestors, descendants

October 2018 MULTI 2018

slide-4
SLIDE 4

Context “peculiarities”

4 October 2018 MULTI 2018

Association cycle with ProductType and Product Mixed class hierarchy with ProductType and Product ProductType has descendants

slide-5
SLIDE 5

October 11 5 MoDELS-2011

Pro duc tTyp e Pro du c

Context  levels? How?

Level of types of types Level of types ▪ Association cycle classification ▪ Mixed class hierarchy ▪ Descendants

?

? ? ? ?

Difficult:

What is a (the) best context aware MLM rearchitecture?

slide-6
SLIDE 6

Context aware MLM rearchitecture

▪ Need to decide how/where to place context elements

▪ Decisions affect/impact on quality of MLMs

6 October 2018 MULTI 2018

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

No silver bullet – no best context aware MLM Accidental complexity is affected by multiple factors

slide-7
SLIDE 7

Factor redundancy: Measure duplication

  • level 2: OrderItem, Bundle join ProductType
  • level 1: ProductType has 4 member subtypes
  • Level 0: Some objects

7 October 2018 MULTI 2018

exactly/ exactly/

slide-8
SLIDE 8

Factor redundancy: Measure duplication

8 October 2018 MULTI 2018

  • OrderItem, Bundle – no subtype classification

Singletons

<<Singleton>>

duplication redundancy

  • rders duplicated by 4 associations
  • contains duplicated by 4 associations

Duplication = 1

<<Singleton>>

2 6 10

exactly/

slide-9
SLIDE 9

Factor refinement: dual to redundancy

9 October 2018 MULTI 2018

Refinement is the “alter ego” of redundancy: An unnecessary duplication can turn into a desirable refinement Xor

<<Singleton>>

Duplication = 6

<<Singleton>>

Additional constraint: A bundle cannot include both a PCStan and PCDel

slide-10
SLIDE 10

Factor Upward Level-Coupling (ULC):

A level is coupled with multiple higher levels

10 October 2018 MULTI 2018

  • A level might be affected by changes in multiple higher levels
  • Reminds the divergent change software smell

Suggested ULC measures: Level 0 is affected by levels 1 and 2:

  • Bundle
  • Or1
  • Oi1
  • PCDel

ULC = 1

slide-11
SLIDE 11
  • Downward Level Coupling (DLC): A level coupled with multiple lower levels

– Dual to ULC – Reminds the shotgun surgery software smell – DLC measures: :

More factors and measures for MLM rearchitecture

11 October 2018 MULTI 2018

  • 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:

slide-12
SLIDE 12
  • 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

More factors and measures for MLM rearchitecture

12 October 2018 MULTI 2018

slide-13
SLIDE 13
  • Conceptualization: make conceptual elements first-class citizens in the model

– Type-Instance relationship – Attribute inheritance control – Association inheritance control – Dynamic type creation – Lose of visibility

  • Addition of operation
  • Duplicate client request
  • Compositionality: a model is composed from component models

– Compositional management – Reuse – Measure: like ULC and DLC

More factors and measures for MLM rearchitecture

13 October 2018 MULTI 2018

MLM gains MLM lose

slide-14
SLIDE 14
  • 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

More factors and measures for MLM rearchitecture

14 October 2018 MULTI 2018

slide-15
SLIDE 15

Factor conflicts

15 October 2018 MULTI 2018

  • 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
slide-16
SLIDE 16

MLM transformation, guided by modeling ideals

16 October 2018 MULTI 2018

The directives (ideals): Direct mapping; Understandability Backward inter-level association

7

Accidental complexity =

slide-17
SLIDE 17

Conclusion and future work

17 October 2018 MULTI 2018

  • MLM needs

– In-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

slide-18
SLIDE 18

Thank you

18 October 2018 MULTI 2018