dialogue notations and design iact 403 iact 931 csci 324 human computer interface lecturer:gene...

31
Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer: Gene Awyzio Room: 3.117 Phone: 4221 4090 Email: [email protected]

Post on 21-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dialogue Notations and DesignDialogue Notations and Design

IACT 403 IACT 931 CSCI 324Human Computer Interface

Lecturer: Gene Awyzio

Room: 3.117Phone: 4221 4090Email: [email protected]

Page 2: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

OverviewOverview

Dialogue Notations Diagrammatic state transition networks JSD diagrams Flow charts Textual formal grammars production rules CSP

Page 3: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

OverviewOverview

Dialogue Analysis Semantics and dialogue Properties of dialogue Presentation and lexical issues

Example Digital watch

Page 4: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

State transition networksState transition networks

Circles - states arcs - actions/events

Arc labels a bit cramped because: notation is `state heavy‘ the events require most detail

Page 5: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Hierarchical STNsHierarchical STNs

managing complex dialoguesnamed sub-dialogues

Page 6: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Hierarchical STNsHierarchical STNs

Page 7: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

FlowchartsFlowcharts

familiar to programmers

boxes - process/event not state

Page 8: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

JSD diagramsJSD diagrams

for tree structured dialogues less expressive greater clarity

L og in

A d dE m p loyee

R ecord

C h an g eE m p loyee

R ecord

D isp layE m p loyee

R ecord

D e le teE m p loyee

R ecod

Tran sac tion L og ou t

P erson n e lR ecordS ys tem

*

o o o o

Page 9: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Concurrent dialogues (i)Concurrent dialogues (i)

Text Style

Three toggles - individual STNsNo Bold

Bold

Click over bold

No Itali

c

Italic

Click over italic

No Under-line

Under-line

Click over Underline

Page 10: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Concurrent dialogues (ii)Concurrent dialogues (ii)

Text Style

bold and italic combined

Page 11: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Concurrent dialogues (iii)Concurrent dialogues (iii)

combinatorial explosion n toggles 2n states

Page 12: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Textual - GrammarsTextual - Grammars

Regular expressions sel-line click click* dble-click

Compare with JSD same computational model different notation BNF

expr ::= empty | atom expr | `(' expr `)' expr

more powerful than regular exp. or STNsStill NO concurrent dialogue

Page 13: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Production rulesProduction rules

if condition then actionGood for concurrencyEvent based production rules

Sel-line first C-point first rest C-point rest rest D-point rest < draw line >

Bad for sequenceBad at state!

Page 14: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Propositional Production SystemPropositional Production SystemState basedAttributes:

Mouse: {mouse-off, select-line, click-point, double-click}

Line-state: {menu, _first, rest}Rules (feedback not shown):

select-line mouse-off first click-point first mouse-off rest click-point rest mouse-off double-click rest mouse-off menu

Bad at events!

Page 15: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

CSP and process algebrasCSP and process algebras

used in Alexander's SPI, and Agent notationgood for sequential dialogues

Bold-tog = select-bold? bold-on select-bold? bold-off Bold-tog

Italic-tog = … Under-tog = …

and concurrent dialogue Dialogue-box = Bold-tog || Italic-tog ||Under-tog

but causality unclear

Page 16: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dialogue Notations | SummaryDialogue Notations | Summary

Diagrammatic STN JSD Flow charts

Textual grammars production rules CSP

Page 17: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dialogue Notations | SummaryDialogue Notations | Summary

Issues event base vs. state based power vs. clarity model vs. notation sequential vs. concurrent

Page 18: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Semantics - Alexander's SPI (i)Semantics - Alexander's SPI (i)

Two part specification: EventCSP - pure dialogue order EventISL - target dependent semantics

Centralised dialogue descriptionTolerable syntactic/semantic trade-off

Page 19: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Semantics - Alexander's SPI (ii)Semantics - Alexander's SPI (ii)EventCSP

Login = login-mess get-name Passwd Passwd = passwd-mess ( invalid Login []

valid Session)EventISL

event: login-messprompt: trueout: "login:" event: get-name

uses: inputset: user-id = input event: valid

uses: input, user-id, passwd-dbwhen: passwd-id = passwd-db(user-id)

Page 20: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Semantics - codeSemantics - code

Event loop for word processorDistributed dialogue descriptionTerrible syntactic/semantic trade-off

Page 21: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Semantics - codeSemantics - codeswitch ( ev.type ) {

case button_down:if ( in_text ( ev.pos ) ) {

mode = selecting;mark_selection_start(ev.pos);

}...

case button_up:if ( in_text ( ev.pos ) && mode == selecting ) {

mode = normal;mark_selection_end(ev.pos);

}...

case mouse_move:if ( mode == selecting ) {

extend_selection(ev.pos);}...

} /* end of switch */

Page 22: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Action propertiesAction propertiescompleteness

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

Page 23: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Checking properties (i)Checking properties (i)

Completeness: double-click in circle

states?Reversibility:

to reverse select `line' from graphics Menu

click - double click - select `graphics'

(3 actions) N.B. not undo

Page 24: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

State propertiesState 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

Page 25: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dangerous states (i)Dangerous states (i)

Word processor: two modes and exit F1 - changes mode F2 - exit (and save) Esc - no mode change

but … Esc resets autosave

Page 26: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dangerous states (ii)Dangerous states (ii) exit with/without save dangerous states duplicate states - semantic distinction

F1-F2 - exit with save F1-Esc-F2 - exit no save

Page 27: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Lexical issuesLexical issues

visibility differentiate modes and states annotations to dialogue

style command - verb noun mouse-based - noun verb

Page 28: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Lexical issuesLexical issues

layout dangerous states (previous slide) old keyboard - OK new keyboard - disaster

Page 29: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Dialogue Analysis - SummaryDialogue Analysis - Summary Semantics and dialogue

attaching semantics distributed/centralised dialogue description maximising syntactic description

Properties of dialogue action properties: completeness, determinism,

consistency state properties: reachability, reversibility, dangerous

states Presentation and lexical issues

visibility style layout

N.B. not independent of dialogue

Page 30: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Digital watch - User's instructionsDigital watch - User's instructions

limited interface - 3 buttons

button A moves between main modes

dangerous states guarded by two

second holdcompleteness

distinguish depress A from release A

what do they do in all modes?

Page 31: Dialogue Notations and Design IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:4221 4090 Email:gene@uow.edu.au

Digital watch - Designer's instructionsDigital watch - Designer's instructions

and that's only one button!