Event Driven Programming

Slides:



Advertisements
Similar presentations
Programming Paradigms and languages
Advertisements

1 Case Study: Starting the Student Registration System Chapter 3.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
Software Design & Development Software Design & Development Programming Types Event Driven Programming Event driven programming Is a type of programming.
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Describe the application and limits of procedural, object orientated and event driven programming. 
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Unit 20: Event Driven Programming
Welcome to CIS 083 ! Events CIS 068.
Event Driven Programming
CS101 Introduction to Computing Lecture Programming Languages.
Visual C++ Programming: Concepts and Projects
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Principles of Software Development 1 Principles Of Software Design and Development Types of language / Choosing a language.
Event Handling Tonga Institute of Higher Education.
1 Why Threads are a Bad Idea (for most purposes) based on a presentation by John Ousterhout Sun Microsystems Laboratories Threads!
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
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.
Programming Logic and Design Seventh Edition Chapter 12 Event-Driven GUI Programming, Multithreading, and Animation.
Events and Event Handling
Java FX: Scene Builder.
Unit 2 Technology Systems
Object-Orientated Programming
Programming & Scratch.
Topics Graphical User Interfaces Using the tkinter Module
Event Loops and GUI Intro2CS – weeks
CompSci 230 S Software Construction
Introduction to Programming and Visual Basic
Responding to Events Event Handling in Java
Exception and Event Handling
Introduction to Event-Driven Programming
Event-driven programming
Event loops 16-Jun-18.
Design Patterns Damian Gordon.
MVC and other n-tier Architectures
CS101 Introduction to Computing Lecture 19 Programming Languages
Introduction to .NET Framework Ch2 – Deitel’s Book
Part 3 Design What does design mean in different fields?
Unit 20: Event Driven Programming
Understanding an App’s Architecture
Understand Windows Forms Applications and Console-based Applications
Lesson 1: Buttons and Events – 12/18
Introduction to Events
Event Driven Programming
EE 422C Java FX.
Computer Programming.
VISUAL BASIC.
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Informatics 43 – May 26, 2016.
Event loops.
An Introduction to Software Architecture
Alice terms Chapter 3.
Event loops 17-Jan-19.
Event loops 17-Jan-19.
Chapter 7 –Implementation Issues
Operating Systems Lecture 3.
Middleware, Services, etc.
Introduction to AppInventor
Event loops 8-Apr-19.
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
Tonga Institute of Higher Education
Applying Use Cases (Chapters 25,26)
Applying Use Cases (Chapters 25,26)
Event loops.
Software Design Lecture : 6
Event loops.
Event loops 19-Aug-19.
Presentation transcript:

Event Driven Programming Key Features

Event Driven Programs Typically used for most modern day software applications examples include: word processing, spreadsheets, drawing packages etc. Usually used for GUIs where many types of events are generated i.e. clicking on a button or another object

Key features Event Handlers Trigger Functions Events Event Loops Forms Flexibility Service oriented Suitability for GUIs Simplicity of programming Time Driven

Event Handlers VB.Net uses subroutines for event handling, with the name of the object followed by the name of the event – see below: Event Event Handler

Trigger functions These are used along with the object’s name to determine with event handler to run Every object has a range of trigger functions, one for each possible event that can happen to it. For example, txtText could have an event handler for the following triggers: GotFocus, TextChanged etc... Temporal triggers mean triggers set off by duration of time State triggers are when the current situation causes a certain set of procedures to run What is the trigger here??

Event Loops Event Driven Programs have event loops built into the environment. The loops keep testing the interface to detect whether anything has happened, such as clicking on a button or typing into a textbox etc. Event Loops are also known as event listeners

Flexibility Programmers have enormous control over where to place code and how to start it. Every object has a good choice of events that a program can respond to. These events give an excellent level of control over exactly what the program will respond to when the user does something

Service Oriented A lot of networked applications use service oriented techniques so that different applications can reuse code components. Service oriented applications separate the service implementation from the program interface that uses the service. An example is a request from a database. XML (Extensible Markup Language) is commonly used for interfacing with such service oriented architectures.

Time Driven Time driven programming is often used in real time, where code execution is controlled by the computer clock. A program is divided into a set of tasks that need to be regularly activated. The activation pattern us stored into a dispatch table, where rules are used to schedule the tasks.