Summary of the invention
The purpose of this invention is to provide a kind of visual development platform based on J2EE and member collection.
The objective of the invention is to realize in the following manner, comprise design platform and operation platform, wherein, design platform provides visual business Process Design, UI design, stencil design; Operation platform loads the module that design is finished, and carry out logical operation according to definition, and preserve and the transmission operation result, management and dispatching module in the operation platform is carried out unified management and scheduling during to the module of all operations, and wherein: design platform is formed and comprised: module management, flow scheme design device, UI designer, component manager, module template base, UI template base, platform simulator, exploitation debugging acid; Operation platform is formed and is comprised management and dispatching module, operation module;
Development procedure is: the developer at first uses design platform to concentrate the selection respective members to carry out modular design from member, after modular design finishes, use simulator to test, after the whole designs of module are finished, module will be generated automatically, is loaded into actual motion on the operation platform then;
1) design platform
(1) module management: module management is the place of all modules of centralized management, registers in module management, revises, deletes, a series of operation;
Module of registration requires to comprise following element in system: the scope of this module is used in the display Name of module name, module, functional description, permission, comprising: role, group, department, personnel, level, the position of selecting module to belong in system;
Module information |
Implication |
Module name |
The access name of functional module |
Display Name |
The display name of functional module |
Functional description |
Functional description |
Affiliated module |
Under module, promptly be registered in which position in the System menu in module |
Display position |
DISPLAY ORDER |
System's icon |
The employed icon of module |
Usable range |
Can check and use role, group, department, the personnel of module |
(2) flow scheme design device
Flow scheme design device: provide assembly, the conversion of inter-module, incidence relation, data interaction pattern, process between design UI and the module;------modular assembly is set------generation/debugging that design cycle is: the selected employed template of template
It is described that each step is described as follows table:
(3) UI designer
The UI designer is exactly that material in the using system UI template base or self-defined material generate the page that will use, and selects tag element commonly used in the page; Comprised the assembly that the user uses always in the UI designer, having comprised: list element, label assembly, form component, file download/upload assembly;
--page elements is set----generation/preview page-----binding module that the UI design process is: selected template
System UI template base provides the page of numerous types, and editor uses, and simultaneously, adds by the template base management tool at any time and revises template; It is described that each step is described as follows table:
(4) component manager
Component manager uses for the developer for design/developer provides multiple infrastructure component, as:
Data query member, data-switching assembly, note assembly, multimedia message assembly, mail assembly; Increase newly by manager, perhaps to there being assembly to make amendment now;
Each assembly is all pre-defined instruction set, condition entry port, user data input port and a data output port; And provide the method for the interface I/O type of supporting when front assembly;
Condition entry port major function is the operational order that will carry out for the assembly input; For making assembly unified management condition entry information, all conditions input parameter type definition is that aggregate type is imported in the mode of key-value pair;
The user data input port: input will be carried out the data of processing;
The user data output port: the data that have assembly to process according to data input information and command information, data content is data acquisition or wall scroll data, data output type uniform format is defined as certain aggregate type;
If connect two assemblies, at first need search first assembly and whether second assembly exists input/output end port, whether the type whether the output interface type of checking first assembly then meets second assembly input port is consistent, if condition satisfies then allows two assemblies are connected;
(5) module template base
The module template base provides multiple simulated templates by the designer, selects to use for the developer; Comprise that data query template, data report template, data acquisition template; In template base, increase operation newly, perhaps to there being module to make amendment now;
(6) UI template base
The UI template base provides multiple UI template by the designer, selects to use for the developer; Comprise the data query page, the data list page, the data sheet page, the data statistics page, in the UI template base, increase operation newly, perhaps to there being module to make amendment now;
The UI assembly:
The UI assembly comprises 4 kinds of FPDP, user data input port, template definition port, data-out port, data escape interface;
Interface name |
Interface is described |
Data Input Interface |
Carry out the data that data operation is handled |
Masterplate definition port |
Masterplate with data formatting output |
Data-out port |
Data output result |
Data escape interface |
The content of appointment is carried out the escape computing |
The list design:
Be used to place the UI assembly, describe quoting and relation, the positional information of inter-module of assembly;
For example list control is mainly used in the table data demonstration, list control comprises data-in port, template definition port and data-out port; The data-in port data format definition is an aggregate type, is used to load object; Template definition port data type is a character string, be used for data entry format definition, allow for Html, Xml;
The tabulation of list common element:
The control title |
Control is described |
The control title |
Control is described |
PictureBox |
Picture shows control |
RichTextBox |
Text control |
Button |
Button control |
RadioButton |
Single selected control part |
TextBox |
Text control |
ComboxBox |
List control |
(7) platform simulator
Simulator moves module loading in simulator, the operation process that real time modelling is whole is one and intuitively checks operational process, the instrument of data check operation for what the developer provided;
Platform simulator provides the function of performance monitoring, cpu monitor, internal memory monitoring;
Performance monitoring is realized:
When an instruction is called, writes down current time A, and in each assembly, write down be called time A1 and concluding time B1, when last assembly has record current time B; Then a complete used time of instruction is C=B-A, and the used time of single component is C1=B1-A1;
When an instruction is called, start CUP sampling processing program and real time record CUP utilization rate μ and current time t, and note each assembly be called time T s and complete time T e, cpu performance when handling whole instruction and carry out according to these data analyses, and distinguish the utilization rate μ of CPU when going single component to carry out according to the time period;
Internal memory monitoring is realized:
When an instruction is called, start the internal memory monitoring program, and real time record is internal memory use value Φ and time t at that time at that time, and note each assembly be called time T 1s and complete time T 1e, handle this instruction internal memory use value Φ that the memory value that uses and single component use that is called according to these data analyses;
(8) exploitation debugging acid
For the operation of assembly provides promoting or transferring examination function, the debugging simulator is to rely on component manager to realize, realizes tracking and debugging breakpoints to data in component manager;
2) operation platform
(1) management and dispatching module
Parsing module, and module loading moved in the performer module, and the module of various operations is unified debugging;
(2) operation module
Operation module major function is to organize and coordinate the operation of each module, after the operation module receives an instruction, just search and the module of initialization correspondence according to instruction, performer initialized assembly is loaded in the buffer memory, directly searches in buffer memory when call next time and uses;
Performer is searched first assembly according to definition, and with data transfer to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, carry out the data logical operation, and operation result is delivered to next assembly, module data computing is to the last finished, and operation result is shown to the UI assembly.
Excellent effect of the present invention:
A. with the most cataloged procedure of graphical layoutprocedure code, the developer only need can generate by pulling of interface needs module.
B. design platform provides visual business Process Design, UI design, stencil design
C. operation platform loads the module that design is finished, and carries out logical operation according to definition, and preserves and transmit operation result, and the management and dispatching module in the operation platform is carried out unified management and scheduling during to the module of all operations
Embodiment
The invention provides a kind of visual development platform based on J2EE and member collection, is a kind of visual development environment, uses this invention can reduce complicacy, the raising efficiency of research and development of code compiling.Use after this invention, J2EE developer only needs according to user's request, concentrates at the development platform member and selects corresponding member, and the synthetic module of a plurality of component groups is got final product.
With graphical layoutprocedure code manual coding process in the past, the developer only need promptly can generate the module that needs by pulling of interface, has greatly improved the efficient of exploitation, has reduced the possibility that goes wrong in the code compiling process.
Platform is made up of two parts, i.e. design platform and operation platform.Design platform provides visual business Process Design, UI design, stencil design; Operation platform loads the module that design is finished, and carries out logical operation according to definition, and preserves and transmit operation result, and the management and dispatching module in the operation platform is carried out unified management and scheduling during to the module of all operations.
Design platform is formed and is comprised: module management, flow scheme design device, UI designer, component manager, module template base, UI template base, platform simulator, exploitation debugging acid.
Operation platform is made up of management and dispatching module, operation module and is formed.System architecture diagram is referring to accompanying drawing 1.
The developer at first uses design platform to concentrate the selection respective members to design from member, after modular design finishes, can use simulator to test, after the whole designs of module are finished, module will be generated automatically, can be loaded into actual motion on the operation platform then.Process ginseng " embodiment " joint of usage platform generation system module is described.
The system module composition diagram is referring to accompanying drawing 2
The system module composition diagram is referring to accompanying drawing 2
1.1) design platform
1.1 (1) module management
Module management is the place of all modules of centralized management, can register, revise, delete a series of operation in module management;
Module of registration requires to comprise following element in system: the scope of this module is used in the display Name of module name, module, functional description, permission, comprising: role, group, department, personnel, level, the position of selecting module to belong in system;
Module information |
Implication |
Module name |
The access name of functional module |
Display Name |
The display name of functional module |
Functional description |
Functional description |
Affiliated module |
Under module, promptly be registered in which position in the System menu in module |
Display position |
DISPLAY ORDER |
System's icon |
The employed icon of module |
Usable range |
Can check and use role, group, department, the personnel of module |
1.2 flow scheme design device
Flow scheme design device: provide assembly, the conversion of inter-module, incidence relation, data interaction pattern, process between design UI and the module.------modular assembly is set------generation/debugging that design cycle is: the selected employed template of template
It is described that each step is described as follows table:
1.3UI designer
The UI designer is exactly that material in the using system UI template base or self-defined material generate the page that will use, and can select the tag element of using always in the page.Comprised the assembly that the user uses always in the UI designer, for example: list element, label assembly, form component, file download/upload assembly;
--page elements is set----generation/preview page-----binding module that the UI design process is: selected template
System UI template base provides the page of numerous types, can edit use, simultaneously, can add by the template base management tool at any time and revise template.
It is described that each step is described as follows table:
1.4 component manager
Component manager uses for the developer for design/developer provides multiple infrastructure component, comprising:
Data query member, data-switching assembly, note assembly, multimedia message assembly, mail assembly; Increase newly by manager, perhaps to there being assembly to make amendment now;
Each assembly is all pre-defined instruction set, condition entry port, user data input port and a data output port.And provide the method for the interface I/O type of supporting when front assembly.
Condition entry port major function is the operational order that will carry out for the assembly input.For making assembly unified management condition entry information, all conditions input parameter type definition is that aggregate type is imported in the mode of key-value pair.
The user data input port: input will be carried out the data of processing.
The user data output port: the data that have assembly to process according to data input information and command information, data content can be data acquisition or wall scroll data, data output type uniform format is defined as certain aggregate type.
If connect two assemblies, at first need search first assembly and whether second assembly exists input/output end port, whether the type whether the output interface type of checking first assembly then meets second assembly input port is consistent.If condition satisfies then allows two assemblies are connected.
1.5 module template base
The module template base provides multiple simulated templates by the designer, selects to use for the developer.As: data query template, data report template, data acquisition template etc.In template base, can increase operation newly, perhaps to there being module to make amendment now.
1.6UI template base
The UI template base provides multiple UI template by the designer, selects to use for the developer.As: the data query page, the data list page, the data sheet page, the data statistics page etc.In the UI template base, can increase operation newly, perhaps to there being module to make amendment now.
The UI assembly: the UI assembly comprises 4 kinds of FPDP, user data input port, template definition port, data-out port, data escape interface.
Interface name |
Interface is described |
Data Input Interface |
Carry out the data that data operation is handled |
Masterplate definition port |
Masterplate with data formatting output |
Data-out port |
Data output result |
Data escape interface |
The content of appointment is carried out the escape computing |
The list design:
Be used to place the UI assembly, describe quoting and information such as the relation of inter-module, position of assembly.
For example list control is mainly used in the table data demonstration, list control comprises data-in port, template definition port and data-out port.The data-in port data format definition is an aggregate type, is used to load object.Template definition port data type is a character string, be used for data entry format definition, allow for Html, Xml, or the like.
The tabulation of list common element:
The control title |
Control is described |
The control title |
Control is described |
PictureBox |
Picture shows control |
RichTextBox |
Text control |
Button |
Button control |
RadioButton |
Single selected control part |
TextBox |
Text control |
ComboxBox |
List control |
1.7 platform simulator
Simulator moves module loading in simulator, the operation process that real time modelling is whole is one and can intuitively checks operational process for what the developer provided, the instrument of data check operation.
Platform simulator provides the function of performance monitoring, cpu monitor, internal memory monitoring.
Performance monitoring is realized:
When an instruction is called, writes down current time A, and in each assembly, write down and be called the time (A1) and the concluding time (B1), when last assembly has record current time B.Then a complete used time of instruction is C=B-A, and the used time of single component is C1=B1-A1.
When an instruction is called, start CUP sampling processing program and real time record CUP utilization rate (A) and current time (t), and note that each assembly is called the time (Ts) and the complete time (Te), the cpu performance when can the whole instruction of analyzing and processing carrying out according to these data.And the utilization rate of CPU in the time of can going single component to carry out according to the time period differentiation.
Internal memory monitoring is realized:
When an instruction is called, start the internal memory monitoring program, and real time record is use value of internal memory (A) and time at that time (t) at that time, and note that each assembly is called the time (T1s) and the complete time (T1e), according to these data memory value that the memory value that uses and single component use that can this instruction of analyzing and processing be called.
1.8 exploitation debugging acid
For the operation of assembly provides promoting or transferring examination function.The debugging simulator is to rely on component manager to realize, realizes tracking and debugging breakpoints to data in component manager.
Operation platform
2.1 management and dispatching module
Parsing module, and module loading moved in the performer module, and the module of various operations is unified debugging.
2.2 operation module
Operation module major function is to organize and coordinate the operation of each module.After the operation module receives an instruction, just search the also module of initialization correspondence according to instruction, performer initialized assembly is loaded in the buffer memory, can directly search in buffer memory and use when call next time.
Performer is searched first assembly according to definition, and with data transfer to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, carry out the data logical operation, and operation result is delivered to next assembly, module data computing is to the last finished, and operation result is shown to the UI assembly.
Development platform of the present invention, the developer only need promptly can generate by pulling of interface needs module, system that module management, flow scheme design device, UI designer, component manager, module template base, UI template base, platform simulator, exploitation debugging acid are provided; Design platform provides visual business Process Design, UI design, stencil design, and is interior as comprising:
A. the module template base provides the needed most of modules of system development required template, and can be replenished template base and perfect according to use, make template base can adapt to more exploitation needs, a lot of modules only just can be finished the exploitation of a module by template
The material that the b.UI template base provides INTERFACE DESIGN to need, and can be replenished the UI template base and perfect according to use, make the template base can adapt to more INTERFACE DESIGN requirement.
Operation platform loads the module that design is finished, and carries out logical operation according to definition, and preserves and transmit operation result, and the management and dispatching module in the operation platform is carried out unified management and scheduling during to the module of all operations, comprising:
A. performer is searched first assembly according to definition, and with data transfer to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, carry out the data logical operation, and operation result is delivered to next assembly, module data computing is to the last finished, and operation result is shown to the UI assembly.
B. performer comprises the management and dispatching module, moves in the performer module by it and with module loading, and the module of various operations is unified debugging.
Embodiment: the embodiment of a kind of visual development platform based on J2EE and member collection of following discussion.Technical scheme of the present invention is described in detail in summary of the invention, implementing procedure is referring to accompanying drawing 3
At first need be in system Registering modules, the functional description of declaration module, the display Name of module, allow to use the scope (role, group, department, personnel etc.) of this simulation, level, the position of selecting module to belong in system are used flow scheme design device design component, the conversion of inter-module, association then, the data exchange process between design UI and the module.
After flow scheme design finishes, can carry out UI design, the UI design is exactly that material in the using system UI template base generates the page that will use, and the page can be selected the tag element used always.
After flow process and page data binding, system can carry out dry run with automatically-generating module at simulator after the generation, and dry run is exactly that module loading is moved on the module to module, simulates the circulation process of whole module.
After all processes of designing and developing finish, just module loading can be moved in the performer module.