English  |  正體中文  |  简体中文  |  全文筆數/總筆數 : 80990/80990 (100%)
造訪人次 : 41645098      線上人數 : 1242
RC Version 7.0 © Powered By DSPACE, MIT. Enhanced by NTU Library IR team.
搜尋範圍 查詢小技巧:
  • 您可在西文檢索詞彙前後加上"雙引號",以獲取較精準的檢索結果
  • 若欲以作者姓名搜尋,建議至進階搜尋限定作者欄位,可獲得較完整資料
  • 進階搜尋


    請使用永久網址來引用或連結此文件: http://ir.lib.ncu.edu.tw/handle/987654321/81054


    題名: 條件判斷式事件驅動程式設計之C語言擴充;An Event-driven Programming Extension of Conditional Expression in C Language
    作者: 徐國維;HSU, KUO-WEI
    貢獻者: 資訊工程學系
    關鍵詞: 事件驅動程式設計;事件驅動架構;有限狀態機;嵌入式系統;事件分配器;Event-driven Programming;Event Driven Architecture;Embedded Systems;Finite-state Machine;Dispatcher
    日期: 2019-06-26
    上傳時間: 2019-09-03 15:31:35 (UTC+8)
    出版者: 國立中央大學
    摘要: 由於大多的程式都具有 UI 介面,不管是網頁程式,又或是作業系統,都是透過使用者的操作來決定程式的執行順序,使得程式與使用者的互動越來越重要。這種互動性高的程式在設計上往往透過事件驅動的方式來完成。
    事件驅動的程式設計是一種現在常見的電腦程式設計模型,程式執行的流程相較以往由程式設計師來決定,事件驅動的程式則是由與使用者或是與其他程式的互動(像是訊息的接收)來做決定。事件驅動的程式在撰寫難易度上,因使用的語言而有所不同。常見的語言像是 C#、JAVA、PYTHON 等,這些語言在基礎上就有支援事件的語法,因此使用上較為輕鬆。而當今廣泛運用的一種語言:C 語言,因為缺乏語言基礎上的支援,大多只能靠使用者的經驗去設計。
    本文將提出一套工具 C Event Dispatcher,協助程式設計者在 C 語言上事件驅動程式的撰寫。此工具的特色在於他的事件觸發條件不局限於以往使用的 timeout 與 signal,而是採用較為靈活的條件判斷式,讓程式設計者可以使用變數、邏輯運算等方式作事件的觸發。這樣的彈性讓我們在使用事件驅動的架構設計程式的控制表或有限狀態機時更加便利,可以依據不同的狀態設置不同的轉換條件。尤其是運用在嵌入式系統上,更可以達到動態的管理程式系統模型。不僅在使用上更加靈活,也增加程式碼的可維護性。
    ;Now a day, most of programs having UI interfaces. Whether it is a website program or an operating system, the process of the programs is determined by the user′s operating. So that, the interaction between the program and the user is more and more important. The design of such programs is often using event-driven design.
    Event-driven programming is a common programming paradigm in which the flow of program is determined by the event such as user motions or messages from other programs. How difficult it is to design the event-driven programs is also depending on the programming language. Programming languages like C#, JAVA, PYTHON, etc., are easier to design event-driven programs because of the supporting of language itself. However, one of widely using language: C language, because of the lack of language-based support, can only design event-driven programs by the experience from designers.
    This research will present a tool which is called “C Event Dispatcher”(CED) to assist programmers in writing event-driven programs in C language. The feature of CED tool is that it use different way to trigger the event handler. Without using timeout and signal, it use conditional expression to trigger the handler, giving user more flexibility to design event-driven program. User can use the mechanism of conditional expression to monitor a event variable, calling the event handler depending on the condition of the event variable. The CED tool also support the publish–subscribe pattern, increasing the flexibility of event-driven architecture and the maintainability of the code. The finite-state machine built by CED tool can dynamically decrease and increase the states in the finite-state machine. This advantage is suitable for using on the embedded system. It can make the embedded system more flexible and maintainable.
    顯示於類別:[資訊工程研究所] 博碩士論文

    文件中的檔案:

    檔案 描述 大小格式瀏覽次數
    index.html0KbHTML99檢視/開啟


    在NCUIR中所有的資料項目都受到原著作權保護.

    社群 sharing

    ::: Copyright National Central University. | 國立中央大學圖書館版權所有 | 收藏本站 | 設為首頁 | 最佳瀏覽畫面: 1024*768 | 建站日期:8-24-2009 :::
    DSpace Software Copyright © 2002-2004  MIT &  Hewlett-Packard  /   Enhanced by   NTU Library IR team Copyright ©   - 隱私權政策聲明