本論文針對以模型驅動架構(Model-Driven Architecture, MDA)為基礎的系統開發作一研究探討。透過實作的過程驗證MDA類別之轉換—PIM (Platform Independent Model)、PSM (Platform Specific Model)與CODE之間轉換的規則與關係,並針對PIM到PSM的轉換過程,整理提出一個快速將統一塑模語言 (Unified Modeling Language, UML) 類別圖轉換為PHP(Hypertext Preprocessor)程式樣版的方法與工具,節省人工轉換過程中需要了解MDA架構的時間,以及避免人為轉換的錯誤並且確保程式碼的品質。 在UML九種圖形之中,我們以最常用的兩種圖表類別圖 (Class Diagram) 與循序圖 (Sequence Diagram) 來作為系統分析時使用之圖表。系統分析之後遵循並落實MDA架構,將UML所產生的類別圖轉換為與PHP程式語言相關的程式樣版,並進一步的將程式樣版轉換為實際可執行的程式碼。本篇論文亦以集中採購網站建置為例來展示此系統開發之方法實作。
This thesis aims at a study of system development based on the model-driven architecture (MDA). The MDA To utilizing the unified modeling language (UML) as an analytical tool for the system, comply and implement the MDA architecture, and then transform the Class Diagram which is created by the UML into the template related to PHP programming language. Furthermore, the said template would be transformed into the physically executable codes, and finally, the development method of this system will be utilized to construct a centralized purchasing website in an applicable implementation. Additionally, while referring to the transforming process of PIM-to-PSM, we address the relevant method and tools applicable to rapidly transform the UML Class Diagram into PHP template so as to dramatically save the time necessary for thoroughly understanding such MDA architecture during the artificial transformation process as well as to avoid the likely human errors.