SLIDE 1 http://msdl.cs.mcgill.ca/
Hans Vangheluwe
Modelling Languages: (mostly) Concrete (Visual) Syntax
SLIDE 2
Modelling Languages/Formalisms Syntax and Semantics
SLIDE 3 3
Model of Graph
Modelling Languages/Formalisms Syntax and Semantics
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
Textual Languages
syntax-directed editor (textual concrete syntax)
SLIDE 6
Visual Languages
syntax-directed editor (visual concrete syntax)
SLIDE 7
Visual Languages
SLIDE 8
SLIDE 9
Plex
Visual Languages
SLIDE 10
Grap aph
Visual Languages
SLIDE 11
Co Connecti tion T Type pes
Visual Languages
SLIDE 12
Iconic
Visual Languages
SLIDE 13
Box
Visual Languages
SLIDE 14
Visu sual L Langu guage age Cl Class sses
Visual Languages
SLIDE 15
Hy Hybrid id L Langu guages
Visual Languages
SLIDE 16
Syntax-dir irected V d Visu sual E al Editors: s: model l be behaviour
Visual Languages
SLIDE 17
Syntax-dir irected V d Visu sual E al Editors: s: model l be behaviour
Visual Languages
SLIDE 18
Generate te S Syntax tax-di directe ted V Vis isual l Edi dito tors
Visual Languages
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
20
Different M t Medi dia: : Gest stural I l Inte terac acti tion, S Sound, ...
Visual Languages
SLIDE 21
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
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 25
SLIDE 26
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 29
Co Communicati tion T Theory
``Physics'' of Notations
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 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
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
Semioti tic Cla Clarity (semiotics = study of signs and sign processes)
1- 1-to-1
``Physics'' of Notations
SLIDE 34
Percept ptual D Disc scrimin inabi bili lity
``Physics'' of Notations
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 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
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
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
Semantic T Tran anspa parency: : semantically immediate symbols
``Physics'' of Notations
SLIDE 40
Semantic T Tran anspa parency
``Physics'' of Notations
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
``Physics'' of Notations
Seman anti tic T Tran anspar sparency: : semantically perverse symbols
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 Co Compl plexity m management (# (# ele lements ts in in di diagr gram » c cognit itiv ive o
load) d)
``Physics'' of Notations
SLIDE 45
Mo Modu dulariz izati tion/Hie /Hierarchy
``Physics'' of Notations
SLIDE 46 Co Cognit itiv ive I Inte tegrati tion (d (different t notatio ions) s)
- Conceptual integration (cohere
rent mental model)
igatio ion and transit itio ion between notations
``Physics'' of Notations
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
Visu sual E Expr pressi siveness
Different visual variables have dif iffere rent ca capaci city to encode information
``Physics'' of Notations
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 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 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
Interac actio ions a among g pr prin incipl ples
``Physics'' of Notations
SLIDE 53