Professional Documents
Culture Documents
FALLSEM2021-22 CSE4015 ETH VL2021220104225 Reference Material I 21-10-2021 CSE4015 HCI MODULE-5B
FALLSEM2021-22 CSE4015 ETH VL2021220104225 Reference Material I 21-10-2021 CSE4015 HCI MODULE-5B
1. Face-to-face Communication
2. Group Working
4. Dialog Semantics
1
Dialogue Notations and Design
• Dialog is the syntactic level of human–computer
interaction; it is rather like the script of a play, except
the user, and sometimes the computer, has more
choices.
• Dialogue Notations
– Diagrammatic
• state transition networks, JSD diagrams, flow charts
– Textual
• formal grammars, production rules, CSP
• Dialogue linked to
– the semantics of the system – what it does
– the presentation of the system – how it looks
• in user interfaces
– refers to the structure of the interaction
– syntactic level of human–computer ‘conversation’
• levels
– lexical – shape of icons, actual keys pressed (lowest
level)
– syntactic – order of inputs and outputs (grammar of
sentence construction)
– semantic – effect on internal application/data
structured human dialogue
• wedding service
– sort of script for three parties
– specifies order
– some contributions fixed – “I do”
– others variable – “do you man’s name …”
– instructions for ring
concurrent with saying words “with this ring …”
click on
click on centre circumference
Circle 1 Circle 2 Finish
rubber band draw circle
se lect 'circle'
Start Menu
click on point
draw a line
State transition networks -
states
• labels in circles a bit uninformative:
– states are hard to name
– but easier to visualise
click on
click on centre circumference
Circle 1 Circle 2 Finish
rubber band draw circle
select 'circle'
Star t Men u
select 'line'
... ... ...
Hierarchical STNs
Example:
• Suppose we want to model the dialog for a
menu-based system. There are three menu
items, first one for Graphical system, second
one for a text system and the other for a
paint-like system. Each of these systems has
its own dialog. For example, the paint system
may have the dialog shown in the previous
example. We can model the overall dialog as a
hierarchical STN
Hierarchical STNs
Text Submenu
select ‘text’
Main
Menu
Paint Submenu
select ‘paint’
Concurrent dialogues - I
simple dialogue box
Text Style
bold
example italic
underline
Concurrent dialogues - II
three toggles - individual STNs
click on ‘bold’
NO
bold
bold bold
click on ‘italic’
NO
italic
italic italic
click on ‘underline’
NO u’line
u’line underline
Concurrent dialogues - III
bold and italic combined
Text Style
bold
NO click on ‘bold’ bold example italic
style only underline
click click
on on
‘italic’ ‘italic’
‘italic’ ‘italic’
italic ‘bold’ bold
only italic
‘underline’ ‘underline’
bold
italic ‘bold’ italic
u’line u’line
escapes
Menu normal
plus separate finish
escape arc active
‘everywhere’ in submenu Paint Submenu ESC
• similar problems
– nearly the same everywhere
– but return to same point in dialogue
– could specify on STN … but very messy
– usually best added at a ‘meta’ level
• used in UML
• extension to STN
– hierarchy
Standby
– escapes
RESET
4
Flowcharts
• familiar to C1
read record
programmers
• boxes Delete D2 Delete D3
- process/event
Name: Alan Dix Name: Alan Dix
Dept: Computing Dept: Computing
delete? (Y/N): _ delete? (Y/N): _
- not state
Please enter Y or N
Finish
it works!
Please enter
employee no.: ____
≠ dialogue structure
• used dialogue flow charts
C1
read record
delete? (Y/N): _
– transform to code
Dept: Computing Please enter Y or N
delete? (Y/N): _
other
C3
Finish
JSD diagrams
• Jackson structured design (JSD), while not as
old as flow charts.
login transaction
* logout
grammars
production rules
CSP and event algebras
Textual - Grammars
• Regular expressions
sel-line click click* dble-click
• compare with JSD
• same computational model
• different notation
• BNF (Backus-Naur Form)
expr ::= empty
| atom expr
| '(' expr ')' expr
• more powerful than regular exp. or STNs
• Still NO concurrent dialogue
Production rules
Sel-line first
C-point first rest
C-point rest rest
D-point rest < draw line >
• Note:
– events added to list of pending events
– ‘first’ and ‘rest’ are internally generated events
• Bad at state!
Prepositional Production System
Prepositional Production System
• The rules are executed again, when the condition matches the state,
but, this time, the attributes are not changed by this alone. Only when a
new value is set for a particular attribute is the old value lost.
• For example, in the second rule, the action ‘rest-line’ sets the Line-
state attribute, thus removing the previous value of ‘startline’.
• Notice, that in the third rule, the value ‘rest-line’ of the attribute Line-
state need not be mentioned in the action as it was in the event-based
rules.
Grammers
Event Algebra / Process Calculi
CSP and process algebras
• EventISL
event: login-mess
prompt: true
out: “Login:”
event: get-name
uses: input
set: user-id = input
event: valid
uses: input, user-id, passwd-db
wgen: passwd-id = passwd-db(user-id)
Semantics Alexander SPI (ii)
• The CSP description is as follows:
Draw-menu = ( select-circle? → Do-circle []
select-line? → Do-line )
Do-circle = click? → set-center → click? → draw-circle → skip
Do-line = Start-line ; Rest-line
Start-line = click? → first-point → skip
Rest-line = ( click? → next-point → Rest-line []
double-click? → last-point → skip )
Semantics Alexander SPI (ii)
• The CSP description is as follows:
Bold-toggle = select-bold? → bold-on →
select-bold? → bold-off → Bold-toggle
Italic-toggle = select-italic? → italic-on →
select-italic? → italic-off → Italic-toggle
Under-toggle = select-under? → under-on →
select-under? → under-off → Under-toggle
Semantics - raw code
• completeness
• missed arcs
• unforeseen circumstances
• determinism
• several arcs for one action
• deliberate: application decision
• accident: production rules
• nested escapes
• consistency
• same action, same effect?
• modes and visibility
Checking properties (i)
• completeness
– double-click in circle states?
double
?
click
click on
click on centre circumference
Circle 1 Circle 2 Finish
rubber band draw circle
se lect 'circle'
Start Menu
click on point
draw a line
Checking properties (ii)
select 'circle'
... ... ...
Start Menu
Graphics Sub-menu
select 'graphics'
Main
Menu
select 'text' ... ... ...
... ... ...
select 'paint'
Checking properties (ii)
select 'circle'
... ... ...
Start Menu
Graphics Sub-menu
select 'graphics'
Main
Menu
select 'text' ... ... ...
... ... ...
select 'paint'
Checking properties (ii)
select 'circle'
... ... ...
Start Menu
Graphics Sub-menu
select 'graphics'
Main
Menu
select 'text' ... ... ...
... ... ...
select 'paint'
Checking properties (ii)
select 'circle'
... ... ...
Start Menu
Main
Menu
select 'text' ... ... ...
... ... ...
select 'paint'
State properties
• reachability
• can you get anywhere from anywhere?
• and how easily
• reversibility
• can you get to the previous state?
• but NOT undo
• dangerous states
• some states you don't want to get to
Dangerous States
Esc
F1 F2
edit menu exit
F1 F2
edit menu exit
any Esc
update
F1 F2
edit menu exit
F1-F2 - exit with save
F1-Esc-F2 - exit with no save Esc
Lexical Issues
• visibility
• differentiate modes and states
• annotations to dialogue
• style
• command - verb noun
• mouse based - noun verb
• layout
• not just appearance ...
layout matters
any Esc
update
• old keyboard - OK F1 F2
edit menu exit
Esc
Esc 1
tab ...
F1 F2
...
F3 F4
... ...
layout matters
Esc F1 F2 F3 ...
intend F1-F2 (save) F1 F2
edit menu exit
F1 F2
edit menu exit
Esc
layout matters
Esc F1 F2 F3 ...
intend F1-F2 (save) F1 F2
edit menu exit
Esc
Dialogue Analysis - Summary
• Properties of dialogue
• action properties: completeness, determinism,
consistency
• state properties: reachability, reversibility, dangerous
states
• Properties of dialogue
• action properties: completeness, determinism,
consistency
• state properties: reachability, reversibility, dangerous
states
S MT W T F S S MT W T F S
• limited interface
- 3 buttons Depress
button A
A A for 2 seconds
• button A
changes mode
S MT W T F S S MT W T F S
SET A ALM
AM
S MT W T F S S MT W T F S
• guarded
… by two second hold
Depress
button A
A A
• completeness for 2 seconds
• distinguish depress A S MT W T F S S MT W T F S
• what do they do AM
S MT W T F S S MT W T F S
STP
Release A Release A
that’s just
S MT W T F S S MT W T F S
STP
one button
S MT W T F S S MT W T F S
Release A Release A
SET Depress A ALM
AM