Modelling Languages: (mostly) Concrete (Visual) Syntax Hans - - PowerPoint PPT Presentation

modelling languages mostly concrete visual syntax
SMART_READER_LITE
LIVE PREVIEW

Modelling Languages: (mostly) Concrete (Visual) Syntax Hans - - PowerPoint PPT Presentation

Modelling Languages: (mostly) Concrete (Visual) Syntax Hans Vangheluwe http://msdl.cs.mcgill.ca/ Modelling Languages/Formalisms Syntax and Semantics Modelling Languages/Formalisms Syntax and Semantics Model of Graph 3 Textual Languages


slide-1
SLIDE 1

http://msdl.cs.mcgill.ca/

Hans Vangheluwe

Modelling Languages: (mostly) Concrete (Visual) Syntax

slide-2
SLIDE 2

Modelling Languages/Formalisms Syntax and Semantics

slide-3
SLIDE 3

3

Model of Graph

Modelling Languages/Formalisms Syntax and Semantics

slide-4
SLIDE 4

Textual Languages

Textual Languages

“this sentence is very short”

  • Individual letters in an alphabet
  • Combined into words
  • Combined into sentences in a language
  • Valid letters in words specified by reg

egular exp xpressions

  • Valid words in a language specified by a grammar
  • letters/words are combined by “is to the right of”
slide-5
SLIDE 5

Textual Languages

syntax-directed editor (textual concrete syntax)

slide-6
SLIDE 6

Visual Languages

syntax-directed editor (visual concrete syntax)

slide-7
SLIDE 7

Visual Languages

slide-8
SLIDE 8
slide-9
SLIDE 9

Plex

Visual Languages

slide-10
SLIDE 10

Grap aph

Visual Languages

slide-11
SLIDE 11

Co Connecti tion T Type pes

Visual Languages

slide-12
SLIDE 12

Iconic

Visual Languages

slide-13
SLIDE 13

Box

Visual Languages

slide-14
SLIDE 14

Visu sual L Langu guage age Cl Class sses

Visual Languages

slide-15
SLIDE 15

Hy Hybrid id L Langu guages

Visual Languages

slide-16
SLIDE 16

Syntax-dir irected V d Visu sual E al Editors: s: model l be behaviour

Visual Languages

slide-17
SLIDE 17

Syntax-dir irected V d Visu sual E al Editors: s: model l be behaviour

Visual Languages

slide-18
SLIDE 18

Generate te S Syntax tax-di directe ted V Vis isual l Edi dito tors

Visual Languages

slide-19
SLIDE 19

Syntax-dir irected V d Visu sual E al Editors: s: freehand d (early stages of multi-domain project)

Visual Languages

slide-20
SLIDE 20

20

Different M t Medi dia: : Gest stural I l Inte terac acti tion, S Sound, ...

Visual Languages

slide-21
SLIDE 21
slide-22
SLIDE 22

Introducti tion

  • Visual notations pre-date textual ones
  • Visual notations are important for

Modelling and Software Engineering

  • Humans are excellent pattern

recognizers

  • Need cognitively efficient and effective

notations. Cognitive effectiveness = speed, ease and accuracy with which a representation can be processed by the human mind

``Physics'' of Notations

a DSVL @ Lascaux

slide-23
SLIDE 23

Introducti tion/R /Rati ationale le

Visual notations are often introduced without underlying theory or rationale

``Physics'' of Notations

Many visual notations for same concepts. No rigorous way to co comp mpare re effectiveness and hence no clear design goal.

slide-24
SLIDE 24
slide-25
SLIDE 25
slide-26
SLIDE 26
slide-27
SLIDE 27

Maryam M. Maleki, Robert F. Woodbury, Rhys Goldstein, Simon Breslav, Azam Khan. Designing DEVS visual interfaces for end-user programmers. Simulation 91(8): 715-734 (2015)

slide-28
SLIDE 28
slide-29
SLIDE 29

Co Communicati tion T Theory

``Physics'' of Notations

slide-30
SLIDE 30

Encodi ding: 8 g: 8 v vis isual v variabl bles t s to (gr (graph phically) ) encode in information

``Physics'' of Notations

slide-31
SLIDE 31

Decodin ing

automatic, fast, parallel slow, large effort, sequential Appropriate notations »

  • ffload some of the burden from cognitive to perceptual

Note: “dual channel theory”: auditory/verbal channel and visual/pictorial channel are processed in parallel

Richard E. Mayer, Roxana Moreno. Nine Ways to Reduce Cognitive Load in Multimedia Learning. Educational Psychologist, 38(1), 43–5. 2003. ``Physics'' of Notations

slide-32
SLIDE 32

Princip iple les f for D Desi sign gning g Effic fficient an t and E d Effecti tive V Visu sual N Nota tations

``Physics'' of Notations

slide-33
SLIDE 33

Semioti tic Cla Clarity (semiotics = study of signs and sign processes)

1- 1-to-1

``Physics'' of Notations

slide-34
SLIDE 34

Percept ptual D Disc scrimin inabi bili lity

``Physics'' of Notations

slide-35
SLIDE 35

``Physics'' of Notations

Junaed Sattar, Gregory Dudek. Reducing Uncertainty in Human-Robot Interaction: A Cost Analysis Approach. ISER 2010: 81-95.

slide-36
SLIDE 36

Percept ptual D Disc scrimin inabi bili lity

should be easy to distinguish visual symbols ability to distinguish is determined by visual distance larger visual distance » faster, more accurate recognition

  • number of visual variables on which they differ and

the magnitude of the differences

  • shape is the main visual variable

13

``Physics'' of Notations

slide-37
SLIDE 37

Percept ptual D Disc scrimin inabi bili lity

Software Engineering notations mostly use rectangle variants Use re redundant visual encoding to in incr crease dis istance ce (e.g., textual + visual)

``Physics'' of Notations

slide-38
SLIDE 38

Semantic T Tran anspa parency

The me meanin ing of a symbol can be in inferre rred from its appearance (intuitive) Symbols can be:

``Physics'' of Notations

slide-39
SLIDE 39

Semantic T Tran anspa parency: : semantically immediate symbols

``Physics'' of Notations

slide-40
SLIDE 40

Semantic T Tran anspa parency

``Physics'' of Notations

slide-41
SLIDE 41

Semantic T Tran anspa parency

The me meanin ing of a symbol can be in inferre rred from its appearance (intuitive) Symbols can be:

  • Semantically Immediate
  • Semantically Opaque

Software Engineering notations are usually abstract (non-intuitive)

``Physics'' of Notations

slide-42
SLIDE 42

``Physics'' of Notations

Seman anti tic T Tran anspar sparency: : semantically perverse symbols

slide-43
SLIDE 43

Semantic T Tran anspa parency

The me meanin ing of a symbol can be in inferre rred from its appearance (intuitive) Symbols can be:

  • Semantically Immediate
  • Semantically Opaque
  • Semantically Perverse

Domain-specific icons and visual arrangement should be intuitive

``Physics'' of Notations

slide-44
SLIDE 44

Co Compl plexity m management (# (# ele lements ts in in di diagr gram » c cognit itiv ive o

  • verlo

load) d)

``Physics'' of Notations

slide-45
SLIDE 45

Mo Modu dulariz izati tion/Hie /Hierarchy

``Physics'' of Notations

slide-46
SLIDE 46

Co Cognit itiv ive I Inte tegrati tion (d (different t notatio ions) s)

  • Conceptual integration (cohere

rent mental model)

  • Enable navig

igatio ion and transit itio ion between notations

``Physics'' of Notations

slide-47
SLIDE 47

Visu sual E Expr pressi siveness

Number of visual variables used (UML, mostly shape, no colour) 8 degrees of visual freedom (0 = non-visual – 8 = visually saturated)

``Physics'' of Notations

slide-48
SLIDE 48

Visu sual E Expr pressi siveness

Different visual variables have dif iffere rent ca capaci city to encode information

``Physics'' of Notations

slide-49
SLIDE 49

Dual l Encodin ing

Combine Textual and Vis isual Supple lement rather than duplicate (e.g., multiplicity values)

``Physics'' of Notations

Rein inforce rce meaning

slide-50
SLIDE 50

Grap aphic ic E Economy

  • Not too many symbols. If many, provide le

legend

  • Limit on human discrimination capability (6 levels per variable)
  • Upper limit on graphic complexity

How?

``Physics'' of Notations

slide-51
SLIDE 51

Co Cognit itiv ive F Fit

Adapt choice of visual notation to

  • Task
  • Audience (novices vs. experts)

Adaptation may be dynamic (“learn” about Task/User proficiency) Representation medium matters

``Physics'' of Notations

slide-52
SLIDE 52

Interac actio ions a among g pr prin incipl ples

``Physics'' of Notations

slide-53
SLIDE 53