The search result changed since you submitted your search request. Documents might be displayed in a different sort order.
  • search hit 5 of 9
Back to Result List

A new approach to Event-Driven Programming

Ein neuer Ansatz zur ereignisgesteuerten Programmierung

  • In many applications, like embedded systems or systems with a strong user interaction, the program is mainly controlled by events. An event handler waits for any event to occur, and then processes that event by ignoring it or calling a corresponding action, a procedure declared in the program. In this way, events are coupled with actions and can influence the global state of the whole program. In order to design a well structured program, event handling and corresponding actions should be clearly separated. However, this aim is not always ensured. In this thesis, an approach is introduced, which enforces to design event-driven systems into two main parts: - An event-handling part, also called specification part, and - An action part, also called hand-built program part (hbp). The specification part is defined as a declarative specification of the event-handling in a special language. It is separated from the hand-built program part. Every event can only influence the state of this part, which contains the implementation of controlIn many applications, like embedded systems or systems with a strong user interaction, the program is mainly controlled by events. An event handler waits for any event to occur, and then processes that event by ignoring it or calling a corresponding action, a procedure declared in the program. In this way, events are coupled with actions and can influence the global state of the whole program. In order to design a well structured program, event handling and corresponding actions should be clearly separated. However, this aim is not always ensured. In this thesis, an approach is introduced, which enforces to design event-driven systems into two main parts: - An event-handling part, also called specification part, and - An action part, also called hand-built program part (hbp). The specification part is defined as a declarative specification of the event-handling in a special language. It is separated from the hand-built program part. Every event can only influence the state of this part, which contains the implementation of control functions, which calls the several actions defined in the hand-built program part and so connects both parts together. The prototype of a framework was implemented which allows to specify the eventhandling part by means of a special editor and generates from it some classes and templates. In order to complete the implementation, the programmer has to fill into the templates program code by hand (therefore called hand-built program part), which describe the actions.show moreshow less
  • In vielen Anwendungen, wie z.B. eingebetteten Systemen oder Systemen mit starker Nutzerinteraktion, wird das Programm hauptsächlich von Ereignissen gesteuert. Eine Ereignisbehandlungsroutine wartet auf das Auftreten eines beliebigen Ereignisses und verarbeitet dann dieses Ereignis, indem sie es ignoriert oder eine entsprechende Aktion aufruft, eine Prozedur, die im Programm deklariert ist. In dieser Weise sind Ereignisse mit Aktionen gekoppelt und können den globalen Zustand des gesamten Programms beeinflussen. Um ein wohl strukturiertes Programm zu entwerfen, sollten die Ereignisbehandlung und die entsprechenden Aktionen klar getrennt werden. Allerdings wird dieses Ziel nicht immer erreicht. In dieser Arbeit wird ein Ansatz eingeführt, welcher die Beschreibung ereignisgesteuerter Systeme in Form von zwei Teilen erzwingt: - einem Ereignisbehandlungsteil, welcher auch Spezifikationsteil genannt wird. - einem Aktionsteil, welcher auch als handgeschriebener Programmteil bezeichnet wird. Der Spezifikationsteil ist als eine deklarativeIn vielen Anwendungen, wie z.B. eingebetteten Systemen oder Systemen mit starker Nutzerinteraktion, wird das Programm hauptsächlich von Ereignissen gesteuert. Eine Ereignisbehandlungsroutine wartet auf das Auftreten eines beliebigen Ereignisses und verarbeitet dann dieses Ereignis, indem sie es ignoriert oder eine entsprechende Aktion aufruft, eine Prozedur, die im Programm deklariert ist. In dieser Weise sind Ereignisse mit Aktionen gekoppelt und können den globalen Zustand des gesamten Programms beeinflussen. Um ein wohl strukturiertes Programm zu entwerfen, sollten die Ereignisbehandlung und die entsprechenden Aktionen klar getrennt werden. Allerdings wird dieses Ziel nicht immer erreicht. In dieser Arbeit wird ein Ansatz eingeführt, welcher die Beschreibung ereignisgesteuerter Systeme in Form von zwei Teilen erzwingt: - einem Ereignisbehandlungsteil, welcher auch Spezifikationsteil genannt wird. - einem Aktionsteil, welcher auch als handgeschriebener Programmteil bezeichnet wird. Der Spezifikationsteil ist als eine deklarative Spezifikation der Ereignisbehandlung in einer Spezialsprache definiert. Er ist vom handgeschriebenen Programmteil getrennt. Jedes Ereignis kann nur den Zustand dieses Teils beeinflussen, welcher die Implementierung von Steuerfunktionen enthält und die verschiedenen Aktionen aufruft, die im handgeschriebenen Programmteil definiert sind, und dadurch beide Teile miteinander verbindet. Es wurde der Prototyp eines Frameworks implementiert, welches es erlaubt, den Ereignisbehandlungsteil mittels eines speziellen Editors zu spezifizieren und daraus verschiedene Klassen und Templates zu generieren. Um die Implementierung zu vervollständigen, muss der Programmierer Programmcode von Hand in die Templates einfügen (daher die Bezeichnung "handgeschriebener Programmteil"), welcher die Aktionen beschreibt.show moreshow less

Download full text files

Export metadata

Additional Services

Search Google Scholar Stastistics
Metadaten
Author: Mosbah Mohamed ELssaedi
URN:urn:nbn:de:kobv:co1-opus-4574
Referee / Advisor:Prof. Dr. Peter Bachmann
Document Type:Doctoral thesis
Language:English
Year of Completion:2008
Date of final exam:2008/07/17
Release Date:2008/07/29
Tag:Event-Driven Programming; Spezifizierung
Event-Driven Programming; Specification
GND Keyword:Ereignisgesteuerte Programmierung
Institutes:Fakultät 1 MINT - Mathematik, Informatik, Physik, Elektro- und Informationstechnik / FG Programmiersprachen und Compilerbau
Institution name at the time of publication:Fakultät für Mathematik, Naturwissenschaften und Informatik (eBTU) / LS Praktische Informatik / Programmiersprachen und Compilerbau
Einverstanden ✔
Diese Webseite verwendet technisch erforderliche Session-Cookies. Durch die weitere Nutzung der Webseite stimmen Sie diesem zu. Unsere Datenschutzerklärung finden Sie hier.