薛智文臺灣大學:資訊工程學研究所陳俊衛Chen, Chun-WeiChun-WeiChen2010-05-182018-07-052010-05-182018-07-052008U0001-1808200818263900http://ntur.lib.ntu.edu.tw//handle/246246/183674在許多不同的領域中都需要組態,像是處理器的組態,產品組態,軟體組態等,這些不同的組態都有其特定的專業知識。因此,延展性與彈性成為了組態工具的重大需求。然而,現今並沒有組態工具是設計來同時對應多個不同的領域。在這篇碩士論文中,我們提出了基於模型的可延整性組態工具(EMC Tool),可以簡單地整合新的領域。我們的工具採用了 EMCXML 作為輸入的規格,可以將專業知識用統一的 XML 元素模型化;同時我們也採用了模組化的設計,讓使用者在不同的狀況下能有更高的彈性。我們相信我們工具的可延展性與彈性可以減少開發者冗長的組態工作。Configuration is necessary in various domains, such as processors configuration, product configuration, and software configuration where the specific domain knowledge is required. Therefore, being extensible and flexible becomes a heavy demand for configuration tools. However, no configuration tool is designed for various domains simultaneously nowadays. In this thesis, we propose an Extensible Model-based Configuration Tool (EMC Tool) to allow easy integration of new domains. Our tool uses EMCXML as input format where the domain knowledge is modeled as uniform XML elements such that configuration can be easily created and extended. Also we adopt modulized design to achieve flexible configuration for users under different situations. We believe that such extensibility and flexibility of our EMC Tool will reduce the complexity of tedious configuration work for future developers.1 Introduction 1 Background 6.1 Configuration in Different Reasoning . . . . . . . . . . . . . . . . . . . . . . . . 6.1.1 Rule-based Reasoning Configuration . . . . . . . . . . . . . . . . . . . . 7.1.2 Model-based Reasoning Configuration . . . . . . . . . . . . . . . . . . . . 8.1.3 Case-based Reasoning Configuration . . . . . . . . . . . . . . . . . . . . 9.2 Generic Models of Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . 10.2.1 General Definition of Configuration Tasks . . . . . . . . . . . . . . . . . 11.2.2 Restricted Version of Configuration Tasks . . . . . . . . . . . . . . . . . 12.3 Domain Knowledge Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3.1 Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.3.2 Functional Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.3.3 Mapping from Functions to Components . . . . . . . . . . . . . . . . . . 14.4 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.4.1 VEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.4.2 AADL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Architecture 18.1 Goals of the EMC Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.2 EMCXML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.2.1 Key Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2.2 Display on Configuration Tool . . . . . . . . . . . . . . . . . . . . . . . . 23.2.3 Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23.2.4 Output Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25.2.5 Ports and Children . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26.2.6 Constraint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27.2.7 EMCXML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28.3 Extensible Model-based Configuration Tool . . . . . . . . . . . . . . . 30 Implementation 35.1 Input Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35.2 Configuration Description Layer . . . . . . . . . . . . . . . . . . 36.2.1 Apache Xerces2 Java Parser . . . . . . . . . . . . . . . . . . 38.2.2 Google Web Toolkit . . . . . . . . . . . . . . . . . . . . 39.2.3 Implementation of Element dependency . . . . . . 41.3 Output Layer. . . . . . . . . . . . . . . 42 An Example using EMC Tool 44 Conclusion and Future Work 48ibliography 49application/pdf678227 bytesapplication/pdfen-US組態領域專業知識XML模組化configurationdomaindomain knowledgemodulize基於模型的可延展性組態工具An Extensible Model-based Configuration Toolthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/183674/1/ntu-97-R95922149-1.pdf