Summary of the invention
The object of this invention is to provide a kind of visual development platform based on J2EE and member collection.
The object 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; The module that operation platform designing load completes, and carry out logical operation according to definition, and preserve and transmission operation result, management and dispatching module in operation platform is carried out unified management and scheduling during to the module of all operations, wherein: design platform forms and comprises: module management, flow scheme design device, UI designer, component manager, module template base, UI template base, platform simulator, exploitation debugging acid; Operation platform forms and comprises management and dispatching module, operation module;
Development procedure is: first developer uses design platform to concentrate and select respective members to carry out modular design from member, after modular design, use simulator to test, after module has all designed, module will be automatically generated, and is then loaded into actual motion on operation platform;
1) design platform
(1) module management: module management is the place of all modules of centralized management, registers, revises, deletes, a series of operation in module management;
In system, registering a module requires to comprise following element: 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 |
Affiliated module, is registered in which position in System menu in module |
Display position |
DISPLAY ORDER |
System icon |
The icon that module is used |
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 module; Design cycle is:------modular assembly------is set to be generated/debug the template that selected template is used
Each step is described as follows described in table:
(3) UI designer
UI designer is exactly that material in use system UI template base or self-defined material generate the page that will use, and selects conventional tag element in the page; In UI designer, comprised the conventional assembly of user, having comprised: list element, label assembly, form component, file download/upload assembly;
---page elements is set-----generation/preview page-----binding module that UI design process is: selected template
System UI template base provides many eurypalynous pages, and editor uses, and meanwhile, is added and is revised template at any time by template base management tool; Each step is described as follows described in table:
(4) component manager
Component manager provides multiple infrastructure component for developer for Design/Development personnel, as:
Data query member, data-switching assembly, note assembly, multimedia message assembly, mail assembly; By manager, increase newly, or to there being now assembly to modify;
Instruction set, condition entry port, user data input port and a data-out port that each assembly has pre-defined; 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 assembly input; For making assembly unified management condition entry information, all conditions input parameter type definition, be that aggregate type is inputted in the mode of key-value pair;
User data input port: input will be carried out the data of processing;
User data output port: the data that have assembly to process according to data input message 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, first need to search first assembly and whether second assembly exists input/output end port, whether the type whether the output interface type that then checks first assembly meets second assembly input port is consistent, if condition meets, allows two assemblies to connect;
(5) module template base
Module template base provides multiple analog template by designer, for developer's choice for use; Comprise that data query template, data report template, data acquisition board; In template base, increase operation newly, or to there being now module to modify;
(6) UI template base
UI template base provides multiple UI template by designer, for developer's choice for use; Comprise the data query page, the data list page, the data sheet page, the data statistics page, in UI template base, increase operation newly, or to there being now module to modify;
UI assembly:
UI assembly comprises 4 kinds of FPDP, user data input port, template definition port, data-out port, Meaning transfer interface;
Interface name |
Interface is described |
Data Input Interface |
Carry out the data of data operation processing |
Masterplate definition port |
By the masterplate of providing data formatting output |
Data-out port |
Data Output rusults |
Meaning transfer interface |
The content of appointment is carried out to escape computing |
Form design:
Be used for placing UI assembly, describe quoting and relation, the positional information of inter-module of assembly;
For example list control is mainly used in table data demonstration, list control comprises data-in port, template definition port and data-out port; Data-in port data format definition is aggregate type, for loading object; Template definition port data type is character string, for the definition of data entry format, allow for Html, Xml;
The list of list common element:
Control title |
Control is described |
Control title |
Control is described |
PictureBox |
Image Display control |
RichTextBox |
Text control |
Button |
Button control |
RadioButton |
Single choice control |
TextBox |
Text control |
ComboxBox |
List control |
(7) platform simulator
Simulator moves module loading in simulator, and the operation process that real time modelling is whole is one and intuitively checks operational process for what 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, records current time A, and in each assembly, record called time A1 and end time B1, when last assembly records current time B; A complete time used of instruction is C=B-A, and the single component time used is C1=B1-A1;
cpu monitor is realized:
When an instruction is called, start CUP sampling processing program and real time record CUP utilization rate μ and current time t, and record the called time T s of each assembly and complete time T e, cpu performance when processing whole instruction and carry out according to these data analyses, and according to the time period, distinguish the utilization rate μ of CPU while going single component to carry out;
internal memory monitoring is realized:
When an instruction is called, start internal memory monitoring program, and real time record is internal memory use value Φ and time t at that time at that time, and record the called time T 1s of each assembly and complete time T 1e, according to these data analyses, process the internal memory use value Φ of the called memory value using of this instruction and single component use;
(8) exploitation debugging acid
For the operation of assembly provides debug function, debugging simulator is to rely on component manager to realize, and in component manager, realizes the tracking of data and debugging breakpoints;
2) operation platform
(1) management and dispatching module
Parsing module, and module loading is moved in performer module, and the module of various operations is unified to debugging;
(2) operation module
Operation module major function is to organize and coordinate the operation of modules, when operation module receives after an instruction, just according to instruction, search and module corresponding to initialization, performer is loaded into initialized assembly in buffer memory, directly in buffer memory, searches and use when call next time;
Performer is searched first assembly according to definition, and data are delivered to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, executing data logical operation, and operation result is delivered to next assembly, a to the last module data computing completes, and operation result is shown to UI assembly.
Excellent effect of the present invention:
A. with the most cataloged procedure of graphical layoutprocedure code, developer only need to can be generated and be needed module by pulling of interface.
B. design platform provides visual business Process Design, UI design, stencil design
C. the module that operation platform designing load completes, and carry out logical operation according to definition, and preserve and transmit operation result, the management and dispatching module in 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, the complicacy of using this invention can reduce code to write, improves efficiency of research and development.After applying this invention, J2EE developer only need concentrate and select corresponding member at development platform member according to user's request, and a plurality of Component compositions are become to a module.
With graphical layoutprocedure code manual coding process in the past, developer only need to can generate the module needing by pulling of interface, has greatly improved the efficiency of exploitation, has reduced the possibility going wrong in code compiling procedure.
Platform is comprised of two parts, i.e. design platform and operation platform.Design platform provides visual business Process Design, UI design, stencil design; The module that operation platform designing load completes, and carry out logical operation according to definition, and preserve and transmit operation result, the management and dispatching module in operation platform is carried out unified management and scheduling during to the module of all operations.
Design platform forms and comprises: module management, flow scheme design device, UI designer, component manager, module template base, UI template base, platform simulator, exploitation debugging acid.
Operation platform is comprised of management and dispatching module, operation module and forms.System architecture diagram is referring to accompanying drawing 1.
First developer uses design platform to concentrate and select respective members to design from member, after modular design, can use simulator to test, after module has all designed, module will be automatically generated, and then can be loaded into actual motion on operation platform.Described in process ginseng " embodiment " joint of usage platform generation system module.
System module composition diagram is referring to accompanying drawing 2
System module composition diagram is referring to accompanying drawing 2
1.1) design platform
1.1 (1) module managements
Module management is the place of all modules of centralized management, can in module management, register, revise, delete a series of operation;
In system, registering a module requires to comprise following element: 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 |
Affiliated module, is registered in which position in System menu in module |
Display position |
DISPLAY ORDER |
System icon |
The icon that module is used |
Usable range |
Can check and use role, group, department, the personnel of module |
1.2 flow scheme design devices
Flow scheme design device: provide assembly, the conversion of inter-module, incidence relation, data interaction pattern, process between design UI and module.Design cycle is:------modular assembly------is set to be generated/debug the template that selected template is used
Each step is described as follows described in table:
1.3UI designer
UI designer is exactly that material in use system UI template base or self-defined material generate the page that will use, and in the page, can select conventional tag element.In UI designer, comprised the conventional assembly of user, for example: list element, label assembly, form component, file download/upload assembly;
---page elements is set-----generation/preview page-----binding module that UI design process is: selected template
System UI template base provides many eurypalynous pages, can edit use, meanwhile, can by template base management tool, be added and be revised template at any time.
Each step is described as follows described in table:
1.4 component manager
Component manager, for Design/Development personnel provide multiple infrastructure component for developer, comprising:
Data query member, data-switching assembly, note assembly, multimedia message assembly, mail assembly; By manager, increase newly, or to there being now assembly to modify;
Instruction set, condition entry port, user data input port and a data-out port that each assembly has pre-defined.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 assembly input.For making assembly unified management condition entry information, all conditions input parameter type definition, be that aggregate type is inputted in the mode of key-value pair.
User data input port: input will be carried out the data of processing.
User data output port: the data that have assembly to process according to data input message 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, first need to search first assembly and whether second assembly exists input/output end port, whether the type whether the output interface type that then checks first assembly meets second assembly input port is consistent.If condition meets, allow two assemblies to connect.
1.5 module template base
Module template base provides multiple analog template by designer, for developer's choice for use.As: data query template, data report template, data acquisition board etc.In template base, can increase operation newly, or to there being now module to modify.
1.6UI template base
UI template base provides multiple UI template by designer, for developer's choice for use.As: the data query page, the data list page, the data sheet page, the data statistics page etc.In UI template base, can increase operation newly, or to there being now module to modify.
UI assembly: UI assembly comprises 4 kinds of FPDP, user data input port, template definition port, data-out port, Meaning transfer interface.
Interface name |
Interface is described |
Data Input Interface |
Carry out the data of data operation processing |
Masterplate definition port |
By the masterplate of providing data formatting output |
Data-out port |
Data Output rusults |
Meaning transfer interface |
The content of appointment is carried out to escape computing |
Form design:
Be used for placing UI assembly, describe quoting and the information such as the relation of inter-module, position of assembly.
For example list control is mainly used in table data demonstration, list control comprises data-in port, template definition port and data-out port.Data-in port data format definition is aggregate type, for loading object.Template definition port data type is character string, for the definition of data entry format, allow for Html, Xml, etc.
The list of list common element:
Control title |
Control is described |
Control title |
Control is described |
PictureBox |
Image Display control |
RichTextBox |
Text control |
Button |
Button control |
RadioButton |
Single choice control |
TextBox |
Text control |
ComboxBox |
List control |
1.7 platform simulator
Simulator moves module loading in simulator, and the operation process that real time modelling is whole is one and can intuitively checks operational process for what 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, record current time A, and record is called time (A1) and end time (B1) in each assembly, when last assembly records current time B.A complete time used of instruction is C=B-A, and the single component time used is C1=B1-A1.
cpu monitor is realized:
When an instruction is called, start CUP sampling processing program and real time record CUP utilization rate (A) and current time (t), and record called time (Ts) of each assembly and complete time (Te), the cpu performance according to these data can the whole instruction execution of analyzing and processing time.And the utilization rate of CPU in the time of can going single component to carry out according to time period differentiation.
internal memory monitoring is realized:
When an instruction is called, start internal memory monitoring program, and real time record is the use value of internal memory (A) and time at that time (t) at that time, and record called time (T1s) of each assembly and complete time (T1e), can the memory value of the called use of this instruction of analyzing and processing and the memory value of single component use according to these data.
1.8 exploitation debugging acids
For the operation of assembly provides debug function.Debugging simulator is to rely on component manager to realize, and in component manager, realizes the tracking of data and debugging breakpoints.
Operation platform
2.1 management and dispatching modules
Parsing module, and module loading is moved in performer module, and the module of various operations is unified to debugging.
2.2 operation modules
Operation module major function is to organize and coordinate the operation of modules.When operation module receives after an instruction, just according to instruction, to search and module corresponding to initialization, performer is loaded into initialized assembly in buffer memory, when call next time, can directly in buffer memory, search and use.
Performer is searched first assembly according to definition, and data are delivered to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, executing data logical operation, and operation result is delivered to next assembly, a to the last module data computing completes, and operation result is shown to UI assembly.
Development platform of the present invention, developer only need to can be generated and be needed 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 by pulling of interface; Design platform provides visual business Process Design, UI design, stencil design, interior as comprised:
A. module template base provides the needed most of modules of system development required template, and can to template base, be supplemented according to use procedure and perfect, make template base can adapt to more exploitation needs, a lot of modules only just can complete the exploitation of a module by template
The material that b.UI template base provides interface to need, and can to UI template base, be supplemented according to use procedure and perfect, make template base can adapt to more interface requirement.
The module that operation platform designing load completes, and carry out logical operation according to definition, and preserve and transmit operation result, the management and dispatching module in 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 data are delivered to first assembly, first assembly is according to the arithmetic logic of user's predefined and the customer parameter that imports into, executing data logical operation, and operation result is delivered to next assembly, a to the last module data computing completes, and operation result is shown to UI assembly.
B. performer comprises management and dispatching module, moves, and the module of various operations is unified to debugging by it and by module loading in performer module.
Embodiment: the embodiment that a kind of visual development platform based on J2EE and member collection is discussed below.In summary of the invention, technical scheme of the present invention be have been described in detail, implementing procedure is referring to accompanying drawing 3
First need to 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, flow scheme design device design component, the conversion of inter-module, association are used in level, the position of selecting module to belong in system then, the data exchange process between design UI and module.
After flow scheme design, can carry out UI design, UI design is exactly to use the material in system UI template base to generate the page that will use, and the page can be selected conventional tag element.
By after flow process and page data binding, system, by automatically-generating module, can be carried out dry run at simulator after generation, and dry run is exactly that module loading is moved in module to module, simulates the circulation process of whole module.
All design and develop process after, just module loading can be moved in performer module.