KR20020033930A - Method for generation of system software interface in man-machine interface module for communication system - Google Patents

Method for generation of system software interface in man-machine interface module for communication system Download PDF

Info

Publication number
KR20020033930A
KR20020033930A KR1020000064164A KR20000064164A KR20020033930A KR 20020033930 A KR20020033930 A KR 20020033930A KR 1020000064164 A KR1020000064164 A KR 1020000064164A KR 20000064164 A KR20000064164 A KR 20000064164A KR 20020033930 A KR20020033930 A KR 20020033930A
Authority
KR
South Korea
Prior art keywords
interface
module
function
system software
command
Prior art date
Application number
KR1020000064164A
Other languages
Korean (ko)
Inventor
강재호
Original Assignee
구자홍
엘지전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 구자홍, 엘지전자주식회사 filed Critical 구자홍
Priority to KR1020000064164A priority Critical patent/KR20020033930A/en
Publication of KR20020033930A publication Critical patent/KR20020033930A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/425Lexical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Abstract

PURPOSE: A system software interface generation method is provided to construct rules on an interface for a system software in relation with TL1(Transaction Language 1) instructions, to analyze the rules with a syntax analyzer, and to automatically generate interface function codes. CONSTITUTION: The method comprises steps of enabling an MML(Man Machine Language) tool to read a script file and perform a syntax analysis on the script file(ST31-ST33), enabling the MML tool to generate a database, rule check functions and interface functions according to the syntax analysis(ST34), enabling an MMI(Man Machine Interface) core module to read characters input by an operator and to perform the syntax analysis on the input characters(ST21-ST23), calling the rule check functions according to the syntax analysis on the input characters and performing the rule check(ST24), and calling the interface function according to the instructions generated by the rule check function, and enabling each interface function to call corresponding system software(ST25-ST26).

Description

전송시스템의 엠엠아이 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법 {Method for generation of system software interface in man-machine interface module for communication system}{Method for generation of system software interface in man-machine interface module for communication system}

본 발명은 전송시스템 또는 통신시스템의 MMI(Man-Machine Interface)에 관한 것으로, 특히 MML(Man-Machine Language)로써 TL1(Transaction Language 1)을 사용하는 경우에 각각의 TL1 명령어와 관련된 시스템 스프트웨어와의 인터페이스가 필요하게 되는데, 인터페이스에 관한 규칙을 자체적으로 정의한 스크립트 언어로구성하고 구문분석기를 사용하여 해석한 후, 인터페이스 함수의 코드를 자동으로 생성시키기에 적당하도록 한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법에 관한 것이다.The present invention relates to a MMI (Man-Machine Interface) of a transmission system or communication system, and in particular, when using TL1 (Transaction Language 1) as a MML (Man-Machine Language), the system software associated with each TL1 instruction. An interface is required, which creates an interface to the system software in an MMI module that is adapted to automatically generate code for the interface functions after constructing the rules for the interface in its own scripting language, interpreting it using a parser. It is about a method.

일반적으로 전송시스템의 MMI를 구성할 때 운용자가 입력한 MML 명령어의 구문을 분석하는 모듈이 존재하게 되며, 시스템에서 명령어와 관련된 실제동작을 수행할 수 있는 시스템 소프트웨어의 함수가 존재한다.In general, when configuring MMI of a transmission system, a module for parsing an MML instruction input by an operator exists, and a system software function capable of performing an actual operation related to an instruction in a system exists.

이러한 MMI 구문분석 모듈의 주요기능을 보면,The main features of this MMI parsing module are:

어휘해석기(Lexical Analyzer)는 입력 문자열에서 의미를 가지는 문법 최소단위들을 분리하는 기능을 위한 것이고, 구문해석기(Syntax Analyzer)는 입력 문자열에서 MML 문법에 따라 구성요소를 분석하는 기능을 담당하는 것이다.The lexical analyzer is for separating the grammatical minimum units in the input string, and the syntax analyzer is responsible for analyzing components according to the MML grammar in the input string.

그리고 문법해석기(Semantic Analyzer)는 구성요소가 장비의 MML 명령어 정의에 맞는 적절한 값들을 가지는지를 분석하기 위한 것이며, 함수할당기(Function Dispatcher)는 적절한 명령임이 판단되었을 때 시스템 소프트웨어의 해당 함수를 호출하기 위한 것이다.The semantic analyzer is designed to analyze whether a component has the appropriate values according to the MML instruction definition of the device. The function dispatcher calls the corresponding function of the system software when it is determined that the command is appropriate. It is for.

한편, 시스템 소프트웨어 함수는 상기 각 모듈들에 의해 구문분석이 이루어지면, 해당 구문의 명령어가 요구하는 일정한 기능을 수행하기 위한 것이다. 이때 소프트웨어 모듈은 명령어의 처리를 위해 필요한 기능을 수행할 수 있으며, 시스템의 요구에 부응할 수 있을 정도의 함수들이 존재하게 된다.On the other hand, when the system software function is parsed by each of the modules, it is to perform a certain function required by the command of the syntax. In this case, the software module may perform a function necessary for processing an instruction, and there are functions that are sufficient to meet the requirements of the system.

본 발명은 시스템 소프트웨어의 인터페이스 생성에 관한 것으로, 이에 대비되는 종래기술을 설명하면 다음과 같다.The present invention relates to the generation of an interface of the system software, which will be described below.

먼저, 도1은 종래의 MMI 작업을 위한 모듈의 블록도이고, 도2는 종래기술에 의한 MMI 작업의 흐름도이다.First, FIG. 1 is a block diagram of a module for a conventional MMI task, and FIG. 2 is a flowchart of an MMI task according to the prior art.

상기 도1에 도시된 바와 같이 종래기술에서 MMI 모듈은 토큰 생성, 문법체크, 시스템 소프트웨어의 함수를 호출하여 주는 기능을 모두 가지고 있었을 뿐만 아니라 명령어의 추가, 규칙의 변경에 따른 수정이 불가피한 종속성을 가지고 있는 모듈이었다.As shown in FIG. 1, in the prior art, the MMI module not only has all functions of generating tokens, checking grammars, and calling functions of system software, but also has dependencies inevitable by addition of instructions and modification of rules. It was a module.

MMI 모듈은 구문분석을 통해 입력되는 명령어의 종류를 판단하여 그 명령어를 시스템 소프트웨어 함수와 비교하게 된다.The MMI module determines the type of command input through parsing and compares the command with system software functions.

즉, 명령어의 구문분석을 통해 생성된 토큰(Token)들은 MML 문법에 적절하게 위치하여 구성되었는가 검사되며, 상기 과정을 거침으로써 각 구성요소들의 값을 알수 있다. 이어서 각 구성요소들이 유효하고 적절한 값을 가지고 있는지 검사하게 되는데, 이전 과정들과 마찬가지로 개발자가 정의해 놓은 장비에서의 MML 규칙의 정의에 기초하여 검사하게 된다.In other words, the tokens generated through the parsing of the command are checked to be properly located and constructed in the MML grammar, and the values of each component can be known by going through the above process. Each component is then checked for valid and appropriate values, as in the previous steps, based on the definition of the MML rules in the device defined by the developer.

이러한 입력명령이 오류가 없음을 확인한 후 해당 명령을 실행하기 위한 시스템 스프트웨어 함수를 호출하는 함수할당(Function Dispatch) 동작이 수행된다. 이때 MMI 모듈과 시스템 소프트웨어간의 인터페이스는 MMI 코드내에서 미리 지정되어야 한다.After the input command is confirmed that there is no error, a function dispatch operation is performed to call a system software function to execute the command. At this time, the interface between the MMI module and the system software should be specified in advance in the MMI code.

전송시스템에서 운용자가 입력한 MML 명령이 시스템 소프트웨어의 함수에 전달되는 과정을 도2를 참조하여 설명한다.A process in which the MML command input by the operator in the transmission system is transferred to a function of the system software will be described with reference to FIG.

먼저, 운용자가 입력한 문자열을 MML 입력모듈를 통하여 읽어 들인 후,MMI모듈이 어휘해석기(Lexical Analyzer)를 이용하여 MML 명령에서 의미를 가지는 문법의 최소단위들을 분리한다(ST11~ST12).First, the character string input by the operator is read through the MML input module, and the MMI module separates the minimum units of grammar that have meaning in the MML command by using a lexical analyzer (ST11 to ST12).

입력 명령어에 대한 구문분석(Parsing) 분리가 이루어지면, 상기 분리된 구문에 대한 문법검사(Rule Check)를 수행하여 적절한 체계로 되어 있는지를 확인하고 해당 체계에 따른 각 구문의 의미를 분석한다(ST13).When parsing separation of input commands is performed, a grammar check on the separated syntax is performed to confirm whether the proper system is formed and the meaning of each syntax according to the corresponding system is analyzed (ST13). ).

상기 문법검사를 통해 해당 명령어의 해석되는데, 이때 단일의 명령어는 해당 명령어의 요구를 완수하기 위한 일련의 명령을 포함하게 된다.The command is interpreted through the grammar test, where a single command includes a series of commands for fulfilling the request of the command.

구문분석을 통해 명령어의 수행에 필요한 각 명령의 체제가 확인되면, 해당 명령(Command)을 시스템 소프트웨어의 종류와 비교하게 된다(ST14). 그래서 명령의 수행에 요구되는 시스템 소프트웨어의 함수(Function)가 할당되면, MMI 모듈은 해당 시스템 소프트웨어 함수를 호출하게 된다(ST15~ST16).When the syntax of each command necessary for the execution of the command is confirmed through parsing, the corresponding command is compared with the type of system software (ST14). Thus, when a function of the system software required for the execution of the command is allocated, the MMI module calls the corresponding system software function (ST15 to ST16).

시스템 소프트웨어 함수가 호출됨으로써 상기 구문분석된 명령어의 처리에 필요한 함수가 동작하게 되고, 상기 함수의 동작에 의해 요구된 명령어의 처리가 이루어지는 것이다.By calling a system software function, a function necessary for processing the parsed instruction is operated, and the processing of the instruction required by the operation of the function is performed.

이처럼 종래기술은 MMI 모듈의 동작에 있어서, 운용자에 의해 입력되는 명령어의 구문분석이 수행된 후 해당 명령어의 수행에 필요한 시스템 소프트웨어 함수의 호출이 이루어지며, 이때 MMI 모듈과 시스템 소프트웨어간 인터페이스는 미리 지정되어지는 것이다.As described above, in the operation of the MMI module, after parsing a command input by an operator is performed, a call of a system software function necessary for the execution of the command is made, and the interface between the MMI module and the system software is previously designated. It is done.

그런데 상기 설명한 종래기술에 있어서, MMI 모듈은 MML 명령어 세트와 각 명령어의 규칙정의에 매우 종속적이다. 따라서 명령어에 대한 정의가 수정되어야할 경우, MMI 모듈의 코드도 수정이 되어야 하며 MMI 모듈과 시스템 소프트웨어와의 인터페이스도 수정이 되어야 하는 단점이 있었다.However, in the prior art described above, the MMI module is very dependent on the MML instruction set and the rule definition of each instruction. Therefore, when the definition of the instruction is to be modified, the code of the MMI module must be modified and the interface between the MMI module and the system software must be modified.

상기 시스템 소프트웨어의 인터페이스 수정 및 MMI 모듈 코드의 수정은 오류의 가능성이 있으며, 시스템 운용의 효율을 저하시키는 원인이 될수 있었다. 즉, 코드의 호환성(Compatibility)이 낮아 시스템 운용환경이 변화되는 경우에 종래의 코드를 그대로 사용할 수 없었던 것이며, 새로운 모듈의 작성에 소요되는 시간적 인적 노력을 필요로 하는 불편이 있었던 것이다.The modification of the interface of the system software and the modification of the MMI module code may be an error, and may cause a decrease in the efficiency of system operation. In other words, when the system operation environment is changed due to the low compatibility of the code, the conventional code cannot be used as it is, and there is a inconvenience that requires time and effort required to create a new module.

이러한 종래기술의 단점은 시스템 소프트웨어의 인터페이스 및 MMI 모듈 코드를 MML 명령어 세트와 그 규칙정의에 종속되지 않도록 함으로써 극복할 수 있을 것이다.This drawback of the prior art may be overcome by making the system software's interface and MMI module code independent of the MML instruction set and its rule definitions.

이에 본 발명은 상기와 같은 종래의 제반 문제점을 해소하기 위해 제안된 것으로, 본 발명의 목적은 MMI(Man-Machine Interface) 모듈에 있어서, MML(Man-Machine Language)로 TL1(Transaction Language 1)을 사용하는 경우에 각각의 TL1 명령어와 관련된 시스템 스프트웨어와의 인터페이스가 필요하게 되는데, 인터페이스에 관한 규칙을 자체적으로 정의한 스크립트 언어로 구성하고 구문분석기를 사용하여 해석한 후, 인터페이스 함수의 코드를 자동으로 생성시키기에 적당하도록 한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법을 제공하는 데 있다.Accordingly, the present invention has been proposed to solve the conventional problems as described above, and an object of the present invention is to use a Man-Machine Language (MML) module in TL1 (Transaction Language 1). In case of use, interface with the system software related to each TL1 command is required.The rules for the interface are composed in a script language that defines its own, analyzed using a parser, and automatically generates the code of the interface function. One MMI module provides a way to create an interface to system software.

상기와 같은 목적을 달성하기 위하여 본 발명에 의한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법은, 특정모듈이 일정한 체계로 작성된 스크립트 파일을 읽어들여 상기 스크립트 파일에 제시된 각 명령어의 처리에 요구되는 정의규칙 및 함수를 포함하는 데이터베이스를 구축하는 단계와; MMI 모듈이 운용자의 입력 문자열을 읽어들여 구문분석을 수행하는 단계와; 상기 입력문자열 대한 구문분석의 결과에 따라 상기 데이터베이스에 저장되어 있는 문법검사 함수를 호출하여 문법검사를 수행하는 단계와; 상기 문법검사 함수가 해석한 명령어에 따라 상기 데이터베이스에 저장되어 있는 인터페이스 함수를 호출하고, 상기 각 인터페이스 함수가 해당 시스템 소프트웨어를 호출하는 단계를 수행함을 그 기술적 구성상의 특징으로 한다.In order to achieve the above object, the interface generation method for the system software in the MMI module according to the present invention includes a definition rule required for processing each command presented in the script file by reading a script file written in a specific system by a specific module. And a database comprising a function; MMI module reads the operator's input string to perform parsing; Performing a grammar test by calling a grammar test function stored in the database according to a result of parsing the input string; According to the command interpreted by the grammar test function, the interface function stored in the database is called, and each interface function performs a step of calling the corresponding system software.

도1은 종래의 MMI 모듈의 블록도이고,1 is a block diagram of a conventional MMI module,

도2는 종래기술에 의한 MMI 모듈의 동작 흐름도이고,2 is an operation flowchart of an MMI module according to the prior art,

도3은 본 발명의 일실시예에 의한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법의 흐름도이며,3 is a flowchart of a method for generating an interface for system software in an MMI module according to an embodiment of the present invention;

도4는 도3에 적용되는 MMI 모듈의 블록도이다.4 is a block diagram of an MMI module applied to FIG. 3.

이하, 상기와 같은 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법의 기술적 사상에 따른 실시예에 의거 본 발명의 구성 및 동작을 설명한다.Hereinafter, the configuration and operation of the present invention will be described based on an embodiment according to the spirit of the method for generating an interface to system software in the MMI module as described above.

먼저, 도3은 본 발명의 일실시예에 의한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법의 흐름도이고, 도4는 도3에 적용되는 MMI 모듈의 블록도이다.First, FIG. 3 is a flowchart of a method for generating an interface for system software in an MMI module according to an embodiment of the present invention, and FIG. 4 is a block diagram of an MMI module applied to FIG.

상기 도3에 도시된 바와 같이 본 발명의 적절한 실시예는, MMLTOOL이 스크립트 파일을 읽어들여 구문분석을 수행하는 단계(ST31~ST33)와; 상기 구문분석 결과에 따라 데이터베이스, 문법검사(Rule Check) 함수 및 인터페이스 함수를 생성하는 단계(ST34)와; MMI 코어 모듈이 운용자의 입력 문자열을 읽어들여 구문분석을 수행하는 단계(ST21~ST23)와; 상기 입력문자열 대한 구문분석의 결과에 따라 상기MMLTOOL에 의해 생성된 문법검사 함수를 호출하여 문법검사를 수행하는 단계(ST24)와; 상기 문법검사 함수가 해석한 명령어에 따라 상기 MMLTOOL에 의해 생성된 인터페이스 함수를 호출하게 되면, 상기 각 인터페이스 함수가 해당 시스템 소프트웨어를 호출하는 단계(ST25~ST26)를 포함하여 구성된다.As shown in FIG. 3, a preferred embodiment of the present invention includes the steps of MMLTOOL reading a script file to perform parsing (ST31 to ST33); Generating a database, a gram check function and an interface function according to the parsing result (ST34); MMI core module reads the operator's input string to perform parsing (ST21 ~ ST23); Performing a grammar check by calling a grammar check function generated by the MMLTOOL according to a result of parsing the input string (ST24); When the interface function generated by the MMLTOOL is called according to the command interpreted by the grammar test function, each interface function includes a step of calling the corresponding system software (ST25 to ST26).

이와 같이 구성되는 방법의 동작을 설명하면 다음과 같다.The operation of the method configured as described above is as follows.

본 발명이 제시하는 방법은 MMI(Man-Machine Interface) 모듈의 구성시, 인터페이스 정의와 MML(Man-Machine Language) 코드 등에 종속되는 내용들을 제거하게 된다. 즉, 시스템 명령어 정의에 종속적인 규칙 정의부분과 시스템에 관계없이 공통적으로 사용할 수 있는 MMI 코어모듈을 분리하여 구성하고 처리하는 것이다.The method proposed by the present invention removes the contents dependent on the interface definition, MML (Man-Machine Language) code, and the like when configuring the MMI module. In other words, it separates the rule definition part depending on the system command definition from the MMI core module that can be used in common regardless of the system, and configures and processes it.

이러한 기능의 구현은 MMI 모듈의 구성에 있어서, 각 명령어에 대한 규칙들을 자체적으로 정의한 스크립트 언어를 이용하여 별도로 기술한 스크립트 파일을 작성함으로써 가능하게 된다. 상기 스크립트 파일이 생성되면, 일정한 수단을 이용하여 그 파일의 내용을 읽은 후 명령어에 의존적인 성격을 갖는 MMI 모듈의 일부를 구성할 소스 코드를 생성하게 된다.The implementation of such a function can be achieved by creating a script file described separately using a scripting language that defines rules for each command in the configuration of the MMI module. When the script file is generated, the contents of the file are read by using a certain means, and then source code for constituting a part of the MMI module having a characteristic dependent on the command is generated.

즉, 전송시스템의 MMI 모듈 구성시 운용자가 입력한 MML 명령어와 시스템에서 상기 명령어의 처리를 수행하는 시스템 소프트웨어 함수간을 연결하기 위한 인터페이스가 필요한데, 개발과정 중에 있는 명령어 세트가 변경 또는 추가되는 경우에도 스크립트 파일상에 제시된 명령어의 수행에 적합하도록 인터페이스를 자동변경하게 되는 것이다.In other words, an interface for connecting an MML instruction input by an operator when configuring an MMI module of a transmission system and a system software function for processing the instruction in the system is required, even when the instruction set in the development process is changed or added. The interface is automatically changed to suit the execution of the commands presented in the script file.

도4에 도시된 바와 같이, 상기 스크립트 파일을 읽어 소스코드를 생성하는기능을 담당하는 모듈은 MMLTOOL이다.As shown in Figure 4, the module in charge of the function of generating the source code by reading the script file is MMLTOOL.

이때 종래기술과 같이, 개별적인 명령어의 특성과 관련되지 않는 MML 명령 문자열의 구문분석 등에 공통적으로 사용될 수 있는 MMI 코어모듈도 동시에 존재하게 된다.At this time, as in the prior art, there is also an MMI core module that can be commonly used for parsing MML instruction strings that are not related to the characteristics of individual instructions.

그리하여 MMI 모듈에서 명령어 세트와 상기 세트내의 각 명령어에 대한 규칙성 및 인터페이스 정의 등과 같이 개발과정에서 가변적인 내용들은 모두 제거될 수 있으며, 이 내용들은 자체적으로 정의한 스크립트 언어를 사용하여 스크립트 파일에 기술하게 된다.Thus, in the MMI module, variable content can be removed during development, such as the instruction set and the regularity and interface definition of each instruction in the set. These contents can be written in a script file using a script language defined by itself. do.

따라서 본 발명에서 각 MMI 모듈은 입력 문자열의 어휘해석기(Lexical Analyzer) 및 구문해석기(Syntax Analyzer)의 기능만을 주로 수행하게 된다.Therefore, in the present invention, each MMI module mainly performs only functions of a lexical analyzer and a syntax analyzer of an input string.

스크립트 언어로 기술된 내용을 해석하여 관련기능을 수행하는 코드를 생성하기 위하여 MMLTOOL로 지칭되는 모듈을 사용한다. MMLTOOL의 구성은 다음과 같다.A module called MMLTOOL is used to interpret the content described in the scripting language and generate code to perform related functions. The composition of MMLTOOL is as follows.

우선, 어휘해석기(Lexical Analyzer)는 스크립트 파일의 문자를 스크립트 언어 문법체계에 맞는 최소단위인 토큰(Token)들로 분리하는 기능을 담당하게 되며, 구문해석기(Syntax Analyzer)는 토큰들을 받아 스크립트 언어 문법에 맞게 구성요소들을 분리하는 기능을 담당한다.First of all, the lexical analyzer is responsible for separating the script file characters into tokens, which are the minimum units for the script language grammar system, and the syntax analyzer receives the tokens and takes the script language grammar. It is responsible for separating the components accordingly.

그리고 문법해석기(Semantic Analyzer)는 구성요소들의 값을 분석하고 그 의미를 해석하는 기능을 담당하며, 중간코드 생성기(Intermediate Code Generator)는 스크립트 언어로 기술된 내용을 데이터베이스로 저장하고 이를 처리할 수 있는 함수들의 소스코드를 생성하는 기능을 담당한다.In addition, the Semantic Analyzer is responsible for analyzing the values of the components and interpreting their meanings. The Intermediate Code Generator can store and process the contents described in the scripting language as a database. It is responsible for generating source code of functions.

더불어 인터페이스 생성기(Interface Generator)는 스크립트 파일의 내용에서 인터페이스와 관련된 내용을 찾아 이를 구현하기 위한 소스코드를 생성하는 기능을 담당한다. 상기에서 인터페이스란 MMI 모듈과 시스템 소프트웨어간의 인터페이스를 지칭하는 것으로, 이하 상기 의미로 사용한다.In addition, the Interface Generator is responsible for finding the contents related to the interface from the contents of the script file and generating the source code to implement it. In the above description, the interface refers to an interface between the MMI module and system software, and is used in the following meaning.

상기와 같은 소프트웨어 모듈 또는 루틴으로 구성되는 MMLTOOL을 실행시키게 되면, MML 문법과 관련된 내용들이 데이터베이스와 소스코드 레벨의 함수로써 생성된다. 그리고 MMI와 시스템 소프트웨어 사이에 필요한 인터페이스들이 생성된다.When executing MMLTOOL composed of the above software modules or routines, the contents related to MML grammar are generated as functions at the database and source code level. And the necessary interfaces between MMI and system software are created.

상기 각 모듈들간의 연관동작을 도3을 참조하여 보다 구체적으로 설명하기로 한다.An association operation between the modules will be described in more detail with reference to FIG. 3.

우선, 명령어에 대한 규칙들과 시스템 소프트웨어간의 인터페이스에 관한 규칙들을 자체적으로 정의한 스크립트 언어를 이용하여 파일에 기술하게 된다. 상기 체계로 생성된 파일을 스크립트 파일이라 칭한다.First, the rules for commands and rules for the interface between system software are described in a file using a script language that defines its own. The file generated by the above scheme is called a script file.

본 발명에 이용되는 스크립트 언어는 상기 제시된 내용들을 기술하기에 적합하도록 문법과 의미를 규정하게 된다. 이러한 스크립트 파일에는 명령어 세트에 대한 목록, 그리고 MMI와 시스템 소프트웨어간의 인터페이스 규칙이 기술되는 것으로, 각 명령어들의 사용규칙과 파라미터(Parameter)에 대한 정의, 파라미터로 입력이 가능한 값들의 범위, 및 보안등급에 관한 내용과 그 밖의 선택적 기술사항(Option)들을 기술하게 된다.The scripting language used in the present invention defines the grammar and the meaning so as to be suitable for describing the above contents. These script files contain a list of command sets and the interface rules between the MMI and the system software.These rules define the usage rules and parameters for each command, the range of values that can be entered as parameters, and the security level. And other optional descriptions.

예를 들어, 트랜잭션 랭귀지(Transaction Language)인 TL1 명령어별 문법규칙 정의(Rule Definition)와 인터페이스 정의(Interface Definition) 등이 스크립트 파일내에 기술될 수 있다.For example, TL1 instruction-specific grammar rule definitions and interface definitions, which are transaction languages, may be described in a script file.

상기 체계로 작성된 스크립트 파일을 입력으로 하는 MMLTOOL 모듈은 스크립트 언어 문법에 따라 어휘해석기와 구문해석기를 호출하여, 상기 스크립트 파일내 기술된 각 명령어의 의미를 해석하게 된다. 이러한 명령어 의미해석 과정을 구문분석이라 칭한다.The MMLTOOL module, which takes a script file created as the system as an input, calls a lexer and a parser according to a script language grammar, and interprets the meaning of each command described in the script file. This command semantic interpretation process is called parsing.

MMLTOOL에 의한 구문분석 단계를 보다 자세히 살펴보면, 스크립트 파일을 읽어 들이는 단계(ST31)와; 상기 스크립트 파일내 기술된 각 명령어의 최소 의미단위를 분리하는 어휘해석 단계(ST32)와; 상기 어휘해석된 각 어휘들간의 문법적 연관관계를 해석하는 구문해석(Parse)을 수행하는 단계(ST33)의 흐름을 따르게 된다.Looking at the parsing step by MMLTOOL in more detail, the step of reading a script file (ST31); A lexical interpretation step (ST32) for separating the minimum semantic unit of each instruction described in the script file; Follows the flow of the step ST33 of performing a parse to analyze the grammatical relations between the lexical analyzed words.

그리하여 구문분석이 수행되어 스크립트 파일내 명령어 세트에 대한 명령 목록 또는 명령어 목록이 작성되면, MMLTOOL은 각 명령어들의 사용규칙과 파라미터의 정의, 파라미터로 사용 가능한 값들의 범위 등과 같은 문법적 요구에 적합하도록 파스트리(Pars Tree)를 생성한다.Thus, when parsing is performed to produce a list of commands or a list of commands for a set of commands in a script file, MMLTOOL can parse pastries to meet grammatical requirements, such as the usage rules of each command, the definition of parameters, and the range of values available as parameters. Create a Pars Tree.

작성된 파스트리와 명령 목록들은 데이터베이스에 저장되며, 상기 저장된 데이터를 엑세스하고 의미를 해석할 수 있는 문법검사 함수 및 인터페이스 함수의 소스코드도 역시 파일로써 저장된다(ST34).The prepared pastries and command lists are stored in a database, and source codes of grammar checking functions and interface functions that can access and interpret the stored data are also stored as files (ST34).

이러한 체계로 스크립트 파일에 기술된 MMI 모듈과 시스템 소프트웨어간 인터페이스를 생성하게 된다. 다시 말해, MMLTOOL의 수행 후에는 각 명령어에 대한 문법과 인터페이스를 저장하는 데이터베이스와 데이터베이스를 사용할 수 있는 문법검사 함수들의 소스코드 그리고 시스템 소프트웨어와 MMI 모듈간의 인터페이스코드가 생성되는 것이다.This scheme creates an interface between the MMI module and the system software described in the script file. In other words, after MMLTOOL is executed, the source code of grammar checking functions that can use the database and the database storing the grammar and interface for each command is generated, and the interface code between the system software and the MMI module.

스크립트 파일에 의해 데이터베이스 및 소스코드가 구축되면, MMI 모듈이 입력된 MML 명령 문자열에 따라 적절한 시스템 소프트웨어 함수를 호출하는 일련의 동작이 이루어질 수 있다.When the database and source code are constructed by the script file, a series of operations may be performed in which the MMI module calls an appropriate system software function according to the input MML command string.

이러한 동작흐름은 종래기술과 유사한 것으로, MMI 모듈은 입력 문자열을 구문분석(Parsing)하여 파스트리를 작성하게 된다(ST21~ST23).This operation flow is similar to the prior art, and the MMI module parses an input string to create a pastry (ST21 to ST23).

이어서 작성된 파스트리의 문법을 검사하게 되는데, 여기서부터 본 발명과 종래기술의 상이점이 있다. 즉, 본 발명은 상기 파스트리에 대한 문법검사를 수행하게 될 문법검사 함수가 MMLTOOL에 의해 생성되어지게 된다(ST24).Subsequently, the grammar of the written past is examined, and there is a difference between the present invention and the prior art. That is, in the present invention, a grammar checking function that will perform grammar checking on the pastry is generated by MMLTOOL (ST24).

문법검사가 이루어지면, MMI 모듈은 해당 명령어에 의해 요구된 처리에 적합한 시스템 소프트웨어 함수를 호출하게 된다. 이때 시스템 소프트웨어 함수의 호출은 인터페이스 함수를 매개하여 이루어진다.When the grammar check is done, the MMI module will call system software functions appropriate to the processing required by that instruction. At this time, the system software function is called through the interface function.

다시 말해 문법검사의 결과 문법 및 유효성이 확인된 명령어가 있는 경우, MMI 모듈은 해당 명령어의 처리에 필요한 인터페이스 함수를 호출하게 된다(ST25). 이때 인터페이스 함수는 MMI 모듈과 시스템 소프트웨어간의 인터페이스를 위한 것으로, MMLTOOL에 의해 작성되어 데이터베이스에 저장되어 있는 인터페이스 함수를 의미한다.In other words, if there is a command whose syntax and validity are verified as a result of the grammar check, the MMI module calls an interface function necessary for processing the command (ST25). At this time, the interface function is for the interface between the MMI module and the system software, and means the interface function created by MMLTOOL and stored in the database.

MMI 모듈에 의해 호출된 인터페이스 함수는 해당 시스템 소프트웨어 함수를 호출하게 된다(ST26).The interface function called by the MMI module calls the corresponding system software function (ST26).

이처럼 본 발명은, 명령어에 의존적인 성격을 갖는 MMI 모듈의 일부를 스크립트 파일에 기술한 후 상기 스크립트 파일을 MMLTOOL을 이용하여 분석 및 소스코드 작성이 이루어지도록 함으로써, 변경 가능성이 큰 명령어 규칙으로부터 MMI 모듈을 분리시킬 수 있게 되는 것이다.As described above, the present invention describes a part of an MMI module having a command-dependent nature in a script file, and then analyzes the script file using MMLTOOL and writes source code. Will be able to separate.

이상에서 본 발명의 바람직한 실시예를 설명하였으나, 본 발명은 다양한 변화와 변경 및 균등물을 사용할 수 있다. 본 발명은 상기 실시예를 적절히 변형하여 동일하게 응용할 수 있음이 명확하다. 따라서 상기 기재 내용은 하기 특허청구범위의 한계에 의해 정해지는 본 발명의 범위를 한정하는 것이 아니다.Although the preferred embodiment of the present invention has been described above, the present invention may use various changes, modifications, and equivalents. It is clear that the present invention can be applied in the same manner by appropriately modifying the above embodiments. Accordingly, the above description does not limit the scope of the invention as defined by the limitations of the following claims.

이상에서 살펴본 바와 같이 본 발명에 의한 MMI 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법은, 각 명령어에 대한 규칙들을 자체정의한 스크립트 파일에 기술함으로써 상기 명령어에 관련되지 않고 공통적으로 사용할 수 있는 MMI 모듈을 분리하는 장점이 있다.As described above, in the MMI module according to the present invention, an interface generation method for system software separates an MMI module that is not related to the command and can be used in common by describing rules for each command in a script file defined by itself. There is an advantage.

상기 MMI 코어모듈과 명령어간의 분리를 가능케 한 본 발명은, MMI 모듈의 개발과정 중에 명령어 세트가 변경/추가되는 경우에 있어서도 상기 MMI모듈과 시스템 소프트웨어 함수, 그리고 명령어와 함수들을 연결시켜 주는 MMI 관련 모듈들의 수정을 불필요하게 만드는 효과가 있다. 이는 개발되는 MMI 모듈의 호환성을 높이는 효과를 유도할 것이다.The present invention enables the separation between the MMI core module and the command, MMI module and system software functions, and MMI-related modules that connect the commands and functions even when the instruction set is changed / added during the development process of the MMI module The effect is to make their modifications unnecessary. This will lead to an increase in the compatibility of the MMI module being developed.

또한, 스크립트 파일을 MMLTOOL을 사용하여 MMI 코어모듈에서 사용할 수 있는 형태의 소스코드로 재가공한 후 시스템 소프트웨어와의 인터페이스 함수들의 소스코드를 자동생성함으로써, 수정의 필요가 적은 MMI 코어모듈을 상대적으로 변경의 가능성이 큰 명령어 규칙과 분리하여 MMI 모듈의 개발과정에서 MML 명령어가 변경되는 경우에도 MMI 모듈의 변경을 최소화하는 장점을 갖는 것이다.In addition, by reprocessing the script file into source code that can be used in the MMI core module by using MMLTOOL, the source code of the interface functions with the system software is automatically generated, thereby relatively changing the MMI core module requiring less modification. Apart from the likely rule of command, even if the MML instruction is changed during the development of the MMI module, it has the advantage of minimizing the change of the MMI module.

이러한 본 발명이 제시하는 방법은, MMI 모듈을 사용하는 모든 장비와 인터페이스 함수를 이용하는 EMS(Element Management System) 및 GUI(Graphical User Interface) 등에 적용가능하다.The method proposed by the present invention is applicable to an element management system (EMS) and a graphical user interface (GUI) using all equipment and interface functions using an MMI module.

Claims (3)

특정모듈이 일정한 체계로 작성된 스크립트 파일을 읽어들여 상기 스크립트 파일에 제시된 각 명령어의 처리에 요구되는 정의규칙 및 함수를 포함하는 데이터베이스를 구축하는 단계와;A step in which a specific module reads a script file written in a predetermined system and constructs a database including definition rules and functions required for processing each command presented in the script file; MMI 모듈이 운용자의 입력 문자열을 읽어들여 구문분석을 수행하는 단계와;MMI module reads the operator's input string to perform parsing; 상기 입력문자열 대한 구문분석의 결과에 따라 상기 데이터베이스에 저장되어 있는 문법검사 함수를 호출하여 문법검사를 수행하는 단계와;Performing a grammar test by calling a grammar test function stored in the database according to a result of parsing the input string; 상기 문법검사 함수가 해석한 명령어에 따라 상기 데이터베이스에 저장되어 있는 인터페이스 함수를 호출하고, 상기 각 인터페이스 함수가 해당 시스템 소프트웨어를 호출하는 단계를 포함하여 구성되는 것을 특징으로 하는 전송시스템 엠엠아이 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법.A system in a transmission system M module comprising a step of calling an interface function stored in the database according to a command interpreted by the grammar test function, and each interface function calling a corresponding system software. How to create an interface to the software. 제 1항에 있어서, 상기 스크립트 파일은,The method of claim 1, wherein the script file, MMI 모듈의 구성시 시스템에 종속적인 명령어 규칙정의, 상기 명령어의 수행을 위한 시스템 소프트웨어와의 인터페이스 정의 등과 같이 MMI 모듈을 서로 다른 시스템에 적용하는 경우에 가변되는 사항들을 기술하여 생성되는 것으로, 운용자가 자체적으로 정의한 문법체계를 갖는 스크립트 언어에 따라 기술되는 것을 특징으로하는 전송시스템 엠엠아이 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법.In the configuration of the MMI module, it is generated by describing the details of changes when the MMI module is applied to different systems, such as defining a system-specific command rule and defining an interface with the system software for executing the command. A method for generating an interface to system software in a transmission system MI module, characterized in that it is described according to a scripting language having a self-defined grammar system. 제 1항에 있어서, 상기 특정모듈이 데이터베이스를 구축하는 단계는,The method of claim 1, wherein the building of the database by the specific module comprises: 상기 스크립트 파일을 읽어들여 그 정의규칙에 따라 구문분석을 수행한 후,After reading the script file and parsing according to the definition rule, 상기 구문분석에 의해 작성된 파스트리(Parse Tree)와 구문항목들로 구성된 데이터, 상기 데이터를 엑세스하고 의미를 해석하기 위한 문법검사 함수(Rule Check Function), 그리고 문법검사된 명령어의 처리에 적합한 시스템 소프트웨어 함수의 호출을 위한 인터페이스 함수를 해당 MMI 모듈이 엑세스할 수 있는 형태로 각각 작성하고,System software suitable for the processing of the parse tree and syntax items created by the parsing, a grammar check function for accessing the data and interpreting the semantics, and a grammar-checked command Write each interface function to call the function in a form that the MMI module can access. 상기 작성된 각 데이터 또는 함수를 데이터베이스에 저장하는 것을 특징으로 하는 전송시스템 엠엠아이 모듈에서 시스템 소프트웨어에 대한 인터페이스 생성방법.And generating each data or function in a database.
KR1020000064164A 2000-10-31 2000-10-31 Method for generation of system software interface in man-machine interface module for communication system KR20020033930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000064164A KR20020033930A (en) 2000-10-31 2000-10-31 Method for generation of system software interface in man-machine interface module for communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000064164A KR20020033930A (en) 2000-10-31 2000-10-31 Method for generation of system software interface in man-machine interface module for communication system

Publications (1)

Publication Number Publication Date
KR20020033930A true KR20020033930A (en) 2002-05-08

Family

ID=19696290

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000064164A KR20020033930A (en) 2000-10-31 2000-10-31 Method for generation of system software interface in man-machine interface module for communication system

Country Status (1)

Country Link
KR (1) KR20020033930A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100747910B1 (en) * 2005-09-03 2007-08-08 엘지노텔 주식회사 Apparatus and method for auto generating interface function in agent system
CN113489757A (en) * 2021-05-25 2021-10-08 石化盈科信息技术有限责任公司 Data open service method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100747910B1 (en) * 2005-09-03 2007-08-08 엘지노텔 주식회사 Apparatus and method for auto generating interface function in agent system
CN113489757A (en) * 2021-05-25 2021-10-08 石化盈科信息技术有限责任公司 Data open service method

Similar Documents

Publication Publication Date Title
EP1027648B1 (en) Apparatus for semi-automated generation and application of language conformity tests
KR930008769B1 (en) System for generating software source code component
US8453126B1 (en) System and method for converting base SAS runtime macro language scripts to JAVA target language
CN110196719A (en) A kind of business rule generation method and system based on natural language processing
US8707252B1 (en) Techniques for automatic generation of parsing code
JP2007141173A (en) Compiling system, debug system and program development system
US20070074185A1 (en) Identifier expressions
Cleaveland et al. A front-end generator for verification tools
CN116540986A (en) Method for constructing text programming language code editor based on Web end
US20080127128A1 (en) Type Validation for Applications Incorporating A Weakly-Typed Language
Mernik et al. LISA: A tool for automatic language implementation
KR20060060019A (en) Speech input interface for dialog systems
US9063744B2 (en) Modifying a file written in a formal language
KR20020033930A (en) Method for generation of system software interface in man-machine interface module for communication system
CN112487142B (en) Conversational intelligent interaction method and system based on natural language processing
US20060198501A1 (en) Method and device for constructing a voice dialog
CA2566025C (en) Type validation for applications incorporating a weakly-typed language
Bredenkamp et al. Linguistic engineering using ALEP
US7650573B2 (en) Layout rules for whitespace sensitive literals
JP2861630B2 (en) Connection structure analyzer
KR100276086B1 (en) Method for generating a c++ code from lotos specitication
Fulkerson et al. Javox: A toolkit for building speech-enabled applications
CN117170654A (en) Development method and device of graphical user interface application program and electronic equipment
CN115455910A (en) Method and system for converting WAF rule into IPS rule
CN113191774A (en) Updatable intelligent contract dynamic verification method

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination