1 Implementation support chapter 8 programming tools –levels of services for programmers windowing systems –core support for separate and simultaneous.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

implementation support
Software Engineering Institute Carnegie Mellon University Pittsburgh, PA Sponsored by the U.S. Department of Defense © 1998 by Carnegie Mellon.
Lecture 12 implementation support. Today’s Lecture programming tools  levels of services for programmers windowing systems  core support for separate.
Software Engineering Institute Carnegie Mellon University Pittsburgh, PA Sponsored by the U.S. Department of Defense © 1998 by Carnegie Mellon.
The Task-Centered Design Process figure out who's going to use the system to do what choose representative tasks for task-centered design plagiarize rough.
Object-Oriented Analysis and Design
Implementation support CSCI324, IACT403, IACT 931, MCS9324 Human Computer Interfaces.
Stanford hci group / cs376 research topics in human-computer interaction I/O Toolkits Scott Klemmer 29 November 2005.
COMP1007 Introduction to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis.
Implementation support IACT 403 IACT 931 CSCI 324 Human Computer Interface Lecturer:Gene Awyzio Room:3.117 Phone:
System Architecture: Desing alternatives and methodologies.
Stanford hci group / cs376 research topics in human-computer interaction UI Software Tools Scott Klemmer 27 October 2005.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Human Computer Interaction Implementation Support.
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
© Drexel University Software Engineering Research Group (SERG) 1 Based on the paper by Philippe Kruchten from Rational Software.
1.1 1 Introduction Foundations of Computer Science  Cengage Learning.
Architectural separation (MVC, arch model, Seeheim).
Software Tools.  It accomplishes an important task  (for better and for worse) You don’t have to make it yourself, and it abstracts a set of knowledge.
An Introduction to Software Architecture
11.10 Human Computer Interface www. ICT-Teacher.com.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Architectural Design l Establishing the overall structure of a software system.
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Gary MarsdenSlide 1University of Cape Town Human-Computer Interaction - 3 Programmer Support Gary Marsden ( ) July 2002.
Implementation support z programming tools y levels of services for programmers z windowing systems y core support for separate and simultaneous user-system.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Architectural Design l Establishing the overall structure of a software system.
Systems Analysis & Design 7 th Edition Chapter 5.
CS Lecture 00 Swing overview and introduction Lynda Thomas
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
Chapter 11 An Introduction to Visual Basic 2005 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
CPSC 372 John D. McGregor Module 3 Session 1 Architecture.
1 Lecture 2: Overview of UI Software and Tools Brad Myers Advanced User Interface Software.
Java Applets: GUI Components, Events, Etc. Ralph Westfall June, 2010.
CPSC 871 John D. McGregor Module 3 Session 1 Architecture.
Chapter 6 – Architectural Design Lecture 1 1Chapter 6 Architectural design.
Topic 4 - Database Design Unit 1 – Database Analysis and Design Advanced Higher Information Systems St Kentigern’s Academy.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Lecture # 6 Graphical User Interface(GUI). Introduction A graphical user interface (GUI) presents a user- friendly mechanism for interacting with an application.
Department of CSE, KLU 1 Chapter 8 Implementation support.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
Teaching slides Chapter 6. Chapter 6 Software user interface design & construction Contents Introduction Graphical user interface – Rich window based.
CSC 222: Object-Oriented Programming
Support for the Development of Interactive Systems
Database Development (8 May 2017).
CompSci 230 S Software Construction
Event loops 16-Jun-18.
Lecture 27 Creating Custom GUIs
Software Design and Architecture
User Interface Software Look under the hood
Computer Programming.
Event loops.
implementation support
CSE310 Human-Computer Interaction
An Introduction to Software Architecture
Event loops 17-Jan-19.
Event loops 17-Jan-19.
I/O Toolkits Scott Klemmer · 16 November 2006.
Event loops 8-Apr-19.
Implementation support
implementation support
implementation support
Model, View, Controller design pattern
Event loops.
Event loops.
Event loops 19-Aug-19.
Implementation support
Presentation transcript:

1 Implementation support chapter 8 programming tools –levels of services for programmers windowing systems –core support for separate and simultaneous user- system activity programming the application and control of dialogue interaction toolkits –bring programming closer to level of user perception user interface management systems –controls relationship between presentation and functionality

2 Introduction How does HCI affect of the programmer? Advances in coding have elevated programming hardware specific  interaction-technique specific Layers of development tools –windowing systems (operating systems) –interaction toolkits –user interface management systems

3 Elements of windowing systems Device independence programming the abstract terminal device drivers image models for output and (partially) input Resource sharing achieving simultaneity of user tasks window system supports independent processes isolation of individual applications

4 roles of a windowing system

5 Architectures of windowing systems three possible software architectures –all assume device driver is separate –differ in how multiple application management is implemented 1. each application manages all processes –everyone worries about synchronization –reduces portability of applications 2. management role within kernel of operating system –applications tied to operating system 3. management role as separate application maximum portability

6 The client-server architecture Need not be on same machine

7 Programming the application read-evaluation loop (macs) repeat read-event(myevent) case myevent.type type_1: do type_1 processing type_2: do type_2 processing... type_n: do type_n processing end case end repeat

8 Programming the application notification-based void main(String[] args) { Menu menu = new Menu(); menu.setOption(“Save”); menu.setOption(“Quit”); menu.setAction(“Save”,mySave) menu.setAction(“Quit”,myQuit)... } int mySave(Event e) { //save the current file } int myQuit(Event e) { //close down }

9 going with the grain system style affects the interfaces –modal dialogue box easy with event-loop (just have extra read-event loop) hard with notification (need lots of mode flags) –non-modal dialogue box hard with event-loop (very complicated main loop) easy with notification (just add extra handler) beware! if you don’t explicitly design it will just happen implementation should not drive design

10 Using toolkits Interaction objects –input and output intrinsically linked Toolkits provide this level of abstraction –programming with interaction objects (or –techniques, widgets, gadgets) –promote consistency and generalizability –through similar look and feel –amenable to object-oriented programming movepressreleasemove

11 interfaces in Java Java toolkit – AWT (abstract windowing toolkit) Java classes for buttons, menus, etc. Notification based; –AWT 1.0 – need to subclass basic widgets –AWT 1.1 and beyond -– callback objects Swing toolkit –built on top of AWT – higher level features –uses MVC architecture (see later)

12 UI development environment (UIDE) e.g. Visual Studio, Delphi –Provide high level of support for programmer but –Usually operating system specific

13 User Interface Management Systems (UIMS) UIMS add another level above toolkits –toolkits too difficult for non-programmers roles of UIMS –conceptual architecture –implementation techniques –support infrastructure

14 UIMS as conceptual architecture separation between application semantics and presentation improves: –portability – runs on different systems –reusability – components reused cutting costs –multiple interfaces – accessing same functionality –customizability – by designer and user These issues will be more important as ‘anytime anywhere’ computing becomes a reality

15 Seeheim model –arose out of implementation experience –but principal contribution is conceptual –concepts part of ‘normal’ UI language e.g. the lower box, the switch needed for implementation but not conceptual Presentation Dialogue Control Functionality (application interface) USER APPLICATION switch lexical syntacticsemantic

16 MVC model - view - controller MVC is largely pipeline model: input  control  model  view  output but in graphical interface –input only has meaning in relation to output e.g. mouse click –need to know what was clicked –controller has to decide what to do with click –but view knows what is shown where! in practice controller ‘talks’ to view –separation not complete model view controller

17 PAC presentation - abstraction - control abstractionpresentation control AP C AP C AP C AP C

18 PAC model PAC model closer to Seeheim –abstraction – logical state of component –presentation – manages input and output –control – mediates between them manages hierarchy and multiple views –control part of PAC objects communicate PAC cleaner in many ways … but MVC used more in practice (e.g. Java Swing)

19 Implementation of UIMS Techniques for dialogue controller menu networks state transition diagrams grammar notations event languages declarative languages constraints graphical specification –for most of these see chapter 16 N.B. constraints –instead of what happens say what should be true –used in groupware as well as single user interfaces (ALV - abstraction–link–view) see chapter 16 for more details on several of these

20 graphical specification what it is –draw components on screen –set actions with script or links to program in use –with raw programming most popular technique –e.g. Dreamweaver, Flash local vs. global –hard to ‘see’ the paths through system –focus on what can be seen on one screen

21 Trend The drift of dialogue control internal control (e.g., read-evaluation loop) external control (independent of application semantics or presentation) presentation control (e.g., graphical specification)

22 Summary Levels of programming support tools Windowing systems –device independence –multiple tasks Paradigms for programming the application –read-evaluation loop –notification-based Toolkits –programming interaction objects UIMS –conceptual architectures for separation –techniques for expressing dialogue