CN103399752A - Mobile phone application chain reaction system and method based on Internet service - Google Patents

Mobile phone application chain reaction system and method based on Internet service Download PDF

Info

Publication number
CN103399752A
CN103399752A CN2013103445676A CN201310344567A CN103399752A CN 103399752 A CN103399752 A CN 103399752A CN 2013103445676 A CN2013103445676 A CN 2013103445676A CN 201310344567 A CN201310344567 A CN 201310344567A CN 103399752 A CN103399752 A CN 103399752A
Authority
CN
China
Prior art keywords
event
configuration file
chain reaction
execution
trigger event
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.)
Pending
Application number
CN2013103445676A
Other languages
Chinese (zh)
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN2013103445676A priority Critical patent/CN103399752A/en
Publication of CN103399752A publication Critical patent/CN103399752A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a mobile phone application chain reaction system and method based on Internet service. The method includes the steps that when an operating system event happens is monitored, a configuration file is looked up; if a chain reaction rule the same as a detected trigger event exists, a configuration file parser is called, a response event of the configuration file is obtained according to the parsed result, a relevant execution event is called according to the response event, and related applications are carried out; the output parameter of the trigger event is written in the configuration file and allows other applications to establish the input parameter of the execution event for use; the configuration file is parsed, and the input parameter of the execution event is recorded through the configuration file; the input parameter of the execution event is transmitted to a component function of the execution event to encapsulate the application. The system provides a platform for the application which an intelligent mobile terminal can be freely integrated for a user, and the user can freely set an intelligent chain reaction among various functions of the mobile terminal on the platform according to individuation.

Description

The mobile phone application chain reaction system and method for Internet-based service
Technical field
The present invention relates to the application and development under movement-based terminal device intelligent operating system platform, particularly relate to the Android application and development of the mobile phone application chain reaction frame system of an Internet-based service.
Background technology
Flourish along with mobile Internet, the mobile terminal device popularity rate of China is more and more higher, and people can complete various things by using mobile phone.The utility function that provides except embedded in mobile phone, such as: make a phone call, photos and sending messages, take a picture, setting alarm clock, use notepad, outside the basic functions such as transmission Email, can also use mobile phone to complete much the thing that need to complete at the pc machine, such as: the qq chat, browse microblogging, browse commodity or purchase by group and with mobile phone, conclude the business, the map location, obtain the functions such as information of wanting by mobile phone.
The present a lot of utility functions of mobile phone support, but these application at present are all independently scattered one by one, and neither one effectively contacts each other.If these independently can be applied organically and connect together, offer as a whole mobile phone users and go to use, will bring more powerful experience to the user.
The present invention wants to offer the platform that can freely integrate the application of intelligent mobile terminal of user, the user can be according to the personalization of oneself, in an intelligent chain reaction between various functions on the cofree setting mobile terminal of this platform, the concrete executive mode of the execution sequence of these chain reactions and each function is can personalize along with user's demand.
Summary of the invention
For above-mentioned existing issue, the invention provides a kind of mobile phone application chain reaction system and method for Internet-based service, provide an integration platform to function scattered on mobile terminal and internet as framework, by configuration file, controlled freely intelligent linkage relation between standalone feature.
The mobile phone application chain reaction system of a kind of Internet-based service that the present invention proposes, this system comprise configuration file, event trigger, configuration file resolver and trigger event execution member, wherein:
Configuration file, for two information that record each chain reaction rule, the one, relation is carried out in the chain reaction of user-defined trigger event and response events, and the 2nd, the structure of the output of trigger event and the event of execution, the latter is used for system and shares;
Event trigger, be used for mutual with operating system, the trigger event that monitoring users has set, concrete operations comprise: when trigger event occurs, the rule of searching configuration file finds corresponding response events, carry out the configuration file resolver of event according to the chain reaction rule invocation, resolve configuration file, carry out application accordingly; After having trigger event to occur, the output of this trigger event is write in configuration file, these outputs can be used for the input of structure execution event;
When event trigger monitors the OS Events generation, search configuration file;
If there is no a chain reaction rule the same with the trigger event that detects in configuration file, do not carry out any operation; If there be the chain reaction rule the same with the trigger event that detects, call the configuration file resolver, obtain its response events according to analysis result, call relevant execution event according to response events, carry out relevant application;
The output parameter of above-mentioned trigger event is written in configuration file, carries out the input parameter of event for all the other application constructions;
Configuration file resolver resolves configuration file, record the input parameter of execution event by configuration file;
The input parameter of carrying out event is passed in the member function of execution event this application is encapsulated.
The configuration file resolver, be used for resolving configuration file, obtains the input parameter of response events;
Trigger event is carried out member, is used for an executable operation of trigger event is encapsulated, and realizes the encapsulation of specifically applying in the method for each trigger event execution member.
The invention allows for a kind of mobile phone application chain reaction method of Internet-based service, the method comprises the following steps:
The first step: when monitoring the OS Events generation, search configuration file;
Second step:, if there is no a chain reaction rule the same with the trigger event that detects in configuration file, do not carry out any operation; If there be the chain reaction rule the same with the trigger event that detects, call the configuration file resolver, obtain its response events according to analysis result, call relevant execution event according to response events, carry out relevant application;
The 3rd step: the output parameter of above-mentioned trigger event is written in configuration file, carries out the input parameter of event for all the other application constructions;
The 4th step: resolve configuration file, record the input parameter of execution event by configuration file;
The 5th step: the input parameter that will carry out event is passed in the member function of execution event this application is encapsulated.
Compared with prior art, the present invention will support mobile phone to commonly use the built-in application function, comprise: phone, note, calendar, address list, clock, p.m.entry, Email, the functions such as geo-location, the large website of each on internet provides the api function, such as: Sina's microblogging, QQ, little letter, popular comment net, Taobao, Weather information, the functions such as train flight-table.By the statement to configuration file of the present invention, in the situation that the syntax are correct, only need configuration file is carried out the configuration of different modes, just can these be carried out as the chain reaction of an organic whole intelligence as the basic function that independently builds in framework in mode arbitrarily, and the relation of this chain reaction is determined by configuration file fully.
Description of drawings
Fig. 1 is the process flow diagram of the mobile phone application chain reaction system of Internet-based service of the present invention.
Embodiment
The present invention is with the backstage of mobile terminal as a framework, and in Open API, the Web service integrated on this framework on mobile terminal built-in services API and internet, independently function will be as the reusable component of framework for these.
The mobile terminal backstage is equivalent to an IOC container, and the mode of injecting by dependence is being controlled dependence between each independent utility, i.e. chain reaction relation between the application by configuration file.When an event occurred, by searching configuration file, which the application of finding the next one to carry out was, and with reflex mechanism, called next application, successively with each application call of chain reaction.
When calling the API of an application, need to provide a concrete parameter to be sent in API and go to carry out.One total dual mode gets the occurrence of parameter, first kind of way be this parameter be last execution application output and can be used as after an input of carrying out application use, another kind of mode is to be used as the input of API by the own constructing variable of user.No matter which kind of mode, all can write on the occurrence of input parameter in configuration file, and when with chain reaction mechanism, having called an independent utility, independent utility has just found by reading configuration file the input parameter that calls API, can call like this.When the parameter that belongs to first kind of way is the output of Another application, after last application executes, output is written to configuration file; When the parameter that belongs to the second way was the output of Another application, by user oneself structure, so this parameter was when the user has generated a configuration file and records with system interaction of the present invention, directly writes in configuration file due to this parameter.
The mobile phone application chain reaction system of Internet-based service of the present invention comprises configuration file, event trigger, configuration file resolver and trigger event execution member.
Configuration file, it is the core of whole system, each rule in configuration file has recorded two important informations: i.e. relation is carried out in the chain reaction of (1) user-defined trigger event and response events, the structure of the output of (2) trigger event and the event of execution; The latter is used for system and shares.By searching configuration file, can after occurring, an execution event know next which event of this execution, construct simultaneously response events and carry out needed input parameter.The user by with website be exactly the process of setting the chain reaction rule alternately, and by website, this rule is written in the configuration file of mobile terminal.
Event trigger, (1) is responsible for operating system mutual, the trigger event that monitoring users has set.When trigger event occurred, the rule of searching configuration file found corresponding response events, carried out the configuration file resolver of event according to the chain reaction rule invocation, resolved configuration file, carried out application accordingly.(2) after having trigger event to occur, the output of this trigger event is write in configuration file, these outputs can be used for the input of structure execution event.
Configuration file resolver: when trigger event and response events input/output argument, when inconsistent, input and output are changed.The configuration file resolver is by resolving configuration file, the input parameter building mode of analyzing responding event.The input parameter of response events is built with two kinds of sources, and a kind of is input from trigger event, and another kind is the input parameter from user individual.Construct the input parameter that response events needs by these two kinds of sources are combined, and to carrying out event based this application member, call.
trigger event is carried out member: each trigger event is carried out member, the operation that can carry out a trigger event encapsulates, provide one can be the function interface of converter use, encapsulated a concrete application in the method for each trigger event execution member, can be that a web service calls and (as calls weather, call railway timetable), can be also call (as little letter) of the interior third party software of mobile phone, it can be (the Email that calls of internet, applications, microblogging, Renren Network), it can be also (the note of calling that cell phone system inside carries application, phone, camera).
System is carried out flow process, as shown in Figure 1:
The first step: when event trigger monitors the OS Events generation, search configuration file;
Second step:, if there is no a chain reaction rule the same with the trigger event that detects in configuration file, do not carry out any operation; If there be the chain reaction rule the same with the trigger event that detects, call the configuration file resolver, obtain its response events according to analysis result, call relevant execution event according to response events, carry out relevant application;
The 3rd step: the output parameter of above-mentioned trigger event is written in configuration file, carries out the input parameter of event for all the other application constructions;
The 4th step: configuration file resolver resolves configuration file, record the input parameter of execution event by configuration file;
The 5th step: the input parameter that will carry out event is passed in the member function of execution event this application is encapsulated.
The content of configuration file has determined between basic application it is that the configuration file how chain reaction is carried out is divided into two parts, a part is used as the effect of input/output argument switching plane, and a part is used for recording the chain reaction relation between trigger event and response events.
The relation of trigger event and the event of execution:
Figure BDA00003641111300051
Each<vertex〉in node, trigger represents the event of trigger event, response represents the event of response events.By this expression, the relationship map of trigger event and response events is arrived together.
The chain reaction graph of a relation:
Figure BDA00003641111300052
<graph〉represent a chain reaction rule, wherein have many<vertex 〉, i.e. relation between two events.By with first<vertex<response with second<vertex<trigger be set to identical event, so just three events can be linked to be the circuit of a connection, generate a chain reaction graph of a relation by this way.
The expression of independent execution event:
Figure BDA00003641111300061
<node〉expression execution event, carrying out representations of events for each is a node in chain reaction figure.Each execution event has unique this event of expression<id 〉, input<input that event carry out to need〉event carries out the output<output that produces 〉.
The output expression:
Figure BDA00003641111300062
<output〉the rear output parameter that produces of node presentation of events execution, each output parameter is with one<parameter〉expression, in an output parameter, with<output-id〉next this parameter of unique expression, use<type〉come the type of recording parameters,<value〉the concrete generation value that is used for storing output parameter.Before event is not carried out,<value〉value is for empty, in event, carry out after having produced output and output valve is written to<value in.
The expression of input structure:
Figure BDA00003641111300071
The expression mode of expression mode and the output of input is the same, and unique difference is, at<value〉in node, will have finer description, because the output that input may be another event may be also the input of user individual structure.
The input occurrence represents:
Figure BDA00003641111300072
In the structured value of input, an input may have several section constructions, may be that the value of the output of an event and user's input combines and is combined into an input, so each input can be decomposed several<token〉sub-fraction of representative input.Wherein<source〉represent the Source Type that comes of this sub-fraction value, 0 represents that this input is the output parameter that comes from another event, 1 represents that this input is the personalized statement of user oneself input.
When input is the output of another event,<node-id〉represent that this is that input derives from which event,<parameter-id〉this input derives from which concrete output parameter of a certain event.When input is the value of user oneself input,<user-typein〉in just preserved the user carried out which type of individual character setting on this parameter.

Claims (2)

1. the mobile phone application chain reaction system of an Internet-based service, is characterized in that, this system comprises configuration file, event trigger, configuration file resolver and trigger event execution member, wherein:
Configuration file, for two information that record each chain reaction rule, the one, relation is carried out in the chain reaction of user-defined trigger event and response events, and the 2nd, the structure of the output of trigger event and the event of execution, the latter is used for system and shares;
Event trigger, be used for mutual with operating system, the trigger event that monitoring users has set, concrete operations comprise: when trigger event occurs, the rule of searching configuration file finds corresponding response events, carry out the configuration file resolver of event according to the chain reaction rule invocation, resolve configuration file, carry out application accordingly; After having trigger event to occur, the output of this trigger event is write in configuration file, these outputs can be used for the input of structure execution event;
When event trigger monitors the OS Events generation, search configuration file;
If there is no a chain reaction rule the same with the trigger event that detects in configuration file, do not carry out any operation; If there be the chain reaction rule the same with the trigger event that detects, call the configuration file resolver, obtain its response events according to analysis result, call relevant execution event according to response events, carry out relevant application;
The output parameter of above-mentioned trigger event is written in configuration file, carries out the input parameter of event for all the other application constructions;
Configuration file resolver resolves configuration file, record the input parameter of execution event by configuration file;
The input parameter of carrying out event is passed in the member function of execution event this application is encapsulated.
The configuration file resolver, be used for resolving configuration file, obtains the input parameter of response events;
Trigger event is carried out member, is used for an executable operation of trigger event is encapsulated, and realizes the encapsulation of specifically applying in the method for each trigger event execution member.
2. the mobile phone application chain reaction method of an Internet-based service, is characterized in that, the method comprises the following steps:
The first step: when monitoring the OS Events generation, search configuration file;
Second step:, if there is no a chain reaction rule the same with the trigger event that detects in configuration file, do not carry out any operation; If there be the chain reaction rule the same with the trigger event that detects, call the configuration file resolver, obtain its response events according to analysis result, call relevant execution event according to response events, carry out relevant application;
The 3rd step: the output parameter of above-mentioned trigger event is written in configuration file, carries out the input parameter of event for all the other application constructions;
The 4th step: resolve configuration file, record the input parameter of execution event by configuration file;
The 5th step: the input parameter that will carry out event is passed in the member function of execution event this application is encapsulated.
CN2013103445676A 2013-08-08 2013-08-08 Mobile phone application chain reaction system and method based on Internet service Pending CN103399752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103445676A CN103399752A (en) 2013-08-08 2013-08-08 Mobile phone application chain reaction system and method based on Internet service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103445676A CN103399752A (en) 2013-08-08 2013-08-08 Mobile phone application chain reaction system and method based on Internet service

Publications (1)

Publication Number Publication Date
CN103399752A true CN103399752A (en) 2013-11-20

Family

ID=49563386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103445676A Pending CN103399752A (en) 2013-08-08 2013-08-08 Mobile phone application chain reaction system and method based on Internet service

Country Status (1)

Country Link
CN (1) CN103399752A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847552A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Application operation method of mobile terminal and mobile terminal
CN106445497A (en) * 2016-06-12 2017-02-22 杭州勒芒科技有限公司 Application program development method and system
CN106790598A (en) * 2016-12-29 2017-05-31 上海木爷机器人技术有限公司 Function configuration method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770767A (en) * 2005-09-01 2006-05-10 武汉思为同飞网络技术有限公司 System and its method for carrying out TCP application layer protocol package for VPN message
US20070300241A1 (en) * 2006-06-23 2007-12-27 Dell Products L.P. Enabling efficient input/output (I/O) virtualization
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN101916196A (en) * 2010-07-19 2010-12-15 中兴通讯股份有限公司 Method for starting application program and mobile terminal
CN103227867A (en) * 2013-04-27 2013-07-31 天津大学 Cellphone application Hub system and application method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770767A (en) * 2005-09-01 2006-05-10 武汉思为同飞网络技术有限公司 System and its method for carrying out TCP application layer protocol package for VPN message
US20070300241A1 (en) * 2006-06-23 2007-12-27 Dell Products L.P. Enabling efficient input/output (I/O) virtualization
CN101876895A (en) * 2009-04-28 2010-11-03 中国科学院计算技术研究所 Package integrated method of application software under grid computing environment
CN101916196A (en) * 2010-07-19 2010-12-15 中兴通讯股份有限公司 Method for starting application program and mobile terminal
CN103227867A (en) * 2013-04-27 2013-07-31 天津大学 Cellphone application Hub system and application method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847552A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Application operation method of mobile terminal and mobile terminal
CN106445497A (en) * 2016-06-12 2017-02-22 杭州勒芒科技有限公司 Application program development method and system
CN106790598A (en) * 2016-12-29 2017-05-31 上海木爷机器人技术有限公司 Function configuration method and system

Similar Documents

Publication Publication Date Title
Zhou The internet of things in the cloud
Cretu Smart cities design using event-driven paradigm and semantic web
US20190196793A1 (en) Building enterprise mobile applications
Namiot et al. On m2m software
Garriga et al. Web services composition mechanisms: a review
CN103412757A (en) Realizing method of personalized integrated framework of mobile applications
CN105701122A (en) Log collection method, apparatus and system
CN112152913A (en) Service control method, device and system
CN103399752A (en) Mobile phone application chain reaction system and method based on Internet service
WO2021129812A1 (en) Method and system for running artificial intelligence application, and device
CN115809056B (en) Component multiplexing implementation method and device, terminal equipment and readable storage medium
CN113111109A (en) Interface warehousing analysis access method of data source
Xu et al. Mobile mashup: Architecture, challenges and suggestions
Sultanow et al. A review of IoT technologies, standards, tools, frameworks and platforms
CN103561113A (en) Web Service interface generating method and device
CN110347562B (en) Data acquisition method and device, computer readable medium and intelligent terminal equipment
Sefid‐Dashti et al. A reference architecture for mobile SOA
Caione et al. WoX: model-driven development of web of things applications
CN107247594B (en) Logic system, implementation method thereof, computing device and computer-readable storage medium
Armando et al. An approach to the unified management of heterogeneous IoT environments
CN103970513A (en) Source data information access method and platform
Rana et al. Harnessing the cloud for mobile social networking applications
Karchoud et al. Kalimucho for smart-*: One step towards eternal applications
CN113111111A (en) Multi-data source database access method
ES2311375B1 (en) SYSTEM FOR PROGRAMMING MOBILE DEVICES BASED ON EVENTS.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131120