Research and Realization of Scripting Interpreter in Knitting CAD System

Author
XuZuoZuo
Advisor
MoYiMin
School
Wuhan University of Technology
Major
Mechanical Design and Theory
Classification
TS183 Knitted use machines
Degree
Master's thesis
Year
2007
Downloads
98
Citations
0

Request the full text

Abstract

Knitting CAD system is a man-machine interface for Computerized Flat Knitting Machine system. The current knitting CAD system is almost developed just for one kind of machine, such as the Japanese Pattern Preparation system for SES-ONE, the German STOLL Pattern Preparation system for CMS. And these systems can not be developed by the different users in according to their own needs. In the modern time, commonality is becoming more and more important. Software lack of flexible can not meet the market demand.The main purpose of this paper is to upgrade the special knitting CAD system to a common system, make it to be the same industry as AutoCAD software. It is no longer only for one kind of machine, but widely applicable to all types of flat knitting machine. At the same time it provides open design interface for different designers, which not only to realize self-definition of the formula, but also to define different function-models. This flexible design is realized by embedding the script interpreter into CAD system, which is the bridge of user and knitting CAD system. User development can be done through the interpreter.At first, in the paper, some basic concepts of the scripting language and script interpreter are discussed, and the background, the contents and importance of this paper are pointed out. Then, the basic functions that the system should provide and design principles according to the features and requirements of the system are considered, and the overall structure of the script interpreter is designed on this basis. Next, developing tool and data structures that realizing the system should require are discussed in this paper.In the part of the paper about realization of the system. At first, two scripting languages--Delphi and C++ Script both supported by this scripting interpretation are introduced, including their grammar rules, the script structure, data types. Then the front-end script interpreter model is explained, including three modules: lexical analysis model, grammar analysis model and semantic checks model. A common object model is built by using object-oriented modeling approach, which is used to store various types of variable. And its inheritance is used to support some one variable.The establishment of grammar tree is one of the important part of the script interpreter. In this paper, a special data structure~XML document is used to store the tree. This data structure has clear hierarchy, and the father nodes and son nodes can be found easily. The method of making XML document is described in the paper. In the end, the way about how to self-define formula when the script interpreter used in the Knitting CAD system is explained.By the method of modeling and designing based on Object Modeling Technique (OMT), the main function of the script interpreter is realized in this paper, which C++ Script and Delphi Script are both supported. Man-machine interface of user and Knitting CAD System is realized by embedded method. The knitting CAD system with an open interface to users is realized, and users are allowed to make a secondary development.

Table of contents

Summary 3-4 Abstract 4-8 Chapter 1 Introduction 8-19 1.1 knitted CAD system Overview - 13 1.1.1 knit CAD system introduced 9-10 1.1.2 knit CAD system status quo at home and abroad 10-13 1.2 script interpreter Overview 13-17 1.2.1 Summary of scripting languages ?? 13-14 1.2.2 scripting language classification 14-15 1.2.3 script interpreter 15-17 1.3 The research purpose and significance 17 1.4 The research 17-18 1.5 Summary 18-19 Chapter 2 script interpreter overall framework design 19-34 2.1 scripting language designed 19 2.2 script interpreter characteristics 19-20 2.3 script interpreter functional analysis and design principles 20-22 2.3.1 software functionality 20-21 2.3. 2 design principles 21-22 2.4 script interpreter framework design 22-26 2.4.1 interface design 22-23 2.4. 2 script interpreter stage design 23-26 2.5 data structure choice 26-33 2.5.1 program 26-31 2.5 .2 XML Introduction 31-33 2.6 development tool selection 33 2.7 Summary 33-34 Chapter 3 scripting language 34-46 3.1 regular expressions and is described 34-37 3.2 syntax rules described the 3.3 script structure 37-43 43-44 3.4 data types 44-45 3.5 Summary 45-46 Chapter 4, the front end of the script interpreter to achieve 46-70 4.1 symbol table 46-51 4.1.1 storage identifier attribute 46-48 4.1.2 symbol table 48-51 < br /> 4.2 lexical 51-52 4.3 parsing 52-64 4.3.1 grammar 52-59 4.3.2 syntax tree the the 4.3.3 syntax analysis principle 59-61 the 61-64 4.4 Error Handling 64-66 4.5 interpreter front-end overall structure 66-69 4.6 Summary 69-70 Chapter 5 Application Examples of 70-72 Chapter 6 Summary and Outlook 72 -73 Reference 73-75 Acknowledgements 75-76 of papers published in the graduate 76-77 Author graduate student research projects 77

Related dissertations

  1. Research on Digital Watermarking of Text Besed on XML Document
    ChenLi ·Beijing Institute of Printing ·2014 ·Master's thesis
  2. The Design and Implement of Traffic Signal Control Software Based on Android
    FengWeiNa ·Zhengzhou University ·2013 ·Master's thesis
  3. Research on query optimization technology based on XML index
    WanLiYong ·Central South University ·2012 ·Master's thesis
  4. Energy-efficient Sorting Algorithm in Dbms
    WangJing ·Zhejiang University of Technology ·2012 ·Master's thesis
  5. Research on Tribon Model Data Extraction and Application of Naval Surface Ship Strength Test Based on Rules
  6. Research on Technologies of Inference-based Access Control and Audit
    YanHePing ·Fudan University ·2006 ·Doctoral dissertation
  7. Research and Application of Data Integration Processing Techniques Suitable for Statistic Analysis
    MaoJingXin ·Donghua University ·2008 ·Master's thesis
  8. Support processes recommended workflow design collaborative modeling tools
    WuYan ·Yangzhou University ·2007 ·Master's thesis
  9. A Model of Semantic Web in Special Domain
    RenBin ·Jilin University ·2004 ·Master's thesis
  10. XML document information retrieval technology research and Implementation
  11. Research on the Definition of Distributed Heterogeneous Geography Model Based on XML
    HuangYun ·Nanjing Normal University ·2007 ·Master's thesis
  12. XML Documents Retrieval Based on Bayesian Network
    ChaiBianFang ·Hebei University ·2006 ·Master's thesis
  13. The Research on Storing XML Document into Relational Storage Based on Segmented Bit Vector Coding Schemes
    HuCaiZuo ·Jiangxi Normal University ·2006 ·Master's thesis
  14. Design of the Stacking Robot’s Control System
    ChenLiMing ·Shanghai Jiaotong University ·2010 ·Master's thesis
  15. Teaching resources metadata representation and natural semantic query
  16. The Research and Realization of XML-Based Memory-System
    WuJuan ·Wuhan University of Technology ·2009 ·Master's thesis
  17. A Query Filtering Algorithm over XML Data Stream
    YinYan ·Shanxi University ·2010 ·Master's thesis
  18. Design and implementation of workflow in the pipeline in the production system
  19. Research on Data Integration and Inquery Based on XML
    BaiMin ·Xi'an University of Technology ·2009 ·Master's thesis
  20. Research and Application on the Key Technology of Data Pre-Processing Based on XML
    LiuZuo ·PLA Information Engineering University ·2010 ·Master's thesis