[go: up one dir, main page]

CN100424640C - Domestic network intermediate parts development platform and codes conversion method thereof - Google Patents

Domestic network intermediate parts development platform and codes conversion method thereof Download PDF

Info

Publication number
CN100424640C
CN100424640C CNB2006100219461A CN200610021946A CN100424640C CN 100424640 C CN100424640 C CN 100424640C CN B2006100219461 A CNB2006100219461 A CN B2006100219461A CN 200610021946 A CN200610021946 A CN 200610021946A CN 100424640 C CN100424640 C CN 100424640C
Authority
CN
China
Prior art keywords
analysis module
module
code
template file
template
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB2006100219461A
Other languages
Chinese (zh)
Other versions
CN1928812A (en
Inventor
王峰
居文军
蔡琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNB2006100219461A priority Critical patent/CN100424640C/en
Publication of CN1928812A publication Critical patent/CN1928812A/en
Application granted granted Critical
Publication of CN100424640C publication Critical patent/CN100424640C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The related intermediate part technology can solve the interoperability of different programs and network intermediate parts in house network based on IGRS protocol. Wherein, the provided house network intermediate part development platform comprises a GUI to input the WSDL file, a file resolution module, a template resolution module, and a flash connection service outlet. This invention can screen intermediate code and benefit to spread flash connection standard in house network.

Description

Home network middleware development device and code conversion method thereof
Technical field
The present invention relates to Computer Applied Technology, particularly a kind of digital home network middleware Technology based on the IGRS protocol stack.
Background technology
Home network is defined as utilizing computer, network and comprehensive wiring technology, by the family information management devices with a various subsystems relevant system of combination organically with life staying idle at home.
High-tech and infotech are moved towards the intelligent dwelling sub-district by intelligent building, and then come into family.Multiple information that the family of modern society is bringing with home intelligence and safe, comfortable, living environment are easily pursued as a desirable target.Many embodiments have appearred therebetween, for example we can be the personal computer PC variation is HDC (Home Data Center) family data processing enter, it is the gateway of family, all information household appliances will become the terminal of HDC, control and change open and close, working routine and the state of information household appliances by HDC.Link to each other with the external world with ISDN system etc. by telephone wire.
The IGRS of IGRS (Intelligent Grouping and Resource Sharing), be resource sharing cooperation with service standard, its target is automatic device discovery, dynamic group net, resource sharing and the cooperation with service of supporting in limited range network domains (wired, wireless) between multiple information equipment, household electrical appliance, the communication apparatus.
When the information equipment of enterprise, public place and family is interconnected, follow common resource and interface standard, make equipment can effectively realize resources open and service collaboration, improve the equipment interoperability, strengthen the function of equipment room composite services.This standard is the application layer protocol that is based upon on the TCP/IP, and is unified to realize different hardware and software, makes things convenient for the effectively interconnected of information equipment and traditional electrical equipment, finds and seek available devices and service automatically.
Programming, realization flow based on the home network service of IGRS protocol stack mainly comprise the following aspects: (1) writes the service WSDL (Wed Service descriptive language) of IGRS file, (2) modify wsdl document, the wsdl document (3) that obtains the accurate description home network service produces needed middleware according to wsdl document and transforms code, (4) write the required IGRS's service that realizes, the service of (5) deployment IGRS.
Based on the home network service procedure development of IGRS protocol stack, transform code section, being about to IGRS's service invocation request and message conversion is local target program, is a loaded down with trivial details process.When making up home network, calling end and being called to hold of each service all needs and will change mutually between routine data and the XML sequence, thereby need call each and write loaded down with trivial details data conversion code.This job requirement client has very high professional knowledge.This has just caused very big difficulty to design information household electrical appliances and home network member's developer.
Middleware (middleware) is in the centre of operating system software and user's application software.With the common problem that application software will face refine, abstract, on operating system, form a reusable part again, reuse for thousands of application software.Total effect is for the application software that is in own upper strata provides the environment of operation with exploitation, helps the application software of user flexibility, exploitation efficiently and integrated complexity.
Minimizing just can have been introduced middleware Technology based on the difficulty of IGRS protocol stack exploitation home network.But at present both at home and abroad in the research in this field seldom, also there not be the middleware Technology of proposition at the IGRS protocol stack.
Summary of the invention
Technical matters solved by the invention is, for realizing providing a kind of home network middleware development device based on the interoperability between isomery program and the network middleware in the home network of IGRS protocol stack.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, the home network middleware development device comprises graphical user interface, document analysis module, template parsing module, IGRS's service output terminal; The document analysis module comprises Lexical Analysis Module, syntax Analysis Module, and Lexical Analysis Module links to each other with syntax Analysis Module; The template parsing module comprises template file storehouse, code generation module, and the template file storehouse links to each other with code generation module;
Graphical user interface links to each other with Lexical Analysis Module, template file storehouse respectively; Syntax Analysis Module links to each other with code generation module; Code generation module is served output terminal with IGRS and is linked to each other.
The present invention also provides the code conversion method of home network middleware development device, and by the user interface of graphical interfaces, input meets the wsdl document of document analysis, select suitable file template, automatically compile flow process, generate object code at last, specifically may further comprise the steps:
A imports wsdl document by graphical user interface, selects the user side programming language;
B template analysis module is selected template file according to the user side programming language of selecting in the template file storehouse;
The c Lexical Analysis Module is carried out lexical analysis to the wsdl document of input, and the program character in the wsdl document of input is converted into a series of word, comprises reserved word, identifier, operational symbol, boundary's symbol and constant.Syntax Analysis Module given in the word that can discern;
The semantic values and the label of d syntax Analysis Module generative grammar symbol;
The e code generation module obtains generating code according to the semantic values contrast template file of syntax Analysis Module output, and according to label the code that generates is deposited in resolution file or the java standard library file;
The f code generation module produces corresponding source code;
The g code generation module generates object code according to user's setting;
The h object code generates the back and calls the respective service program by IGRS's service output terminal.
The invention has the beneficial effects as follows on the basis that meets the IGRS protocol stack, utilize the automatic generating code of home network middleware development device, shielded the intermediate code conversion, be universal the facilitating in home network of IGRS standard.
Description of drawings
Fig. 1 is a structural representation of the present invention.
Embodiment
Home network middleware development device as shown in Figure 1 comprises graphical user interface, document analysis module, template parsing module, IGRS's service output terminal; The document analysis module comprises Lexical Analysis Module, syntax Analysis Module, and Lexical Analysis Module links to each other with syntax Analysis Module; The template parsing module comprises template file storehouse, code generation module, and the template file storehouse links to each other with code generation module;
Graphical user interface links to each other with Lexical Analysis Module, template file storehouse respectively; Syntax Analysis Module links to each other with code generation module; Code generation module is served output terminal with IGRS and is linked to each other.
By the graphic interface input wsdl document of graphical user interface, select the user side programming language, promptly select suitable template; According to the parameter of graphical user interface input as: be that requirement C and XML transform or C++ and XML change mutually, the template analysis module can select suitable template file to handle in the template file storehouse.
Wsdl document from the input of graphical user interface carries out morphology, grammatical analysis in the document analysis module, obtain label and semantic values.The grammar rule of document analysis is as follows: “ $N occurs " label of form is to need the part of replacing in the template file, N represents numeral here, as $1 , $2.
The syntactic definition of document analysis is as follows:
Lexical analysis: Lexical Analysis Module is that the program character in the wsdl document of input is converted into a series of word, and word types comprises reserved word, identifier, operational symbol, boundary's symbol and constant, uses the sign of the type of word as word; Give grammatical analysis the word that can discern then.
Grammatical analysis: syntax Analysis Module has a semantic stack, deposit the nonterminal symbol that it analyzes and the semantic values of terminal symbol, here semantic values are integers, when syntactic analyser identifies certain sentence pattern, it promptly carries out reduction with corresponding syntax rule, before carrying out reduction, finishes the Semantic Actions that the user provides earlier, these Semantic Actions can be to return the semantic values of grammatical symbol, also can be the semantic values of asking some grammatical symbol; And, output in the template parsing module identifying as label.
Code generation module in the template parsing module obtains object code according to the semantic values and the label of grammatical analysis.
The principle of work of code generation module is as follows:
Code generation module reads the template file of appointment, and template file is imported to the character string buffer zone;
Code generation module obtains the semantic values of syntax Analysis Module output; According to the semantic values generating code, and according to label the code that generates is deposited in resolution file or the java standard library file and goes, produce corresponding source code, comprise client middleware code and server end middleware code.
Whether the generation of object code is then according to user's setting: source code is made amendment, then directly generate object code as not revising.Object code generates the back and calls the respective service program by IGRS's service output terminal.
The application of home network middleware in concrete IGRS services request is as follows, and SOAP is based on the agreement of XML, by the structurized data of 80 port transmission XML of http:
(1) start the IGRS protocol stack, the IGRS service end is issued online declaration, the client search service;
(2) create session;
(3) client call remote service;
(4) home network middleware is converted into the language of XML form, i.e. soap message with the local program language;
(5) IGRS will ask to send with the form of SOAP bag, can be wired or wireless send mode;
(6) service end receives the SOAP request message, calls corresponding middleware, and XML is converted into the local program language, calls corresponding service routine and handles this request.
The process of transmitting of request response and the process of transmitting of service request information are similar, repeat no more.
The template parsing module provides java standard library to write interface, can write new library file at any time and be kept in the template file storehouse, is with good expansibility.

Claims (3)

1. the home network middleware development device is characterized in that, comprises user interface, document analysis module, template parsing module, IGRS's service output terminal; Described document analysis module comprises Lexical Analysis Module, syntax Analysis Module, and described Lexical Analysis Module links to each other with described syntax Analysis Module; Described template parsing module comprises template file storehouse, code generation module, and described template file storehouse links to each other with described code generation module;
Described user interface links to each other with described Lexical Analysis Module, described template file storehouse respectively; Described syntax Analysis Module links to each other with described code generation module; Described code generation module is served output terminal with described IGRS and is linked to each other;
Described user interface is used to receive the wsdl document of input;
Described Lexical Analysis Module is used for the wsdl document of input is carried out lexical analysis, and the sign that can discern is given syntax Analysis Module;
Described syntax Analysis Module is used for the semantic values and the label of generative grammar symbol;
Described template parsing module is selected template file according to the user side programming language of selecting in described template file storehouse;
Described code generation module is used for obtaining generating code according to the semantic values contrast template file of syntax Analysis Module output, and deposits the code that generates in the module file storehouse according to label, produces corresponding source code;
Described IGRS service output terminal is used to call the respective service program.
2. home network middleware development device according to claim 1 is characterized in that, comprises that also java standard library writes interface, and described java standard library is write interface and linked to each other with described template file storehouse;
Described java standard library is write the library file that interface is used for newly writing and is kept at described template file storehouse.
3. the code conversion method of home network middleware development device is characterized in that, may further comprise the steps:
A imports wsdl document by graphical user interface, selects the user side programming language;
B template parsing module is selected template file according to the user side programming language of selecting in the template file storehouse;
The c Lexical Analysis Module is carried out lexical analysis to the wsdl document of input, and the program character in the wsdl document of input is converted into a series of word, comprises reserved word, identifier, operational symbol, boundary's symbol and constant.Syntax Analysis Module given in the word that can discern;
The semantic values and the label of d syntax Analysis Module generative grammar symbol;
The e code generation module obtains generating code according to the semantic values contrast template file of syntax Analysis Module output, and according to label the code that generates is deposited in resolution file or the java standard library file;
The f code generation module produces corresponding source code;
The g code generation module generates object code according to user's setting;
The h object code generates the back and calls the respective service program by IGRS's service output terminal.
CNB2006100219461A 2006-09-26 2006-09-26 Domestic network intermediate parts development platform and codes conversion method thereof Expired - Fee Related CN100424640C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100219461A CN100424640C (en) 2006-09-26 2006-09-26 Domestic network intermediate parts development platform and codes conversion method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100219461A CN100424640C (en) 2006-09-26 2006-09-26 Domestic network intermediate parts development platform and codes conversion method thereof

Publications (2)

Publication Number Publication Date
CN1928812A CN1928812A (en) 2007-03-14
CN100424640C true CN100424640C (en) 2008-10-08

Family

ID=37858787

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100219461A Expired - Fee Related CN100424640C (en) 2006-09-26 2006-09-26 Domestic network intermediate parts development platform and codes conversion method thereof

Country Status (1)

Country Link
CN (1) CN100424640C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571761A (en) * 2011-12-21 2012-07-11 四川长虹电器股份有限公司 Information transmission method of network interface

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962598B2 (en) 2008-04-14 2011-06-14 Hong Kong Applied Science and Technology Research Institute Company Limited Concurrent IGRS-UPnP
CN102043624B (en) * 2010-12-17 2013-07-10 青岛海信网络科技股份有限公司 Method for automatically programming intermediate communication interface and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015809A1 (en) * 2001-05-18 2004-01-22 Doreen Yining Cheng Code generation for integrating devices into a middleware framework
CN1819588A (en) * 2006-03-07 2006-08-16 上海科泰世纪科技有限公司 Network service providing method based on middleware platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015809A1 (en) * 2001-05-18 2004-01-22 Doreen Yining Cheng Code generation for integrating devices into a middleware framework
CN1819588A (en) * 2006-03-07 2006-08-16 上海科泰世纪科技有限公司 Network service providing method based on middleware platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571761A (en) * 2011-12-21 2012-07-11 四川长虹电器股份有限公司 Information transmission method of network interface
CN102571761B (en) * 2011-12-21 2014-08-20 四川长虹电器股份有限公司 Information transmission method of network interface

Also Published As

Publication number Publication date
CN1928812A (en) 2007-03-14

Similar Documents

Publication Publication Date Title
CN103440376B (en) Distributed operation mode and centralized operation mode integrated simulation system operation supporting platform based on components
Issarny et al. A perspective on the future of middleware-based software engineering
Petriu et al. From UML descriptions of high-level software architectures to LQN performance models
CA2446809C (en) General and reusable components for defining net-centric application program architectures
CN102622227B (en) A kind of device of the component model and element factory for supporting dynamic configuration
US7904111B2 (en) Mobile exchange infrastructure
JP2006526209A (en) Software development method and development system using metadata extended under component-based environment
JP2009238231A (en) Software development method using metadata expanded under component base environment and its development system
Gianni et al. A software architecture to ease the development of distributed simulation systems
CN112035090A (en) Intelligent contract management system and method based on containerization technology
CN100424640C (en) Domestic network intermediate parts development platform and codes conversion method thereof
CN102253974A (en) Dynamic combination method for geographic model network services
Wu et al. R-OSGi-based architecture of distributed smart home system
Pellegrino et al. Domotic house gateway
CN1314225C (en) System for realizing open telecommunication business based on XML file and thereof
Muñoz et al. Building a software factory for pervasive systems development
CN103677842A (en) Software tool configuration type integrated expansion calling method and system
CN112363856A (en) Method for realizing interoperation of deep learning framework and application program based on DDS
EP1832975A1 (en) Automatic generation of source program
Zhu et al. Runtime knowledge graph based approach to smart home application development
Repo et al. Middleware support for implementing context-aware multimodal user interfaces
CN110989977B (en) Intelligent home environment personalized customization method for disabled people
Sinnott Frameworks: the future of formal software development?
Mena et al. WoTnectivity: a communication pattern for different web of things connection protocols
Duller et al. XTream: personal data streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081008

Termination date: 20210926

CF01 Termination of patent right due to non-payment of annual fee