WO2013075496A1 - 用于嵌入式终端的生成逻辑业务的方法、装置及终端 - Google Patents

用于嵌入式终端的生成逻辑业务的方法、装置及终端 Download PDF

Info

Publication number
WO2013075496A1
WO2013075496A1 PCT/CN2012/077954 CN2012077954W WO2013075496A1 WO 2013075496 A1 WO2013075496 A1 WO 2013075496A1 CN 2012077954 W CN2012077954 W CN 2012077954W WO 2013075496 A1 WO2013075496 A1 WO 2013075496A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
logic
information
logical
generating
Prior art date
Application number
PCT/CN2012/077954
Other languages
English (en)
French (fr)
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 US14/368,580 priority Critical patent/US9632684B2/en
Publication of WO2013075496A1 publication Critical patent/WO2013075496A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • the present invention relates to an embedded mobile terminal technology, and in particular to a method, device and terminal for generating a logical service for an embedded terminal. Background technique
  • An object of the present invention is to provide a method, a device, and a terminal for generating a logical service for an embedded terminal, which can quickly generate a corresponding logical service for the application for different applications or upgrades of the same application. Processing.
  • a method for generating a logical service for an embedded terminal comprising:
  • the logic management module identifies the visual interface code input by the user, and queries the corresponding application logic information in the configuration file according to the recognition result and generates a window logic message in the visual interface, and automatically generates a corresponding processing function family from the window logic messages. Form a logical management framework for interacting with the interface.
  • the method further includes:
  • the logic management module automatically generates a corresponding processing function family by identifying a protocol stack message declared in the application service common header file, and forms a logical management framework for interacting with the protocol stack according to the corresponding application logic information in the configuration file.
  • the method further includes:
  • the logic management module automatically generates a corresponding application message processing function family by querying the inter-application message declared in the configuration file to form a logical management framework for interaction between applications.
  • the application logic information configured in the configuration file includes at least one of the following information: application name information, application thread information, whether the application is multi-thread discrimination information, and application multi-thread information. More preferably, the default configuration and the logical management framework interacting with the interface are configured in the interface thread, and the logical management framework interacting with the protocol stack is configured in the default control flow thread.
  • An apparatus for generating a logical service for an embedded terminal comprising:
  • a configuration module configured to configure application logic information of the application to form a configuration file
  • a logic management module configured to identify a visual interface code input by the user, and query corresponding application logic information in the configuration file according to the recognition result, and generate a window logic message in the visual interface, and automatically generate corresponding processing by the window logic message Function family, the logical management framework for interaction with the interface.
  • the logic management module is further configured to automatically generate a corresponding processing function family by identifying a protocol stack message that is declared in the application service common header file, and form an interaction with the protocol stack according to the corresponding application logic information in the configuration file.
  • Logical management framework identifying a protocol stack message that is declared in the application service common header file, and form an interaction with the protocol stack according to the corresponding application logic information in the configuration file.
  • the logic management module is further configured to automatically generate a corresponding inter-application message processing function family by querying an inter-application message declared in the configuration file to form a logical management framework for interaction between applications.
  • the application logic information configured in the configuration file includes at least one of the following information: application name information, application thread information, whether the application is multi-thread discrimination information, and application multi-thread information.
  • the default configuration and the logical management framework interacting with the interface are configured in the interface thread, and the logical management framework interacting with the protocol stack is configured in the default control flow thread.
  • a terminal comprising the apparatus for generating a logical service for an embedded terminal, as described above, wherein the apparatus comprises:
  • a configuration module configured to configure application logic information of the application to form a configuration file
  • a logic management module configured to identify a visual interface code input by the user, and query corresponding application logic information in the configuration file according to the recognition result, and generate a window logic message in the visual interface, and automatically generate corresponding processing by the window logic message Function family to form and A logical management framework for interface interaction.
  • control part of the application is managed separately from the resources, so that the development of the application is performed according to the model of the Model-View-Controller (MVC), and each role focuses on its own affairs, and the division of labor is more Clearly, the modification of one of the characters will not have a big impact on other characters.
  • MVC Model-View-Controller
  • the configurable parts of the logic control are independent. On the one hand, the introduction of the user interface (UI, User Interface) design tool is facilitated. On the other hand, the thread configuration also enables the developer to master the dynamic performance of the code.
  • UI User Interface
  • FIG. 1 is a schematic diagram of a location of a logic management module in an embedded system according to the present invention
  • FIG. 2 is a schematic flowchart of a method for generating a logical service for an embedded terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for generating a logical service for an embedded terminal according to an embodiment of the present invention.
  • the decoupling between applications and applications is achieved, the application is decoupled from the platform, and the application is decoupled from the graphical user interface (GUI, Graphical User lnteface) software.
  • GUI Graphical User lnteface
  • Control, service, and window decoupling require a model that is generally considered for application development.
  • the application development framework provides a platform to support application developers to develop applications on the framework. Both the application and the application communicate through the application development framework.
  • the logic control belongs to the application development framework.
  • the application window sends messages to the application control, the application service reports the message to the application control, and the messages between the applications. After the logic management module processes, the application control code framework is automatically generated.
  • the application development framework also includes application management, window management, configuration management, data management, and event management.
  • the modules of event management, configuration management, and application window management are the three essential elements.
  • a method for generating a logical service for an embedded terminal includes the following steps:
  • the application logic information configured in the configuration file includes at least one of the following information: application name information, application thread information, whether the application is multi-thread discrimination information, and application multi-thread information.
  • the default configuration and the logical management framework interacting with the interface are configured in the interface thread, and the logical management framework interacting with the protocol stack is configured in the default control flow thread.
  • the application is mainly configured in the configuration file.
  • the thread the name of the application, whether the application is multi-threaded, and multi-threaded information.
  • the default configuration configures the control flow framework that interacts with the interface in the interface thread, and the framework that interacts with the protocol stack is configured in the default control flow thread.
  • the control flow can be configured into separate threads. Here you also need to configure the message between the applications, declare in the configuration file that you need to pay attention to the message name of other applications.
  • the logic management module identifies the visual interface code input by the user, and queries corresponding application logic information in the configuration file according to the recognition result, and generates a window logic message in the visualization interface, and automatically generates a corresponding processing function by the window logic message.
  • Family to form a logical management framework for interaction with the interface.
  • the interaction between the interface and the control logic is implemented by the UI message, and the visual interface code is manually or by means of tools, and the part that needs to interact with the logic declares corresponding messages and comments, and the logic management module pairs these
  • the code identifies, automatically declares and annotates the generated window logic messages generated in the visual interface, and the logic messages automatically generate a family of processing functions to form a logical management framework for interacting with the interface.
  • the method for generating a logical service for an embedded terminal after performing all the steps further includes:
  • the logic management module automatically generates a corresponding processing function family by identifying a protocol stack message that is declared in the application service common header file, and generates a corresponding processing function family according to the corresponding application logic information in the configuration file to form a logical management framework for interacting with the protocol stack.
  • the protocol stack messages that each application needs to process are basically fixed, and the protocol stack messages are declared in the application service common header file, and the logical management module cooperates with the declaration of the protocol stack message by identifying the service header file.
  • the configuration information of the application automatically declares different application channels, declares attention to the corresponding protocol stack message, and automatically generates a corresponding processing function family to form a logical management framework for interaction with the protocol stack.
  • the method for generating a logical service for the embedded terminal of the present example is further Includes:
  • the logic management module automatically generates a corresponding inter-application message processing function family by querying an inter-application message declared in the configuration file to form a logical management framework for interaction between applications.
  • the corresponding inter-application message processing function family is automatically generated by the other application message declarations configured in the configuration file to form a logical management framework related to other applications.
  • the step S101 is configured to configure related information of the application logic, where the information includes logical thread information of the application, interface interaction information, protocol stack interaction information, and inter-application interaction information.
  • the successor logic management framework relies on this information for automatic code generation.
  • the advantages of configuration are also beneficial to the introduction of UI design tools.
  • the application's control information can be written by hand, using the tool's visualized design window interface, and finally generating the processing functions corresponding to the message. This information can be linked to the process control code through configuration management.
  • the logic management module locates the message (window message, protocol stack message, inter-application message, etc.) in the application framework, and performs certain pre-processing (for example, formatting name, duplicate name detection, etc.) , automatically generate the corresponding processing.
  • the corresponding processing is declared in a different thread.
  • the application can be quickly processed for different applications or upgrades of the same application. For example, if a new window is added or a protocol stack message is added, the logical management framework can automatically generate a logical entry code if the wireless program has special requirements. In addition, when an inter-application message is added, it can be simply declared in the configuration file. The logical entry code is automatically generated.
  • the GUI tool invokes the logic management module interface to start controlling the framework generation process.
  • the logic management module reads the configuration content.
  • the logic management module reads the settings of the corresponding application, detects the scope of the automatically generated framework, and the thread in which the application is located, whether to use a public thread or a newly opened thread. Whether to generate window messages, service messages, processing frameworks for inter-application messages.
  • the embodiment of the present invention further provides an apparatus for generating a logical service for an embedded terminal.
  • the apparatus includes:
  • the configuration module 10 is configured to configure application logic information of the application to form a configuration file.
  • the application logic information configured in the configuration file includes: application name information, application thread information, and whether the application is multi-threaded. Discriminating information, applying multi-thread information, more preferably, the default configuration and the logical management framework interacting with the interface are configured in the interface thread, and the logical management framework interacting with the protocol stack is configured in the default control flow thread;
  • the logic management module 20 is configured to identify the visual interface code input by the user, and query the corresponding application logic information in the configuration file according to the recognition result and generate a window in the visualization interface. Port logic messages, and the corresponding processing function families are automatically generated by these window logic messages to form a logical management framework for interacting with the interface.
  • the logic management module 20 is further configured to: by identifying a protocol stack message declared in a common header file of the application service, and automatically generating a corresponding processing function family according to corresponding application logic information in the configuration file, to form a sum The logical management framework for protocol stack interaction.
  • the logic management module 20 is further configured to automatically generate a corresponding inter-application message processing function family by querying the inter-application message in the configuration file to form a logical management framework for inter-application interaction.
  • the embodiment of the present invention further provides a terminal, which includes the apparatus for generating a logical service for an embedded terminal, as described above.
  • the device includes:
  • the configuration module 10 is configured to configure application logic information of the application to form a configuration file.
  • the logic management module 20 is configured to identify the visual interface code input by the user, and query corresponding application logic information in the configuration file according to the recognition result and generate a visualization. Window logic messages in the interface, and the corresponding processing function families are automatically generated by these window logic messages to form a logical management framework for interacting with the interface.
  • the invention uniformly manages the logical processing events in the application, automatically generates the processing input after receiving the event, and uniformly manages the logical events, thereby making the control structure of the logic management module simple and clear.
  • the control part of the application is separately managed from the resources and other parts, so that the development of the application is performed according to the model-view-controller mode, and each role focuses on its own affairs, the division of labor is clearer, and the modification of one of the roles does not give Other roles have a big impact.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种用于嵌入式终端的生成逻辑业务的方法、装置及终端,所述方法包括:配置应用的应用逻辑信息以形成配置文件;逻辑管理模块对用户输入的可视化界面代码进行识别,并依据识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口逻辑消息,并由这些窗口逻辑消息自动生成对应的处理函数族,以形成和界面交互的逻辑管理框架。本发明提供的用于嵌入式终端的生成逻辑业务的方法、装置及终端能够针对不同的应用,或者同一个应用的升级,都可以快速对该应用进行生成相应的逻辑业务的处理。

Description

用于嵌入式终端的生成逻辑业务的方法、 装置及终端 技术领域
本发明涉及嵌入式移动终端技术, 具体而言, 涉及一种用于嵌入式终 端的生成逻辑业务的方法、 装置及终端。 背景技术
随着移动通讯技术的迅速发展, 目前市面上各种移动终端也迅速涌出 , 随着移动终端 (例如手机)等通讯终端的普及率日益上升, 终端设备制造 商之间的竟争也变得越发的激烈。 因此, 在日后的日益激烈的市场竟争中, 谁能快速地推出更为人性化设计的终端机, 谁就能抢得市场的先机。
当前, 在嵌入式移动终端的应用开发中, 应用界面、 控制流程以及业 务功能三者之间存在着强耦合, 由此, 对于在需要进行界面定制或者业务 变更时, 往往会导致应用需要进行全面整改或者重新设计。 尤其是在手机 领域, 由于市场需求变动较大, 手机功能、 型号更迭频繁, 而传统的开发 模式相对固定, 因此手机设备制造商不能灵活地针对市场的需求进行手机 功能的定制, 从而影响了其快速响应市场的能力。
在当前的嵌入式移动终端领域, 对于界面显示、 服务调用、 控制流程 操作等没有进行全面分离, 界面的设计编码都是靠手动编码实现, 不能用 工具进行可视化的设计; 应用业务的控制处理与界面和服务相关联, 其三 者之间是一种紧耦合的关联关系。 对于特定的应用, 例如对于手机应用来 说, 由于其大多数的控制流程是固化的, 且每款型号的手机对应一定固化 的控制流程。 因此该代码未分离的情况会导致在需要对手机进行全面整改 时效率较低且成本较高的问题。
除此之外, 在这种紧耦合的环境中, 由于应用流程的整改需要对代码 的视图、 逻辑等各处均进行修改, 又由于对代码各部分的改动分散于代码 各处, 因此在修改过程中会引入各种未知的故障, 以至于后续需要进行不 断的测试来修复问题, 导致测试的稳定周期也会变得很长, 进一步导致效 率降低。 发明内容
本发明的目的在于提供一种用于嵌入式终端的生成逻辑业务的方法、 装置及终端, 其能够针对不同的应用, 或者同一个应用的升级, 都可以快 速对该应用进行生成相应的逻辑业务的处理。
为了实现本发明的目的, 本发明采用以下技术方案实现:
一种用于嵌入式终端的生成逻辑业务的方法, 包括:
配置应用的应用逻辑信息以形成配置文件;
逻辑管理模块对用户输入的可视化界面代码进行识别, 并依据识别结 果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口逻辑消 息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 形成和界面交互 的逻辑管理框架。
优选地, 所述方法还包括:
逻辑管理模块通过识别声明在应用服务公共头文件中的协议栈消息, 并依据配置文件中相应的应用逻辑信息自动生成对应的处理函数族, 形成 和协议栈交互的逻辑管理框架。
优选地, 所述方法还包括:
逻辑管理模块通过查询配置文件中声明的应用间消息自动生成对应的 应用间消息处理函数族, 形成应用间交互的逻辑管理框架。
优选地, 所述配置文件中配置的应用逻辑信息包括以下信息的至少一 种: 应用名称信息、 应用所在线程信息、 应用是否为多线程判别信息、 应 用多线程信息。 更为优选地, 缺省的配置以及与界面交互的逻辑管理框架配置在界面 线程中, 和协议栈交互的逻辑管理框架配置在缺省的控制流程线程之中。
一种用于嵌入式终端的生成逻辑业务的装置, 包括:
配置模块, 用于配置应用的应用逻辑信息以形成配置文件;
逻辑管理模块, 用于对用户输入的可视化界面代码进行识别, 并依据 识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口 逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 形成和界 面交互的逻辑管理框架。
优选地, 所述逻辑管理模块还用于通过识别声明在应用服务公共头文 件中的协议栈消息, 并依据配置文件中相应的应用逻辑信息自动生成对应 的处理函数族, 形成和协议栈交互的逻辑管理框架。
优选地, 所述逻辑管理模块还用于通过查询配置文件中声明的应用间 消息自动生成对应的应用间消息处理函数族, 形成应用间交互的逻辑管理 框架。
优选地, 所述配置文件中配置的应用逻辑信息包括以下信息的至少一 种: 应用名称信息、 应用所在线程信息、 应用是否为多线程判别信息、 应 用多线程信息。
更为优选地, 缺省的配置以及与界面交互的逻辑管理框架配置在界面 线程中, 和协议栈交互的逻辑管理框架配置在缺省的控制流程线程之中。
一种终端, 其包括如上所述的用于嵌入式终端的生成逻辑业务的装置, 其中, 所述装置包括:
配置模块, 用于配置应用的应用逻辑信息以形成配置文件;
逻辑管理模块, 用于对用户输入的可视化界面代码进行识别, 并依据 识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口 逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 以形成和 界面交互的逻辑管理框架。
通过上述本发明的技术方案可以看出, 本发明与现有技术相比, 具有 如下有益效果:
1、 统一管理应用内的逻辑处理事件, 接收事件后自动生成处理入口, 通过将逻辑事件统一管理, 从而使得逻辑管理模块的控制结构简单清晰。
2、 结合配置模块, 将应用的控制部分与资源等部分分开管理, 使得应 用的开发按照模型-视图-控制器(MVC, Model View Controller ) 的模式进 行, 各个角色专注于自己的事情, 分工更加清晰, 角色之一的修改变不会 给其他角色带来较大的影响。
3、 将逻辑控制中可以配置的部分都独立出来, 一方面方便了用户界面 ( UI, User Interface )设计工具的引入, 另一方面线程的配置也使开发人员 掌握了代码的动态性能。
4、 控制流程的固化和自动化, 使得开发人员把精力集中到对应的逻辑 开发中去。
5、 具有很好的可移植性, 结合应用服务的固化, UI界面的工具化, 使 用逻辑管理模块可以方便的移植一个应用。 如果无控制代码, 可以配置逻 辑控制自动生成, 如果已有控制代码, 只需要在逻辑管理模块时配置为不 自动生成, 在可视化界面中给对应的消息选择处理函数即可。 附图说明
图 1是本发明中逻辑管理模块在嵌入式系统中的位置示意图; 图 2是本发明实施例提供的用于嵌入式终端的生成逻辑业务的方法流 程示意图;
图 3是本发明实施例提供的用于嵌入式终端的生成逻辑业务的装置结 构示意图。
本发明目的的实现、 功能特点及优异效果, 下面将结合具体实施例以 及附图做进一步的说明。 具体实施方式
下面结合附图和具体实施例对本发明所述技术方案作进一步的详细描 述, 以使本领域的技术人员可以更好的理解本发明并能予以实施, 但所举 实施例不作为对本发明的限定。
为解决嵌入式移动终端应用 UI交互事件的处理问题, 达到应用与应用 之间解耦合,应用与平台之间解耦合,应用与图形用户界面(GUI, Graphical User lnteface )软件解耦合, 应用内部的控制、 服务、 窗口解耦合, 需要总 体考虑应用开发的模型。
如图 1 所示, 其为逻辑管理模块在系统中所处的位置。 应用开发框架 提供一个平台, 以支持应用开发者在框架上开发应用。 应用内部和应用之 间都通过应用开发框架进行通讯。 逻辑控制属于应用开发框架的一部分, 应用窗口对应用控制发送消息, 应用服务向应用控制上报消息, 以及应用 间的消息, 通过逻辑管理模块处理后, 自动生成应用控制代码框架。
在应用开发框架中, 还包括应用管理、 窗口管理、 配置管理、 数据管 理以及事件管理, 其中, 事件管理、 配置管理以及应用窗口管理这几个模 块是必要的三大要素。
如图 2所示, 本发明实施例提供的一种用于嵌入式终端的生成逻辑业 务的方法, 包括如下步驟:
S101、 配置应用的应用逻辑信息以形成配置文件;
在该步驟中, 所述配置文件中配置的应用逻辑信息包括以下信息的至 少一个: 应用名称信息、 应用所在线程信息、 应用是否为多线程判别信息、 应用多线程信息。 更为优选地, 缺省的配置以及与界面交互的逻辑管理框 架配置在界面线程中, 和协议栈交互的逻辑管理框架配置在缺省的控制流 程线程之中。 例如, 在实际应用过程中, 在配置文件之中主要配置应用所 在的线程、 应用的名称、 应用是否多线程, 以及多线程的信息。 缺省的配 置将和界面交互的控制流程框架配置在界面线程中, 和协议栈交互的框架 配置在缺省的控制流程线程中。 对于有特殊实时性能要求的协议栈消息, 可以将该控制流程配置到独立的线程中。 这里还需要配置应用间的消息, 在配置文件中声明需要关注其他应用的消息名称。
S102、 逻辑管理模块对用户输入的可视化界面代码进行识别, 并依据 识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口 逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 以形成和 界面交互的逻辑管理框架。
在该步驟中, 在 UI分离框架中, 界面和控制逻辑的交互通过 UI消息 实现, 通过手工或者工具进行可视化界面代码, 需要和逻辑进行交互的部 分声明相应的消息和注释, 逻辑管理模块对这些代码进行识别, 自动声明 并注释生成可视化界面中产生的窗口逻辑消息, 由这些逻辑消息自动产生 处理函数族, 形成和界面交互的逻辑管理框架。
优选实施方式下, 在执行所有步驟之后所述用于嵌入式终端的生成逻 辑业务的方法还包括:
S 103、 逻辑管理模块通过识别声明在应用服务公共头文件中的协议栈 消息, 并依据配置文件中相应的应用逻辑信息自动生成对应的处理函数族, 以形成和协议栈交互的逻辑管理框架。
在该步驟中, 每个应用需要处理的协议栈消息基本是固定的, 而这些 协议栈消息声明在应用服务公共头文件中, 逻辑管理模块通过识别服务头 文件对协议栈消息的声明, 配合使用应用的配置信息, 自动声明不同的应 用通道, 声明对相应协议栈消息的关注, 并自动生成对应的处理函数族, 形成和协议栈交互的逻辑管理框架。
优选实施方式下, 本示例的用于嵌入式终端的生成逻辑业务的方法还 包括:
S104、 逻辑管理模块通过查询配置文件中声明的应用间消息自动生成 对应的应用间消息处理函数族, 以形成应用间交互的逻辑管理框架。
在该步驟中, 通过在配置文件中配置的对其他应用消息声明, 自动生 成对应的应用间消息处理函数族, 形成和其他应用相关的逻辑管理框架。
所述步驟 S101用于配置应用逻辑的相关信息, 这些信息包括应用的逻 辑线程信息、 界面交互信息、 协议栈交互信息、 应用间交互信息。 后继逻 辑管理框架依赖这些信息进行代码的自动生成。
另外, 采用配置的优点, 也有益于 UI设计工具的引入。 采用 UI界面 设计工具, 应用的控制信息可以用手工编写, 使用工具可视化的设计窗口 界面, 最终生成和消息对应的处理函数。 该信息可以通过配置管理与流程 控制代码关联起来。
在所述步驟 S102-步驟 S104中, 逻辑管理模块定位应用框架中的消息 (窗口消息、 协议栈消息、 应用间消息等), 进行一定的预处理(例如进行 格式化名称、 重名检测等), 自动生成对应的处理过程。 对于协议栈消息, 将对应的处理过程声明在不同的线程中。
综合以上步驟, 针对不同的应用, 或者同一个应用的升级, 都可以快 速产生应用对逻辑的处理。 例如新增一个窗口或新增一个协议栈消息, 如 果无线程的特殊要求, 逻辑管理框架可以自动生成逻辑入口代码, 另外, 在新增一个应用间消息时, 则可以在配置文件中简单声明后自动生成逻辑 入口代码。
具体实施时, 应用开发使用逻辑管理模块的过程如下:
( 1 ) GUI工具调用逻辑管理模块接口, 开始控制框架生成过程。
( 2 )进入应用配置阶段, 例如: 配置线程、 应用间关系、 以及自动生 成框架的范围。 ( 3 )逻辑管理模块读取配置内容。
( 4 )根据应用间消息生成应用间消息处理框架。
( 5 )读取界面代码, 获取界面代码中的控制请求消息。
( 6 )生成界面消息处理框架。
( 7 )读取应用服务代码, 获取服务提供的服务消息。
( 8 )生成服务消息处理框架。
( 9 )合成对应的头文件和控制处理文件。
另外, 对于逻辑管理模块的具体实现步驟, 描述如下:
( 1 )逻辑管理模块读取相应应用的设置, 检测自动生成框架的范围, 以及应用所在线程, 是使用公共线程还是新开线程。 是否生成窗口消息、 服务消息、 应用间消息的处理框架。
( 2 )检测应用窗口代码中的窗口消息, 生成应用控制对窗口消息控制 框架。
( 3 )检测平台 (服务)代码中的上报消息, 生成应用控制中服务消息 的处理框架。
( 4 )根据应用间消息声明生成应用间消息的处理框架。
相应地, 本发明实施例还提供了一种用于嵌入式终端的生成逻辑业务 的装置, 如图 3所示, 所述装置包括:
配置模块 10, 用于配置应用的应用逻辑信息以形成配置文件; 其中, 优选实施方式下, 所述配置文件中配置的应用逻辑信息包括: 应用名称信 息、 应用所在线程信息、 应用是否为多线程判别信息、 应用多线程信息, 更为优选地, 缺省的配置以及与界面交互的逻辑管理框架配置在界面线程 中, 和协议栈交互的逻辑管理框架配置在缺省的控制流程线程之中;
逻辑管理模块 20, 用于对用户输入的可视化界面代码进行识别, 并依 据识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗 口逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 以形成 和界面交互的逻辑管理框架。
优选实施方式下, 所述逻辑管理模块 20还用于通过识别声明在应用服 务公共头文件中的协议栈消息, 并依据配置文件中相应的应用逻辑信息自 动生成对应的处理函数族, 以形成和协议栈交互的逻辑管理框架。
优选实施方式下, 所述逻辑管理模块 20还用于通过查询配置文件中声 明的应用间消息自动生成对应的应用间消息处理函数族, 以形成应用间交 互的逻辑管理框架。
相应地, 本发明实施例还提供了一种终端, 其包括如上所述的用于嵌 入式终端的生成逻辑业务的装置, 参考图 3 , 其中, 所述装置包括:
配置模块 10, 用于配置应用的应用逻辑信息以形成配置文件; 逻辑管理模块 20, 用于对用户输入的可视化界面代码进行识别, 并依 据识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗 口逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 以形成 和界面交互的逻辑管理框架。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围 , 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。
工业实用性
本发明统一管理应用内的逻辑处理事件, 接收事件后自动生成处理入 口, 通过将逻辑事件统一管理, 从而使得逻辑管理模块的控制结构简单清 晰。 并且, 将应用的控制部分与资源等部分分开管理, 使得应用的开发按 照模型-视图-控制器的模式进行, 各个角色专注于自己的事情, 分工更加清 晰, 角色之一的修改变不会给其他角色带来较大的影响。

Claims

权利要求书
1、 一种用于嵌入式终端的生成逻辑业务的方法, 包括:
配置应用的应用逻辑信息以形成配置文件;
逻辑管理模块对用户输入的可视化界面代码进行识别, 并依据识别结 果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口逻辑消 息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 形成和界面交互 的逻辑管理框架。
2、 根据权利要求 1所述的用于嵌入式终端的生成逻辑业务的方法, 其 中, 所述方法还包括:
逻辑管理模块通过识别声明在应用服务公共头文件中的协议栈消息, 并依据配置文件中相应的应用逻辑信息自动生成对应的处理函数族, 形成 和协议栈交互的逻辑管理框架。
3、 根据权利要求 1所述的用于嵌入式终端的生成逻辑业务的方法, 其 中, 所述方法还包括:
逻辑管理模块通过查询配置文件中声明的应用间消息自动生成对应的 应用间消息处理函数族, 形成应用间交互的逻辑管理框架。
4、 根据权利要求 1所述的用于嵌入式终端的生成逻辑业务的方法, 其 中, 所述配置文件中配置的应用逻辑信息包括以下信息的至少一种: 应用 名称信息、 应用所在线程信息、 应用是否为多线程判别信息、 应用多线程 信息。
5、 根据权利要求 4所述的用于嵌入式终端的生成逻辑业务的方法, 其 中, 缺省的配置以及与界面交互的逻辑管理框架配置在界面线程中, 和协 议栈交互的逻辑管理框架配置在缺省的控制流程线程之中。
6、 一种用于嵌入式终端的生成逻辑业务的装置, 包括:
配置模块, 用于配置应用的应用逻辑信息以形成配置文件; 逻辑管理模块, 用于对用户输入的可视化界面代码进行识别, 并依据 识别结果查询配置文件中相应的应用逻辑信息并生成可视化界面中的窗口 逻辑消息, 并由这些窗口逻辑消息自动生成对应的处理函数族, 形成和界 面交互的逻辑管理框架。
7、 根据权利要求 6所述的用于嵌入式终端的生成逻辑业务的装置, 其 中, 所述逻辑管理模块还用于通过识别声明在应用服务公共头文件中的协 议栈消息, 并依据配置文件中相应的应用逻辑信息自动生成对应的处理函 数族, 形成和协议栈交互的逻辑管理框架。
8、 根据权利要求 6所述的用于嵌入式终端的生成逻辑业务的装置, 其 中, 所述逻辑管理模块还用于通过查询配置文件中声明的应用间消息自动 生成对应的应用间消息处理函数族, 以形成应用间交互的逻辑管理框架。
9、 根据权利要求 6所述的用于嵌入式终端的生成逻辑业务的装置, 其 中, 所述配置文件中配置的应用逻辑信息包括以下信息的至少之一: 应用 名称信息、 应用所在线程信息、 应用是否为多线程判别信息、 应用多线程 信息。
10、 根据权利要求 9所述的用于嵌入式终端的生成逻辑业务的装置, 其中, 缺省的配置以及与界面交互的逻辑管理框架配置在界面线程中, 和 协议栈交互的逻辑管理框架配置在缺省的控制流程线程之中。
11、 一种终端, 包括如权利要求 6至 10任一项所述的用于嵌入式终端 的生成逻辑业务的装置。
PCT/CN2012/077954 2011-11-23 2012-06-29 用于嵌入式终端的生成逻辑业务的方法、装置及终端 WO2013075496A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/368,580 US9632684B2 (en) 2011-11-23 2012-06-29 Method, device and terminal for generating logic service for embedded terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110376244.6A CN102520927B (zh) 2011-11-23 2011-11-23 用于嵌入式终端的生成逻辑业务的方法、装置及终端
CN201110376244.6 2011-11-23

Publications (1)

Publication Number Publication Date
WO2013075496A1 true WO2013075496A1 (zh) 2013-05-30

Family

ID=46291870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077954 WO2013075496A1 (zh) 2011-11-23 2012-06-29 用于嵌入式终端的生成逻辑业务的方法、装置及终端

Country Status (3)

Country Link
US (1) US9632684B2 (zh)
CN (1) CN102520927B (zh)
WO (1) WO2013075496A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520927B (zh) 2011-11-23 2014-09-10 中兴通讯股份有限公司 用于嵌入式终端的生成逻辑业务的方法、装置及终端
CN106155651B (zh) * 2015-03-31 2019-03-01 广州四三九九信息科技有限公司 应用程序版本的自动化发布及更新的方法和系统
CN105827814A (zh) * 2015-11-16 2016-08-03 广东亿迅科技有限公司 一种手机客户端子系统
US10318562B2 (en) 2016-07-27 2019-06-11 Google Llc Triggering application information
JP6876233B2 (ja) * 2016-09-26 2021-05-26 富士フイルムビジネスイノベーション株式会社 画像形成装置及びプログラム
JP6876234B2 (ja) * 2016-09-26 2021-05-26 富士フイルムビジネスイノベーション株式会社 画像形成装置及びプログラム
CN111352742B (zh) * 2018-12-21 2024-02-09 三六零科技集团有限公司 一种基于app组件化的信息传递方法及装置
CN113434315B (zh) * 2021-07-07 2024-05-17 京东科技控股股份有限公司 接口管理方法及装置、存储介质、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101410824A (zh) * 2004-04-30 2009-04-15 微软公司 用于终端用户规则逻辑的定义和执行的规则框架
CN101901267A (zh) * 2010-08-02 2010-12-01 中兴通讯股份有限公司 配置文件管理的方法及装置
CN102231162A (zh) * 2011-07-01 2011-11-02 福建富士通信息软件有限公司 基于业务处理的规则引擎动态配置方法
CN102236559A (zh) * 2011-08-01 2011-11-09 苏州万图明电子软件有限公司 一种软件生成系统
CN102520927A (zh) * 2011-11-23 2012-06-27 中兴通讯股份有限公司 用于嵌入式终端的生成逻辑业务的方法、装置及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2554381B2 (ja) * 1990-03-30 1996-11-13 インターナショナル・ビジネス・マシーンズ・コーポレーション プログラミング支援装置
US5748894A (en) * 1991-11-21 1998-05-05 Hitachi, Ltd. Cooperative information processing method and apparatus utilizing local program
US7305656B2 (en) * 2002-02-14 2007-12-04 Hubbard & Wells Content management framework for use with a system for application development
CN1304945C (zh) * 2004-06-02 2007-03-14 中兴通讯股份有限公司 一种电信设备配置界面自动生成方法
US8422397B2 (en) * 2007-12-28 2013-04-16 Prodea Systems, Inc. Method and apparatus for rapid session routing
CN101799754A (zh) * 2009-12-17 2010-08-11 中国电力科学研究院 一种web应用开发方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101410824A (zh) * 2004-04-30 2009-04-15 微软公司 用于终端用户规则逻辑的定义和执行的规则框架
CN101901267A (zh) * 2010-08-02 2010-12-01 中兴通讯股份有限公司 配置文件管理的方法及装置
CN102231162A (zh) * 2011-07-01 2011-11-02 福建富士通信息软件有限公司 基于业务处理的规则引擎动态配置方法
CN102236559A (zh) * 2011-08-01 2011-11-09 苏州万图明电子软件有限公司 一种软件生成系统
CN102520927A (zh) * 2011-11-23 2012-06-27 中兴通讯股份有限公司 用于嵌入式终端的生成逻辑业务的方法、装置及终端

Also Published As

Publication number Publication date
US9632684B2 (en) 2017-04-25
CN102520927A (zh) 2012-06-27
US20150040063A1 (en) 2015-02-05
CN102520927B (zh) 2014-09-10

Similar Documents

Publication Publication Date Title
WO2013075496A1 (zh) 用于嵌入式终端的生成逻辑业务的方法、装置及终端
TW201826869A (zh) 設備關聯方法、裝置、終端設備和作業系統
CN102984500B (zh) 一种实现多种视频监控设备兼容的方法、装置和系统
CN109522386B (zh) 一种跨gis平台的空间信息服务生成方法和系统
WO2010130165A1 (zh) 一种基于互联网的开放式电信业务生成系统及方法
WO2020228013A1 (zh) 账号关联方法、装置、系统、服务器以及存储介质
CN105872832A (zh) 视频通话方法和系统以及显示装置
WO2010127531A1 (zh) 基于web service的装置、web service组件及方法
CN103544060B (zh) 一种基于webservice的服务调度系统及方法
CN103885666A (zh) 分享信息的传输处理方法和系统
CN104834612B (zh) 一种安卓手机usb调试模式的启动方法
US11182131B2 (en) System and method that support production management
CN108984216A (zh) 一种自动进入与配置bios的方法与装置
WO2010130131A1 (zh) 一种实现设备管理任务并行工作的系统和方法
CN103067511A (zh) 一种http请求处理的控制方法
RU2604983C2 (ru) Способ синтаксического анализа сервиса, гибко адаптированный к тегу ims системы
CN104702844A (zh) 一种基于语音的网络摄像机配置方法
WO2011035659A1 (zh) 功能手机的二次开发方法及装置
CN103186465A (zh) 网页用户界面的浏览器兼容性测试方法和系统
CN112511600B (zh) 智能家居设备数据匹配的方法、系统、设备及存储介质
CN104918113A (zh) 一种模块电视的功能卡端兼容方法及系统
WO2016188133A1 (zh) 智能家电的控制方法和装置
WO2020199469A1 (zh) 基于django框架的接口调用记录方法、装置、设备及存储介质
CN102075646B (zh) 呼叫中心设备控制系统及方法
CN105354120A (zh) 一种智能变电站的scd文件检查装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12850767

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14368580

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 12850767

Country of ref document: EP

Kind code of ref document: A1