CN102866890A - System and method for generating Android embedded interface and program framework based on object correlation - Google Patents

System and method for generating Android embedded interface and program framework based on object correlation Download PDF

Info

Publication number
CN102866890A
CN102866890A CN2012103342497A CN201210334249A CN102866890A CN 102866890 A CN102866890 A CN 102866890A CN 2012103342497 A CN2012103342497 A CN 2012103342497A CN 201210334249 A CN201210334249 A CN 201210334249A CN 102866890 A CN102866890 A CN 102866890A
Authority
CN
China
Prior art keywords
control
control object
layout
embedded type
type interface
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.)
Granted
Application number
CN2012103342497A
Other languages
Chinese (zh)
Other versions
CN102866890B (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.)
Harbin University of Commerce
Original Assignee
Harbin University of Commerce
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 Harbin University of Commerce filed Critical Harbin University of Commerce
Priority to CN201210334249.7A priority Critical patent/CN102866890B/en
Publication of CN102866890A publication Critical patent/CN102866890A/en
Application granted granted Critical
Publication of CN102866890B publication Critical patent/CN102866890B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a system and a method for generating an Android embedded interface and a program framework based on object correlation, which relate to a system and a method for generating an Android embedded interface and a program framework and are used for solving the problems that the function of generating a program framework structure while developing an interface and that a basic Android program framework is not provided during development of an Android program on the conventional mobile terminal operating system. The method comprises the following steps of: selecting an appropriate layout object and a control object; placing the appropriate layout object and the control object into an interface in a dragging way to generate a Layout embedded interface file; correlating the control object in the interface; mapping a correlation relationship and the Layout embedded interface file with a program framework; and establishing a basic code framework structure of a program. The system and the method are used for developing an Android program on a mobile terminal operating system.

Description

Generation system and generation method based on Android embedded type interface and the program frame of object association
Technical field
The present invention relates to generation system and the generation method of a kind of Android embedded type interface and program frame, particularly a kind of generation system and generation method of Android embedded type interface and the program frame based on object association.
Background technology
Along with the rise of mobile Internet and Internet of Things, popularizing of smart mobile phone and MID especially becomes focus for exploitation and the research of mobile device.In the performance history of program of mobile terminal, the exploitation at a lot of interfaces is arranged, have the IDK of many program of mobile terminals for the exploitation at interface.The interface development function of visual WinCE program just is provided such as Microsoft Visual Studio 2005 (VS2005), the developer can generate to develop with this method that pulls oneself WinCE program interface and program frame structure, and the developer can also write the service code of key according to the demand of oneself.And for the exploitation that is all the Android program on the mobile terminal operating system, the function of interface only is provided in the developing instruments such as Eclipse that use in most exploitations, the function that does not have generator program framed structure in development interface, other has some developing instrument that the design at Android interface can only be provided, basic Android program frame is not provided yet, limitation is large, function is too single, so although the developer can utilize these too developments Android program, but the maintenance difficulties of the dependence of quoting for program median surface control is larger, taken the plenty of time in the R﹠D process, and the development scheme of unrealized main flow What You See Is What You Get.And this repetition search the process of quoting dependence, meeting has reduced development efficiency so that the development amount increases.
Summary of the invention
The objective of the invention is to the invention provides generation system and the generation method of a kind of Android embedded type interface based on object association and program frame for the exploitation that solves the Android program on the present mobile terminal operating system does not have the function of generator program framed structure in development interface and the problem of basic Android program frame is not provided.
Based on the Android embedded type interface of object association and the generation system of program frame, it comprises,
The device of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the device of the information of layout object in the Layout embedded type interface file and control object;
The device that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code device of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for the device at program frame CodeWindow display routine skeleton code;
Be used for by the device that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the device of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the device of conversion;
Device for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
Based on the generation method of Android embedded type interface and the program frame of object association, it comprises the steps:
The step of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the step of the information of layout object in the Layout embedded type interface file and control object;
The step that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code step of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for the step at program frame CodeWindow display routine skeleton code;
Be used for by the step that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the step of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the step of conversion;
Step for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
Beneficial effect of the present invention is: 1, set up annexation between interface and Code Design, strengthened the readability of interface and code; 2, the skeleton code structure of Android application program is provided, and the Android application program of developing than standard for general developer provides template; 3, object association thought is introduced interface and code generation field, widened the basic ideological realms that interface and code generate.The present invention can greatly reduce the workload of exploitation.The present invention can realize bottom, database Development of Module and Android compiling of application.Use this systems design and development Android program, can make these interfaces in outward appearance and operation, all keep style unified.
Description of drawings
Fig. 1 is the synoptic diagram of the generating structure tree of control object incidence relation COARTree among the present invention.
Embodiment
Embodiment one: present embodiment is described based on the Android embedded type interface of object association and the generation system of program frame, and it comprises,
The device of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the device of the information of layout object in the Layout embedded type interface file and control object;
The device that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code device of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for the device at program frame CodeWindow display routine skeleton code;
Be used for by the device that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the device of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the device of conversion;
Device for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
Layout embedded type interface file is the interface file of writing for interface display, and its form is the XML file layout, is the technological means that those skilled in the art commonly use.
The Android application program is the application program that refers to operate on the Android operating system.
Embodiment two: present embodiment is to described Android embedded type interface and the further specifying of the generation system of program frame based on object association of embodiment one, be used for to add the device of incidence relation of the control object of Layout embedded type interface file, it comprises
From the information of interface control object, obtain the control object InX of current operation ZDevice;
There is not InX when control object associated group input control is concentrated ZThe time, concentrate interpolation InX at control object associated group input control ZDevice;
There is InX when control object associated group input control is concentrated ZThe time, from the information of interface control object, obtain the control object OutX of current operation ZDevice;
As the concentrated OutX that exists of control object associated group output control Z, and in the related corresponding table of control object OutX ZWhen having associated priority REpriority, InX in the related corresponding table of control object ZWith OutX ZIt is the device of REpriority+1 that numerical value is revised by intersection;
As the concentrated OutX that do not deposit of control object associated group output control ZThe time, concentrate interpolation OutX at control object associated group output control ZDevice;
RelationEvent is the set of control object associated group, RelationEvent={InX Z, OutX Z, REpriority}, InX ZBe control object associated group input control collection, OutX ZBe control object associated group output control collection, InX Z∈ Contro, OutX Z∈ Contro, Wherein Contro is the set of all control object in the described interface, REpriority is associated priority, line display control object associated group input control in the related corresponding table of control object, control object associated group output control is shown in tabulation in the related corresponding table of control object, the intersection of described row and column represents associated priority REpriority, z is positive integer, referring to table 1.
Embodiment three: present embodiment be to embodiment one described based on object association the Android embedded type interface and the further restriction of the generation system of program frame, it also comprises, is used for arranging according to the screen of target terminal the device of different interface painting canvas panels.
Embodiment four: present embodiment is to described Android embedded type interface and the further specifying of the generation system of program frame based on object association of embodiment one, described control object comprises peripheral control, peripheral components and center control, described peripheral control comprises TextView control, EditText control, CheckBox control, RadioButon control and ListView control, described peripheral components comprises I/O control and database, and described center control is the control that Buttun initiates the service logic action.
Embodiment five: described Android embedded type interface and the further specifying of the generation method of program frame based on object association of present embodiment, it comprises the steps:
The step of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the step of the information of layout object in the Layout embedded type interface file and control object;
The step that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code step of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for the step at program frame CodeWindow display routine skeleton code;
Be used for by the step that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the step of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the step of conversion;
Step for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
Embodiment six: present embodiment is to described Android embedded type interface and the further specifying of the generation method of program frame based on object association of embodiment five,
The step of incidence relation of be used for adding the control object of Layout embedded type interface file also comprises the steps:
From the information of interface control object, obtain the control object InX of current operation ZStep;
There is not InX when control object associated group input control is concentrated ZThe time, concentrate interpolation InX at control object associated group input control ZStep;
There is InX when control object associated group input control is concentrated ZThe time, from the information of interface control object, obtain the control object OutX of current operation ZStep;
As the concentrated OutX that exists of control object associated group output control Z, and in the related corresponding table of control object OutX ZWhen having associated priority REpriority, InX in the related corresponding table of control object ZWith OutX ZIt is the step of REpriority+1 that numerical value is revised by intersection;
As the concentrated OutX that do not deposit of control object associated group output control ZThe time, concentrate interpolation OutX at control object associated group output control ZStep;
RelationEvent is the set of control object associated group, RelationEvent={InX Z, OutX Z, REpriority}, InX ZBe control object associated group input control collection, OutX ZBe control object associated group output control collection, InX Z∈ Control, OutX Z∈ Control,
Figure BDA00002124878300061
Wherein Control is the set of all control object in the described interface, REpriority is associated priority, the input control of the line display control object associated group in the related corresponding table of control object, the output control of control object associated group is shown in tabulation in the related corresponding table of control object, the intersection of described row and column represents associated priority REpriority, z is positive integer, referring to table 1.
The related corresponding table of table 1 control object
Figure BDA00002124878300062
Ranks intersection is 1 in the upper table, represents that then there are incidence relation in the corresponding InX of this cell and OutX.
Embodiment seven: present embodiment is to described Android embedded type interface and the further specifying of the generation method of program frame based on object association of embodiment five, it also comprises, is used for arranging according to the screen of target terminal the step of different interface painting canvas panels.
Embodiment eight: present embodiment is to described Android embedded type interface and the further specifying of the generation method of program frame based on object association of embodiment five, described control object comprises peripheral control, peripheral components and center control, described peripheral control comprises TextView control, EditText control, CheckBox control, RadioButon control and ListView control, described peripheral components comprises I/O control and database, and described center control is the control that Buttun initiates the service logic action.
The abstract statement of layout object and control object: convert the layout object of Android system and control object under the Windows system layout object and control object, it possesses original attribute and method.
Dragging method: under the Windows system, by the method that pulls, realize layout object and control object layout arrangement in the drawing board of interface, make up the Layout embedded type interface file that is used for interface display.
The event handling code that generates can be reinvented, and namely rewrites such as Layout embedded type interface file, and the event handling code that then generates in the program frame can be thereupon also corresponding with it from revising.
Code skeleton can be revised for the developer, and the modification that the developer carries out can comprise increase, delete code, and what these codes were finished mainly is business function.The event handling code, be the Android application program during operation phase in the business flow processing process mode and the order control module.
Layout to as if the reference object of various control object display positions of interface display etc., can preset the size of control object, displaying contents etc. by various attribute informations are set, also can make amendment to its attribute information, adapt to the demand of operation flow in the program operation process, system can customize the object type of layout object and spatial object according to demand.
The related corresponding table of control object is the storage organization of incidence relation between control, is that incidence relation is to the reference unit of code mapping.
The event code generation is by using for reference objects association OAR (Object Association Relationship) thought among the present invention, control object incidence relation COAR (Control Object Association Relationship) is proposed, make up control object incidence relation tree COARTree, its structure such as Fig. 1, and take COARTree as the basis, generate Android event handling code.It is defined as follows:
Control object incidence relation tree COARTree is two tuple structure trees, and its node structure is { CenterControl, Relation}, wherein control set centered by the CenterControl, CenterControl={cc1, cc2, cc3 ..., ccz represents the center control element, Relation is the incidence relation information aggregate, Relation={r1, r2, r3,, rz represents associated group information, and z gets any positive integer.
Although COARTree does not have same structure with other child node, just mark action as root node.It is tree, travels through its structure and can generate button.onrelease based on COAR.
Relation is the associated group information aggregate, Relation can be expressed as Relation={Event, two tuples of RelationEvent}, wherein Event is the correlating event set, Event={e1, e2, e3 ..., RelationEvent is related control pair set, ex is the correlating event in the correlating event set, the generation of RelationEvent is based on related generating algorithm, and RelationEvent has two kinds of expression modes, and these two kinds of expression modes are not only independent but also interrelated separately, can cross reference, provide in the definition of back respectively.
Control is peripheral control set, and element has atomic properties among the Control, can not divide; B is the peripheral components set, and element does not have atomic properties among the B, can divide again; Control ∪ CenterControl=UIC,
Figure BDA00002124878300071
For preventing that producing uncontrollable related corresponding relation in association process introduces associated priority REpriority.
Associated priority REpriority, the less expression priority of priority factor is higher.
Peripheral control is divided into two classes, is respectively InControl and OutControl, peripheral control comprises TextView, EditText, CheckBox, RadioButon and ListView; Peripheral components is divided into two classes again, is respectively InB and OutB, peripheral components comprises I/O control and database.
RelationEvent is the set of control object associated group, RelationEvent={InX x, OutX X, REpriority}, InXz are control object associated group input control collection, OutXz is control object associated group output control collection, and InXz ∈ Contro, OutXz ∈ Contro,
Figure BDA00002124878300081
Wherein Contro is the set of all control object in the described interface, and REpriority is associated priority;
In the association process of COAR, just control not can be used as affiliated partner, I/O and database dependency structure is become parts here, proposes as the class control, and the association between control and the component object is divided three classes thus: 1. control is related with control; 2. parts and part relation; 3. control and part relation.Concrete association type and correlating event acting in conjunction generate the related corresponding relation among the COAR.
The control object corresponding relation refers to from the one party of control association, the corresponding set of the control object related with it.Can reflect directly that by REpriority related quantity on the current control, REpriority only act on the Out end, do not work to the In end.
If among the RelationEvent, if there is In==Out, then the Out group has precedence over In;
Correlating event function F RA:RelationEvent * AttributeCollection-〉 Relation;
Decide core correlation function FCR:Control:Control * Relation-COARTree.
Above-mentioned function is those skilled in the art's common mathematical function.
Use peripheral control and part relation generating algorithm to set up the correspondence table of peripheral input and output control and parts.
Peripheral set of controls and center set of controls are two ingredients of control, the center set of controls refers to that Buttun etc. can initiate the control of service logic action, this assembly is the core control section that code is carried out, and affects the execution sequence of concrete service logic and specifically calling of method.The related corresponding table of the peripheral control object of passing through and center set of controls can obtain control object incidence relation tree COARTree, use COARTree in the program frame mapping stage, finish the task of interface layout Layout and code skeleton mapping.For I the object association part of O control roughly the same with the processing mode of other control object, but I the O control object be that mode with carry is embedded in the program.So far, the program frame code based on object association generates complete.The developer can utilize the code skeleton structure that has generated to continue programming, becoming here refers to two aspects, first aspect is the programming of the self-defining class of developer or method, be that the developer writes the operation flow code based on event handling on the other hand in available frame, finish the processing of data.
The realization technology that the present invention adopts is under Windows operating system, uses the javaSwing technology, and Android Application Program Interface element is imitated, and realizes pulling in the process exploitation to the Android Application Program Interface.Utilize JNI to call the process of Android bsp driver, and concrete calling sequentially and mode, determine crucial composition the in the call chain structure, the direct development scheme of AndroidJNI under the Windows is proposed, realize that the Android driver calls exploitation under the Windows operating system, reached exploitation Android application call I under the Windows the purpose of O control, its I the O control object be that the mode that hangs over exists in program, the developer can in program, directly call the standard method that provides realize to I the input and output control of O control object.Realize only relying on JDK and AndroidSDK for the compiling of Android application program, it has been had the digital signature of security, generated the Android application program installation procedure of .apk file.
Program frame referred to above reaches but the program compiler after the mapping is referred to writing in the assembly unit process of Android application program, the program of different phase forms, when not carrying out the injection of interface and control event, the content of target program is exactly the basic program frame structure, otherwise, then be the Android application code structure that can compile.This is the program code assembly unit part behind the most important interface wherein, the Android program is to use the java language as its development language, each .java file will carry out according to the structure of java programming so, to decompose code structure, it mainly is the decomposition of package, import and class, and comprise therein the statement of variable, the definition of method etc.With internal characteristic space and external characteristics space that Android is divided into, its external characteristics API that provides will call as the core in program design stage, and the internal characteristic space will provide running environment for the Android application program based on the present invention's exploitation.
Based on generation system and the generation method of Android embedded type interface and the program frame of object association, wherein the developer chooses suitable layout and control, with its mode by pulling, is placed in the painting canvas of interface, and this is a kind of development scheme of What You See Is What You Get; The control association refers to the existing control in the painting canvas of interface is carried out association, this operation can will be set up incidence relation between the different control object, system will utilize Layout embedded type interface file and the program frame of these incidence relation combination interface design phases to shine upon, the basic code framed structure of creation facilities program (CFP); Event response injects when referring to that the developer utilizes this system to carry out the Android program design, the event response code can inject with association process, the structure of injecting is the part of program code framework, and the be in order compiling requirement of design language of the code skeleton after injecting.It is that the developer adds service code in the code skeleton that has generated that service code is write, the function that these service codes possess when being the program operation, as this locality storage, control I the operation such as O, the target that service code is write is can realize Android program design original intention in the program operation phase, and different service codes will make program finish application purpose after finishing writing; It is developer's a operation that compiling generates installation file, when this system of use develops, the developer can revise compiling or write rear unified compiling by selective basis, refer to after the developer carries out code revision according to revising compiling, system's automatic compiling and to can't by the compiling the code segments such as statement carry out highlighted, write the rear unified behavior that then refers to a kind of program compiler after the developer finishes all code revisions that compiles, the first compile mode comparison operators closes the design original intention of compiler, the function of auxiliary code design is provided, the developer can in time carry out error correction according to highlighted prompting, the second compile mode is that skilled language or the skilled optional mode that provides of the developer of this system are provided, the developer can select according to s own situation during use.

Claims (8)

1. based on the Android embedded type interface of object association and the generation system of program frame, it is characterized in that it comprises,
The device of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the device of the information of layout object in the Layout embedded type interface file and control object;
The device that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code device of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the device of event handling code in the relevant position of program frame code;
Be used for the device at program frame CodeWindow display routine skeleton code;
Be used for by the device that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the device of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the device of conversion;
Device for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
2. according to claim 1ly it is characterized in that based on the Android embedded type interface of object association and the generation system of program frame, be used for adding the device of incidence relation of the control object of Layout embedded type interface file, it comprises,
From the information of interface control object, obtain the control object InX of current operation ZDevice;
There is not InX when control object associated group input control is concentrated ZThe time, concentrate interpolation InX at control object associated group input control ZDevice;
There is InX when control object associated group input control is concentrated ZThe time, from the information of interface control object, obtain the control object OutX of current operation ZDevice;
As the concentrated OutX that exists of control object associated group output control Z, and in the related corresponding table of control object OutX ZWhen having associated priority REpriority, InX in the related corresponding table of control object ZWith OutX ZIt is the device of REpriority+1 that numerical value is revised by intersection;
As the concentrated OutX that do not deposit of control object associated group output control During Z, concentrate interpolation OutX at control object associated group output control ZDevice;
RelationEvent is the set of control object associated group, RelationEvent={InX Z, OutX Z, REpriority}, InX ZBe control object associated group input control collection, OutX ZBe control object associated group output control collection, InX Z∈ Control, OutX Z∈ Control,
Figure FDA00002124878200021
Wherein Control is the set of all control object in the described interface, REpriority is associated priority, line display control object associated group input control in the related corresponding table of control object, control object associated group output control is shown in tabulation in the related corresponding table of control object, the intersection of described row and column represents associated priority REpriority, and z is positive integer.
3. according to claim 1ly it is characterized in that based on the Android embedded type interface of object association and the generation system of program frame that it also comprises, is used for arranging according to the screen of target terminal the device of different interface painting canvas panels.
4. according to claim 1 based on the Android embedded type interface of object association and the generation system of program frame, it is characterized in that, described control object comprises peripheral control, peripheral components and center control, described peripheral control comprises TextView control, EditText control, CheckBox control, RadioButon control and ListView control, described peripheral components comprises I/O control and database, and described center control is the control that Buttun initiates the service logic action.
5. based on the generation method of Android embedded type interface and the program frame of object association, it is characterized in that it comprises the steps:
The step of the Layout embedded type interface file when being used for pulling layout object and the operation of control object generation Android application program;
Be used for showing in interfaces windows the step of the information of layout object in the Layout embedded type interface file and control object;
The step that is used for the attribute of modification layout object and control object;
Be used for program frame code and Layout embedded type interface file are shone upon, and in the program frame code step of relevant position generation event handling code;
Be used for the incidence relation of program frame code and control object is shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for program frame code and incidence relation are shone upon, generate the step of event handling code in the relevant position of program frame code;
Be used for the step at program frame CodeWindow display routine skeleton code;
Be used for by the step that the attribute of layout object and control object is preset size and the displaying contents of control object is set;
Be used for to add the step of incidence relation of the control object of Layout embedded type interface file;
The assignment of the business datum of carrying for the treatment of the control object in the Layout embedded type interface file and the step of conversion;
Step for the related corresponding table information of the control object of safeguarding Layout embedded type interface file.
6. the generation method of Android embedded type interface and the program frame based on object association according to claim 5 is characterized in that, the step of incidence relation that is used for adding the control object of Layout embedded type interface file also comprises the steps:
From the information of interface control object, obtain the control object InX of current operation ZStep;
There is not InX when control object associated group input control is concentrated ZThe time, concentrate interpolation InX at control object associated group input control ZStep;
There is InX when control object associated group input control is concentrated ZThe time, from the information of interface control object, obtain the control object OutX of current operation ZStep;
As the concentrated OutX that exists of control object associated group output control ZThe time, and in the related corresponding table of control object OutX ZWhen having associated priority REpriority, InX in the related corresponding table of control object ZWith OutX ZIt is the step of REpriority+1 that numerical value is revised by intersection;
As the concentrated OutX that do not deposit of control object associated group output control ZThe time, concentrate interpolation OutX at control object associated group output control ZStep;
RelationEvent is the set of control object associated group, RelationEvent={InX Z, OutX Z, REpriority}, InX ZBe control object associated group input control collection, OutX ZBe control object associated group output control collection, InX Z∈ Control, OutX Z∈ Control,
Figure FDA00002124878200031
Wherein Control is the set of all control object in the described interface, REpriority is associated priority, line display control object associated group input control in the related corresponding table of control object, control object associated group output control is shown in tabulation in the related corresponding table of control object, the intersection of described row and column represents associated priority REpriority, and z is positive integer.
7. the generation method of Android embedded type interface and the program frame based on object association according to claim 5 is characterized in that, it also comprises, is used for arranging according to the screen of target terminal the step of different interface painting canvas panels.
8. the generation method of Android embedded type interface and the program frame based on object association according to claim 5, it is characterized in that, described control object comprises peripheral control, peripheral components and center control, described peripheral control comprises TextView control, EditText control, CheckBox control, RadioButon control and ListView control, described peripheral components comprises I/O control and database, and described center control is the control that Buttun initiates the service logic action.
CN201210334249.7A 2012-09-11 2012-09-11 System and method for generating Android embedded interface and program framework based on object correlation Expired - Fee Related CN102866890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210334249.7A CN102866890B (en) 2012-09-11 2012-09-11 System and method for generating Android embedded interface and program framework based on object correlation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210334249.7A CN102866890B (en) 2012-09-11 2012-09-11 System and method for generating Android embedded interface and program framework based on object correlation

Publications (2)

Publication Number Publication Date
CN102866890A true CN102866890A (en) 2013-01-09
CN102866890B CN102866890B (en) 2015-03-11

Family

ID=47445772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210334249.7A Expired - Fee Related CN102866890B (en) 2012-09-11 2012-09-11 System and method for generating Android embedded interface and program framework based on object correlation

Country Status (1)

Country Link
CN (1) CN102866890B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090767A (en) * 2014-07-18 2014-10-08 上海斐讯数据通信技术有限公司 Parameterized user interface development tool and method
CN104317587A (en) * 2014-10-22 2015-01-28 中国人民解放军国防科学技术大学 Automatic android mobile device oriented application generation method
CN105786500A (en) * 2016-02-26 2016-07-20 中国科学院光电技术研究所 Automatic generation method of embedded controller program framework
CN108304113A (en) * 2017-12-28 2018-07-20 深圳市创梦天地科技股份有限公司 A kind of interface alternation configuration method and terminal
CN110096278A (en) * 2019-04-24 2019-08-06 南京东源磐能能源科技股份有限公司 A kind of expansible embedded man-machine interface facility implementation method
CN110795067A (en) * 2019-11-07 2020-02-14 成都淞幸科技有限责任公司 Demand prototype reusable method
CN112882706A (en) * 2021-03-06 2021-06-01 郑州信大捷安信息技术股份有限公司 Implementation method and system for Android native and QT mixed development

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243605A1 (en) * 1997-03-19 2004-12-02 Microsoft Corporation Establishing relationships between objects based on object interfaces
CN101551746A (en) * 2009-05-08 2009-10-07 上海华勤通讯技术有限公司 UI interface configuration method of mobile communication terminal
CN101819527A (en) * 2009-12-28 2010-09-01 东南大学 Method for improving real-time performance of embedded graphic user interface system
CN101859245A (en) * 2009-04-09 2010-10-13 北大方正集团有限公司 Method and device for generating user interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243605A1 (en) * 1997-03-19 2004-12-02 Microsoft Corporation Establishing relationships between objects based on object interfaces
CN101859245A (en) * 2009-04-09 2010-10-13 北大方正集团有限公司 Method and device for generating user interface
CN101551746A (en) * 2009-05-08 2009-10-07 上海华勤通讯技术有限公司 UI interface configuration method of mobile communication terminal
CN101819527A (en) * 2009-12-28 2010-09-01 东南大学 Method for improving real-time performance of embedded graphic user interface system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090767A (en) * 2014-07-18 2014-10-08 上海斐讯数据通信技术有限公司 Parameterized user interface development tool and method
CN104317587A (en) * 2014-10-22 2015-01-28 中国人民解放军国防科学技术大学 Automatic android mobile device oriented application generation method
CN105786500A (en) * 2016-02-26 2016-07-20 中国科学院光电技术研究所 Automatic generation method of embedded controller program framework
CN105786500B (en) * 2016-02-26 2019-02-05 中国科学院光电技术研究所 A kind of embedded controller program frame automatic generation method
CN108304113A (en) * 2017-12-28 2018-07-20 深圳市创梦天地科技股份有限公司 A kind of interface alternation configuration method and terminal
CN110096278A (en) * 2019-04-24 2019-08-06 南京东源磐能能源科技股份有限公司 A kind of expansible embedded man-machine interface facility implementation method
CN110096278B (en) * 2019-04-24 2022-12-20 南京东源磐能能源科技股份有限公司 Extensible embedded man-machine interface tool implementation method
CN110795067A (en) * 2019-11-07 2020-02-14 成都淞幸科技有限责任公司 Demand prototype reusable method
CN112882706A (en) * 2021-03-06 2021-06-01 郑州信大捷安信息技术股份有限公司 Implementation method and system for Android native and QT mixed development
CN112882706B (en) * 2021-03-06 2022-03-25 郑州信大捷安信息技术股份有限公司 Implementation method and system for Android native and QT mixed development

Also Published As

Publication number Publication date
CN102866890B (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN102866890B (en) System and method for generating Android embedded interface and program framework based on object correlation
Gray et al. Domain-Specific Modeling.
CN101334728B (en) Interface creating method and platform based on XML document description
Paige et al. The design of a conceptual framework and technical infrastructure for model management language engineering
US7913224B2 (en) Device for the automated generation of program code
Palsberg et al. Efficient implementation of adaptive software
IL179801A (en) Object process graph system
Merkle Textual modeling tools: overview and comparison of language workbenches
US6446259B2 (en) System and method for generating an object structure at run time in an object-oriented programming language
CN104820613A (en) Compiling method for heterogeneous multi-core routine
CN106415495A (en) Programming system and language for application development
CN101710286A (en) Parallel programming model system of DAG oriented data driving type application and realization method
Kaiser et al. A bi-level language for software process modeling
Sabraoui et al. Gui code generation for android applications using a mda approach
Bjornson et al. Composing reactive GUIs in F# using WebSharper
Chiba et al. Aspect-oriented programming beyond dependency injection
CN112764743A (en) Method for automatically generating software based on data model drive
Vizhanyo et al. Towards generation of efficient transformations
Sukhov et al. Horizontal transformations of visual models in MetaLanguage system
Westfechtel et al. Incremental bidirectional transformations: comparing declarative and procedural approaches using the Families to Persons benchmark
CN114721647A (en) Object-oriented programming method based on codeless application development
Mantz et al. Graph transformation concepts for meta-model evolution guaranteeing permanent type conformance throughout model migration
Chen et al. Tree traversal synthesis using domain-specific symbolic compilation
BOUSETTA et al. Generating operations specification from domain class diagram using transition state diagram
CN111176658B (en) Automatic conversion method from AADL (architecture analysis and design language) to Simulink model based on meta-object mechanism

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150311

Termination date: 20170911