Dialogue Notations And Design

6m ago
8 Views
2 Downloads
715.07 KB
18 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Ellie Forte
Transcription

chapter 16 dialogue notations and design Dialogue Notations and Design 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 Formal descriptions can be analysed – – – – for for for for inconsistent actions difficult to reverse actions missing actions potential miskeying errors what is dialogue? conversation between two or more parties – usually cooperative in user interfaces – refers to the structure of the interaction – syntactic level of human–computer ‘conversation’ levels – lexical – shape of icons, actual keys pressed – syntactic – order of inputs and outputs – semantic – effect on internal application/data 1

structured human dialogue human-computer dialogue very constrained some human-human dialogue formal too Minister: do you man’s name take this woman Man: I do Minister: do you woman’s name take this man Woman: I do Man: With this ring I thee wed (places ring on womans finger) Woman: With this ring I thee wed (places ring .) Minister: I now pronounce you man and wife lessons about 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 ” if you say these words are you married? – only if in the right place, with marriage licence – syntax not semantics and more what if woman says “I don’t”? real dialogues often have alternatives: Judge: How do you plead guilty or not guilty? Defendant: either Guilty or Not guilty – the process of the trial depends on the defendants response focus on normative responses – doesn’t cope with judge saying “off with her head” – or in computer dialogue user standing on keyboard! 2

dialogue design notations dialogue gets buried in the program in a big system can we: – analyse the dialogue: can the user always get to see current shopping basket – change platforms (e.g. Windows/Mac) – dialogue notations helps us to analyse systems separate lexical from semantoc and before the system is built – notations help us understand proposed designs graphical notations state-transition nets (STN) Petri nets, state charts flow charts, JSD diagrams State transition networks (STN) circles - states arcs - actions/events click on circumference click on centre Circle 1 Start Circle 2 Finish rubber band select 'circle' draw circle Menu select 'line' Line 1 click on first point rubber band double click Line 2 draw last line Finish click on point draw a line 3

State transition networks events arc labels a bit cramped because: – notation is state heavy‘ – the events require most detail click on circumference click on centre Circle 1 Start Circle 2 Finish rubber band select 'circle' draw circle Menu select 'line' Line 1 click on first point double click Line 2 rubber band draw last line Finish 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 circumference click on centre Circle 1 Start Circle 2 rubber band select 'circle' Finish draw circle Menu . . . select 'line' Hierarchical STNs managing complex dialogues named sub-dialogues Graphics Submenu select ‘graphics’ Main Menu select ‘text’ Text Submenu Paint Submenu select ‘paint’ 4

Concurrent dialogues - I simple dialogue box Text Style bold example italic underline Concurrent dialogues - II three toggles - individual STNs NO click on ‘bold’ bold NO bold italic italic u’line underline click on ‘italic’ italic NO bold click on ‘underline’ u’line Concurrent dialogues - III bold and italic combined Text Style NO click on ‘bold’ style only only example bold italic underline click on ‘italic’ click on ‘italic’ italic bold click on ‘bold’ bold italic 5

Concurrent dialogues - IV all together - combinatorial explosion Text Style ‘bold’ NO bold style only example ‘underline’ ‘underline’ ‘italic’ bold italic underline ‘italic’ ‘bold’ u’line bold u’line only ‘italic’ ‘italic’ bold italic ‘bold’ italic only ‘underline’ ‘underline’ italic u’line bold italic u’line ‘bold’ escapes ‘back’ in web, escape/cancel keys – similar behaviour everywhere – end up with spaghetti of identical behaviours try to avoid this Graphics Submenu ESC select ‘graphics’ normal e.g. on high level diagram ‘normal’ exit for each submenu plus separate escape arc active ‘everywhere’ in submenu finish Main Menu Text Submenu select ‘text’ ESC normal finish Paint Submenu ESC normal select ‘paint’ finish help menus 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 from Menu click on circumference click on centre Circle 1 rubber band press HELP button Help Subsystem Circle 2 draw circle Finish press HELP button Help Subsystem 6

Petri nets one of the oldest notations in computing! flow graph: – places – transitions – counters – a bit like STN states – a bit like STN arcs – sit on places (current state) several counters allowed – concurrent dialogue states used for UI specification (ICO at Toulouse) – tool support – Petshop Petri net example Bold On Italic On user presses ‘Italic’ user presses ‘Bold’ T1 T2 T4 T3 Italic Off Bold Off user actions transition ‘fires’ represented when all input as a new counter places have counters State charts used in UML extension to STN – hierarchy – concurrent sub-nets – escapes OFF always active Standby ON OFF RESET Channel Sound – history link marked H goes back to last state on re-entering subdialogue 1 SEL On SEL SEL Off H 2 MUTE 3 SEL 4 7

Flowcharts Delete D1 Please enter employee no.: familiar to programmers C1 read record boxes - process/event - not state Delete D2 Delete Name: Alan Dix Dept: Computing delete? (Y/N): use for dialogue C2 D3 Name: Alan Dix Dept: Computing delete? (Y/N): Please enter Y or N other answer? (not internal algorithm) Y N Finish C3 delete record Finish it works! formal notations – too much work? COBOL transaction processing – event-driven – like web interfaces – programs structure dialogue structure Delete used dialogue flow charts – – – – D1 Please enter employee no.: C1 read record discuss with clients transform to code systematic testing 1000% productivity gain Delete D2 Delete Name: Alan Dix Dept: Computing delete? (Y/N): D3 delete? (Y/N): Please enter Y or N C2 answer? Y formalism saves time!! other N Finish C3 delete record Finish JSD diagrams for tree structured dialogues – less expressive Personnel Record System – greater clarity login add employee record transaction change employee record * logout display employee record delete employee record 8

textual notations 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 expr :: empty atom expr '(' expr ')' expr more powerful than regular exp. or STNs Still NO concurrent dialogue Production rules Unordered list of rules: if condition then action – condition based on state or pending events – every rule always potentially active Good for concurrency Bad for sequence 9

Event based 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 State based Attributes: 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! CSP and process algebras used in Alexander's SPI, and Agent notation good 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 10

Dialogue Notations Summary Diagrammatic STN, JSD, Flow charts Textual grammars, production rules, CSP Issues event base vs. state based power vs. clarity model vs. notation sequential vs. concurrent Semantics Alexander SPI (i) Two part specication: EventCSP - pure dialogue order EventISL - target dependent semantics dialogue description - centralised syntactic/semantic trade-off - tollerable Semantics Alexander SPI (ii) EventCSP Login login-mess - get-name - Passwd Passwd passwd-mess - (invalid - Login [] valid - Session) 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) 11

Semantics - raw code event loop for word processor dialogue description - very distributed syntactic/semantic trade-off - terrible! switch ( 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 */ Action properties 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 circumference click on centre Circle 1 Start Circle 2 Finish rubber band select 'circle' ? draw circle Menu select 'line' Line 1 click on first point rubber band double click Line 2 draw last line Finish click on point draw a line 12

Checking properties (ii) select 'circle' Start . . . Menu select 'line' Reversibility: Line 1 click on first point rubber band – to reverse select line' double click Line 2 draw last line Finish click on point draw a line Graphics Sub-menu select 'graphics' Main Menu select 'text' . . . . . . select 'paint' Checking properties (ii) select 'circle' Start . . . Menu select 'line' Reversibility: Line 1 click on first point rubber band – to reverse select line' double click Line 2 draw last line Finish click on point draw a line – click Graphics Sub-menu select 'graphics' Main Menu select 'text' . . . . . . select 'paint' Checking properties (ii) select 'circle' Start Reversibility: . . . Menu select 'line' Line 1 click on first point rubber band – to reverse select line' double click Line 2 draw last line Finish click on point draw a line – click - double click Graphics Sub-menu select 'graphics' Main Menu select 'text' . . . . . . select 'paint' 13

Checking properties (ii) select 'circle' Start . . . Menu select 'line' Reversibility: Line 1 click on first point rubber band – to reverse select line' double click Line 2 draw last line Finish click on point – click - double click - select graphics' draw a line – (3 actions) Graphics Sub-menu N.B. not undo select 'graphics' 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 word processor: two modes and exit F1 F2 Esc - changes mode - exit (and save) - no mode change Esc edit F1 menu F2 exit but . Esc resets autosave 14

Dangerous States (ii) exit with/without save dangerous states duplicate states - semantic distinction edit F1 menu any update edit F1-F2 - exit with save F1-Esc-F2 - exit with no save F2 exit Esc F1 menu F2 exit 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 word processor - dangerous states F1 edit old keyboard - OK any update tab F1 F2 F3 F4 . . exit Esc F1 edit Esc F2 menu F2 menu exit Esc 1 . . 15

layout matters new keyboard layout Esc F1 F2 F3 . intend F1-F2 (save) F1 edit F2 menu exit finger catches Esc any update Esc F1 edit F2 menu exit Esc layout matters new keyboard layout Esc F1 F2 F3 . intend F1-F2 (save) F1 edit F2 menu exit finger catches Esc F1-Esc-F2 - disaster! any update Esc F1 edit F2 menu exit Esc Dialogue 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 16

Dialogue 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 Digital watch – User Instructions Time display two main modes Stop watch SMTWTFS SMTWTFS A STP limited interface - 3 buttons A button A changes mode Depress button A for 2 seconds A SMTWTFS SMTWTFS A SET ALM AM Time setting Alarm setting Digital watch – User Instructions Time display Stop watch SMTWTFS SMTWTFS dangerous states A STP guarded by two second hold A completeness distinguish depress A and release A what do they do in all modes? A SMTWTFS Depress button A for 2 seconds SMTWTFS SET A ALM AM Time setting Alarm setting 17

Digital watch – Designers instructions Time display SMTWTFS Stop watch SMTWTFS STP and . Depress A Release A that’s just one button Release A SMTWTFS SMTWTFS STP Depress A Release A 2 seconds SMTWTFS 2 seconds SMTWTFS SET Depress A Release A ALM AM Time setting Alarm setting 18

model vs. notation sequential vs. concurrent Semantics Alexander SPI (i) Two part specication: EventCSP - pure dialogue order EventISL - target dependent semantics dialogue description - centralised syntactic/semantic trade-off - tollerable Semantics Alexander SPI (ii) EventCSP Login login-mess - get-name .

Related Documents:

This section will introduce concepts for characterizing process modeling notations and furthermore define requirements for process modeling notations from different perspectives. These concepts are useful for comparing different notations for the representation of processes. 4.3.1 Characteristics of Process Modeling Notations

approach and a dialogue editor to write these dialogue scripts. Online chat bots are proposed as a technique to evaluate and to improve an interactive dialogue script. Results of a pilot study with 4 non-phobic individuals are promising and suggest that these scripted interactive dialogues can be used to simulate a human-human dialogue.

in Algebra, second edition, written by I.N. Herstein. We have tried to stick with the notations developed in the book as far as possible. But some notations are extremely ambiguous, so to avoid confusion, we resorted to alternate commonly used notations. The following notation changes will be found in the text:File Size: 425KB

dialogue act model, which relies on hierarchical clustering and uses no manual labels during model training, would support equal or better student learning than the supervised dialogue act model, which relies on a decision tree classi- er and represents a state-of-the-art, highly accurate dialogue act classi er that

This report describes the state of the art of the dialogue management research in a context of both spoken and multimodal dialogue systems. Section 2 describes an overview of a multimodal dialogue .

Apr 30, 2016 · ‘Difficult Dialogue’ resources. These are composed of two discrete sections. The first is this book – Difficult Dialogue in the Classroom, which builds upon the work outlined in the Essentials of Dialogue, to outline an approach to addressing such issues using tried and tested

ministere du travail, de l’emploi et des sportset du dialogue social ministere de la ville, de la jeunesse rapport de synthese des travaux du groupe de dialogue inter - partenaires sur la lutte contre les discriminations en entreprise président du groupe de dialogue: jean-christophe sciberras

ACCOUNTING 0452/11 Paper 1 May/June 2018 1 hour 45 minutes Candidates answer on the Question Paper. No Additional Materials are required. READ THESE INSTRUCTIONS FIRST Write your Centre number, candidate number and name on all the work you hand in. Write in dark blue or black pen. You may use an HB pencil for any diagrams or graphs. Do not use staples, paper clips, glue or correction fluid. DO .