Top-Rated Free Essay
Preview

Unit 14 Event Driven Programming D1

Good Essays
532 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 14 Event Driven Programming D1
D1 – Non-Graphical Event Driven Applications

D1 requires you to be able to evaluate the suitability of event driven programs for non-graphical applications…

Introduction
Many electrical devices are “event driven”. An event simply means an input or output. For example, a computer is programmed to respond to a mouse click, or a keyboard press. When this event (input) happens, an action (output) will occur, for example opening of a window, or text appearing on a word processor.

However some applications that are event driven don’t have a graphical display to show the events happening. We may call some of these devices “Intelligent”.
(An “intelligent” application is one that has been programmed to understand when an event has happened, without the need for a graphical visual output.)

Identify two applications that either use a text-based interface or have no graphical components. A program with no graphical components might be PC-based or a control application for a device such as a burglar alarm or fire alarms; and an "intelligent" microwave or an "intelligent" washer/dryer.
You need to identify the events (inputs) that each of these applications would receive and say how suitable an event driven language might be to handle those events.

Application 1: Web Server
Idly sits around doing nothing until a client makes request to view a page. The application detects that the client has connected to the server. An event handler then allows this user to download and view the page. This wouldn’t be considered an intelligent application.
An event driven language such as Visual Basic would be suitable to handle the events happening in this program, as it could prioritise the events in case multiple requests were sent at the same time.

Application 2: “Intelligent” Washing Machine
Event Driven Programming would be quite suitable for use with a non-graphical application such as a washing machine. We know this type of programming would be suitable because a washing machine needs an Event Trigger (the user pushing a button, or turning a dial) to begin the cycle. The washing machine will not function without this trigger.
Event Driven Programming has a Time Driven feature, this will check for various events (spin cycle, dry cycle, and stopping of the machine) making EDP very suitable.
As the machine goes through its various cycles, it must do so based on the current load and settings of the machine. These cycles cannot be a fixed value so the machine must trigger the events based on the correct level of water in the drum and the weight of the washing.
Finally, when the door to the washer is opened, the washer must stop immediately. This could happen at any time, so the washer needs to have a trigger that the machine will react to, and stop spinning.
Conclusion
To conclude, event driven programming is very suitable for use with non-graphical applications. This is due to its simplicity, for example, being idle until a trigger activates an event. EDP’s suitability with these applications could also be down to the fact that multiple programming languages can be used to design the application. This makes it very easy to make as you are not relying on just one language.

You May Also Find These Documents Helpful

  • Good Essays

    This software is going to have a web server which will be connected to whenever any web service is needed. This server is also going to contain the database. Thus in needs for data also, system will communicate with this server. This communication is capable with the help of JDBC. The data will be synchronized and consistent data will be kept in the server.…

    • 612 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Based on the Greiner (2009) article, define an applet and distinguish one from a servlet.…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Events: A mechanism for communication between objects. Used in building loosely coupled applications and helps extending applications.…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Netw420 Week 4 lab report

    • 726 Words
    • 3 Pages

    Many Network Management Systems have a log and event manager that collects data and logs event data from all of the devices on the network and performs real-time correlation. When an event is initiated an agent initiates an interaction by creating an object describing an event. Event messages from the various distributed components are processed based on a predefined policy. Most event alerts can be categorized as an informational alert, a warning alert or a critical alert.…

    • 726 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    There are many reasons why Windows operating system could be called an event-driven application. The first reason why Windows operating system might be viewed as an event-driven application is that the start button on the operating system can be activated through a click event. This means if a user uses their mouse to click on the start button, the start button will activate and the start buttons list will appear with other functions. Nearly everything on the Windows operating system is event-driven. Another example of this is the fact that you can drag and drop most things on the operating system, you can drag applications and files to the recycling bin to dispose of, or you can drag an application or file to any destination on your computer, such as the documents folder in your hard drive. One more example that the Windows operating system can be referred to as an event-driven application, is the keyboard. The keyboard is event-driven because when a user presses a key on the keyboard, it is registered as a Key Down command. The Key Down command is linked with data that is also linked with the pressing of the key.…

    • 342 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Cis 210 Research Paper

    • 1323 Words
    • 6 Pages

    * The use case should include a graphical representation using Visio or equivalent software and a text description of the events.…

    • 1323 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Mini Case

    • 293 Words
    • 2 Pages

    a. Classify the two alternatives in terms of what type of application architecture they use.…

    • 293 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    o Explain some of the graphical user interfaces (GUIs) and communications messages that occur during the operation of a microwave.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Exam 1

    • 6600 Words
    • 27 Pages

    3. Name the program that coordinates computer resources, provides an interface between users and the computer, and runs applications?…

    • 6600 Words
    • 27 Pages
    Good Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Computer Concepts Exam 1

    • 951 Words
    • 4 Pages

    According to the textbook authors, what type of software serves as the interface between the user, application software, and the computer's hardware? System Software…

    • 951 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    M1 - Describe the features of an event driven language that make it suitable for creating a GUI…

    • 1240 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    The best technological solution I propose Gateways RFP to use is to implement a distributed system. A distributed system is an application that has several autonomous components that are connected by a…

    • 682 Words
    • 3 Pages
    Good Essays