CN109471693A - Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system - Google Patents

Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system Download PDF

Info

Publication number
CN109471693A
CN109471693A CN201811259585.3A CN201811259585A CN109471693A CN 109471693 A CN109471693 A CN 109471693A CN 201811259585 A CN201811259585 A CN 201811259585A CN 109471693 A CN109471693 A CN 109471693A
Authority
CN
China
Prior art keywords
component
virtual
interface
management system
cross
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811259585.3A
Other languages
Chinese (zh)
Inventor
李宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang Ourui Technology Co Ltd
Original Assignee
Shenyang Ourui Technology Co Ltd
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 Shenyang Ourui Technology Co Ltd filed Critical Shenyang Ourui Technology Co Ltd
Priority to CN201811259585.3A priority Critical patent/CN109471693A/en
Publication of CN109471693A publication Critical patent/CN109471693A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The present invention provides a kind of method, apparatus, medium and equipment that proprietary component is mapped to Cross-border congestion management system.The method, comprising: reference is based on the pre-registered virtual component of specific function in Cross-border congestion management system;According to the transformation rule in the virtual component, the virtual interface in the virtual component is converted into corresponding real interface;According to the real interface, the corresponding proprietary component of the specific function is called, the proprietary component is mapped in the Cross-border congestion management system.By quoting the virtual component based on specific function, utilize the transformation rule in virtual component, virtual interface in virtual component is converted into corresponding real interface, proprietary component is called using real interface, and then proprietary component can be mapped in Cross-border congestion management system, it can reduce development cost, save the development time, realize and carry out zero cost switching between distinct program library or service.

Description

Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system
Technical field
The present invention relates to computer fields, and in particular to a kind of side that proprietary component is mapped to Cross-border congestion management system Method, device, medium and equipment.
Background technique
There is many Cross-border congestion management technologies, such as Hybrid App (mixed developing), React Native, QT now, These technologies can develop the application program that can operate in multiple platforms (Windows, Mac OS X and Linux).But there is one Defect is exactly difficult to protect the property of user, and property here refers to the former component based on various technological development of user, source generation Code etc..For example, Hybird App usually use JavaScript+HTML+CSS exploitation cross-platform, as Android, The application of the platforms such as iOS, Windows, Mac OS X, but using Hybird App technology is usually from the entire system of zero exploitation System, and it is difficult the component developed in the past using user in the entire system.For example, using Hybird App technological development Android and iOS App, user realize a proprietary video using Kotlin and C++ programming language in Android and broadcast Device is put, realizes proprietary player identical with Android function using Swift and C++ programming language in iOS.It is now to Using a application for embedding the player of Hybird App technological development, but since player is using different technologies in difference It is realized on platform, Hybird App is impossible the proprietary player of Android and iOS platform to be directly embedded into Hybird (because JavaScript cannot directly run the local component on iOS and Android) in App, if broadcasting have to be embedded in Device, just can only be after having write application with Hybird App, do-it-yourself interface, and needs to do the interface of multiple platforms, quite Trouble is time-consuming, and similar application of redeveloping, it is still desirable to do duplicate work, greatly reduce development efficiency, and go out Wrong probability is higher.
In addition, there are many similar services, frame, API on the market now, for example, Ali's cloud other than problem above OSS (object storage) or similar service are both provided with Tencent cloud.If directly provided using Ali's cloud or Tencent's cloud SDK, it is meant that oneself is bundled in a certain cloud service provider using permanent, if later for some reason will be more Cloud service provider is changed, needs to modify a large amount of code, such error-prone, and will increase many costs.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of side that proprietary component is mapped to Cross-border congestion management system Proprietary component can be mapped in Cross-border congestion management system, can reduce development cost by method, device, medium and equipment, save Development time is realized and carries out zero cost switching between distinct program library or service.
The present invention provides a kind of methods that proprietary component is mapped to Cross-border congestion management system, comprising:
Reference is based on the pre-registered virtual component of specific function in Cross-border congestion management system;
According to the transformation rule in the virtual component, the virtual interface in the virtual component is converted to corresponding true Real interface;
According to the real interface, the corresponding proprietary component of the specific function is called, the proprietary component is mapped to In the Cross-border congestion management system.
Optionally, the step of reference is based on specific function pre-registered virtual component in Cross-border congestion management system it Before, further includes:
Establish the virtual component based on specific function;
The virtual component is registered in Cross-border congestion management system.
Optionally, the virtual component of the foundation based on specific function, comprising:
Virtual interface based on specific function is set;
Virtual Realization code is configured in the virtual interface;
The transformation rule that the virtual interface is converted to real interface is set;
The virtual interface and the transformation rule are packaged, virtual component is generated.
Optionally, before the step of virtual interface based on specific function is set, further includes:
Judge whether the component based on specific function is visualization component;
If so, the viewable area of creation component;The step of the virtual interface of the setting based on specific function is executed again Suddenly;
If it is not, the step of then executing the virtual interface being arranged based on specific function.
Optionally, the virtual interface of the setting based on specific function, comprising:
Directly write the virtual interface based on specific function;Alternatively,
Configuration file of the component interface based on specific function is set;
Virtual interface is generated according to the configuration file.
Optionally, the step of reference is based on specific function pre-registered virtual component in Cross-border congestion management system it Afterwards, further includes:
Call the virtual interface in the virtual component;
It is tested in the Cross-border congestion management system and debugs the virtual interface.
Optionally, it is based on the method according to claim 1, wherein being quoted in Cross-border congestion management system After the step of specific function pre-registered virtual component, further includes:
Judge whether the virtual component is visualization component;
If so, the virtual component is placed into window design region;It executes again described according in the virtual component Transformation rule, the step of virtual interface in the virtual component is converted into corresponding real interface;
If it is not, the transformation rule according in the virtual component is then directly executed, by the void in the virtual component The step of quasi- interface conversion is corresponding real interface.
Second aspect, the present invention provide a kind of device that proprietary component is mapped to Cross-border congestion management system, comprising:
Component quotes module, is based on the pre-registered virtual group of specific function for quoting in Cross-border congestion management system Part;
Interface modular converter will be virtual in the virtual component for according to the transformation rule in the virtual component Interface conversion is corresponding real interface;
Component mapping block, for the corresponding proprietary component of the specific function being called, by institute according to the real interface Proprietary component is stated to be mapped in the Cross-border congestion management system.
The third aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the program The method that proprietary component is mapped to Cross-border congestion management system by one of first aspect is realized when being executed by processor.
Fourth aspect, the present invention provide a kind of equipment that proprietary component is mapped to Cross-border congestion management system, comprising: storage Device, processor and storage on a memory and the computer program that can run on a processor, the processor execution journey The method that proprietary component is mapped to Cross-border congestion management system by one of first aspect is realized when sequence.
The present invention provides a kind of method that proprietary component is mapped to Cross-border congestion management system, is based on specific function by reference The virtual component of energy is converted to the virtual interface in virtual component corresponding true using the transformation rule in virtual component Interface calls proprietary component using real interface, and then proprietary component can be mapped in Cross-border congestion management system, can drop Low development cost saves the development time, realizes and carries out zero cost switching between distinct program library or service.
It is provided by the invention a kind of proprietary component is mapped to the device of Cross-border congestion management system, a kind of computer-readable is deposited Storage media and a kind of equipment that proprietary component is mapped to Cross-border congestion management system, with it is above-mentioned it is a kind of by proprietary component be mapped to across The method of platform development system is for identical inventive concept, beneficial effect having the same.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element Or part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is a kind of flow chart for the method that proprietary component is mapped to Cross-border congestion management system provided by the invention;
Fig. 2 is a kind of flow chart of virtual component establishment process provided by the invention;
Fig. 3 is a kind of flow chart of virtual component use process provided by the invention;
Fig. 4 is a kind of schematic diagram for the device that proprietary component is mapped to Cross-border congestion management system provided by the invention.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for Clearly illustrate technical solution of the present invention, therefore be intended only as example, and cannot be used as a limitation and limit protection of the invention Range.
It should be noted that unless otherwise indicated, technical term or scientific term used in this application should be this hair The ordinary meaning that bright one of ordinary skill in the art are understood.
The present invention provides a kind of method, apparatus, medium and equipment that proprietary component is mapped to Cross-border congestion management system. The embodiment of the present invention is illustrated with reference to the accompanying drawing.
Referring to FIG. 1, Fig. 1 be the specific embodiment of the invention provide a kind of proprietary component is mapped to Cross-border congestion management system The flow chart of the method for system, a kind of method that proprietary component is mapped to Cross-border congestion management system provided in this embodiment, comprising:
Step S101: reference is based on the pre-registered virtual component of specific function in Cross-border congestion management system.
Step S102: according to the transformation rule in the virtual component, the virtual interface in the virtual component is converted For corresponding real interface.
Step S103: according to the real interface, the corresponding proprietary component of the specific function is called, by described proprietary group Part is mapped in the Cross-border congestion management system.
Wherein, specific function can be any kind of function.For example, payment function, store function, query function, respectively The function etc. of kind hardware device.
Wherein, proprietary component refers to the corresponding proprietary component of specific function.It may include the proprietary component and hardware of software The proprietary component of equipment.The proprietary component of software may include: the proprietary component of the proprietary component of payment function, storage function Deng.Hardware device includes but is not limited to: the equipment such as bluetooth, exploitation version, temperature sensor, unmanned plane.
Wherein, virtual component can simulate the component of any type, any platform completely, can not only carry out to software Simulation, can also simulate hardware device.
Wherein, Cross-border congestion management system can be any Cross-border congestion management system.For example, small routine, Android, iOS etc. Platform.
Wherein, virtual interface refers to the corresponding API of virtual component (Application Programming It Interface), may include: function, method, attribute etc..The virtual interface of the virtual component of every kind of function type is uniformly to connect Mouthful.For example, the virtual interface of payment function be it is unified, can be used in any Cross-border congestion management system.
Wherein, real interface is the application programming interface for referring to call proprietary component.May include The interface of the Programming with Pascal Language such as JavaScript, Java, Kotlin, Swift, Objective-C, C++.
Wherein, transformation rule refers to the code regulation that virtual interface is converted to real interface.Transformation rule includes function Name, parameter value, default value are asynchronous, synchronize.The form of transformation rule includes XML, JSON format etc..Transformation rule can be The code of various programming languages, including JavaScript, Java, Swift etc..
In the prior art, the proprietary component applied to a specific Cross-border congestion management system, is if desired applied to another A Cross-border congestion management system then needs to be developed under new platform environment again;And the present invention is based on specific function by reference The virtual component of energy is converted to the virtual interface in virtual component corresponding true using the transformation rule in virtual component Interface calls proprietary component using real interface, and then proprietary component can be mapped in Cross-border congestion management system, can drop Low development cost saves the development time, realizes and carries out zero cost switching between distinct program library or service.
In a specific embodiment provided by the invention, reference is preparatory based on specific function in Cross-border congestion management system Before the step of virtual component of registration, further includes: establish the virtual component based on specific function;The virtual component is registered Into Cross-border congestion management system.
Before mapping proprietary component using virtual component, it is also necessary to establish virtual component.Virtual component includes virtually connecing Mouth and transformation rule.The virtual interface of same specific function is consistent, and transformation rule is different due to different Cross-border congestion management systems.
It may include: virtual interface of the setting based on specific function when establishing the virtual component based on specific function;? Virtual Realization code is configured in the virtual interface;The transformation rule that the virtual interface is converted to real interface is set;By institute It states virtual interface and the transformation rule is packaged, generate virtual component.
It, can be using one of following two mode when the virtual interface based on specific function is arranged:
The first: directly writing the interface code of virtual component, and interface code can be JavaScript, Python, PHP The interface code write etc. any programming language.Interface code is mainly made of several functions, class, variable.
Second: setting configuration file of the component interface based on specific function;It is virtually connect according to configuration file generation Mouthful.The configuration file that function in description component is write by JSON or XML format generates virtual component further according to configuration file and connects Mouth code.
Above two mode is all within the scope of the present invention.
In a specific embodiment provided by the invention, the step of virtual interface based on specific function is set it Before, it can also include: to judge whether the component based on specific function is visualization component;If so, the visualization of creation component Region;The step of executing the virtual interface being arranged based on specific function again;If it is not, then executing the setting based on specific function The step of virtual interface of energy.
Before virtual interface is arranged, it can also judge to need whether the virtual component established is visualization component, if so, The viewable area of component is then created, then writes virtual interface.If it is not, then directly writing virtual interface.
Any one visualization component, such as button, label, list, video player, can all have a rectangle or other The region of shape, virtual component are no exception.If the authentic component of virtual component mapping is visualization component (such as Android Or the special player of iOS platform), then virtual component is also required for a viewable area, which can describe virtual group The information such as position, size, background colour, the frame of part.If it is simple virtual component, complete visualization function may be implemented, If it is complicated virtual component, it is only necessary to realize basic function, or even directly placing a rectangle frame can also be with virtual group The viewable area of part is primarily used to the association attributes (such as position, size) of setting authentic component, does not need and true group The function of part is identical.
In a specific embodiment provided by the invention, after setting up virtual interface, need to set in virtual interface Set Virtual Realization code.
So-called Virtual Realization refers to the realization of simulation authentic component, usually only simulates to the result of authentic component.It is right In non-visualization component, mainly it is made of some API (function, attribute etc.), for example, in authentic component UploadFileToAlicloud function is for local file to be uploaded to Ali's Cloud Server.In corresponding virtual group Part also has same function (return value with parameter all), but the uploadFileToAlicloud function of virtual component It does not need that file is really uploaded to Ali's Cloud Server, it is only necessary to simulate this process.Assuming that UploadFileToAlicloud function uploads successfully, returns to true, otherwise returns to false.And it needs incoming by parameter The local file path to be uploaded.It can be by local file from one in the uploadFileToAlicloud function of virtual component A local directory copies to another local directory, to simulate the process for uploading to Ali's cloud.
Wherein, the API in virtual component can be simulated by any feasible mode, and the letter in virtual component Number (or other API) can be consistent with the interface of authentic component, can also be inconsistent, as long as when being converted to authentic component calling It is converted.For example, the corresponding function of virtual component can be uploadFile, it is automatically converted in conversion UploadFileToAlicloud.
Virtual Realization includes the correct realization realized and simulation is abnormal.The abnormal realization of simulation is different by an initiation Normal function (such as error or other names) is come completing, when writing Virtual Realization code, can pass through call cause it is abnormal Function complete that simulation is abnormal, this function is that abnormal whether can trigger is determined by being arranged in Cross-border congestion management system (exception-triggered function is notified by json, xml document or Socket and other any modes), if closing exception-triggered, Exception-triggered function will not trigger abnormal.It is, for example, possible to use following codes to use exception-triggered function.
If opening exception-triggered by Cross-border congestion management system, call error function that will trigger exception, as touching How done after hair exception it is necessary to how be required according to the API of the authentic component of simulation, to return to -1 as abnormal in this example, just 0 is really returned to, then to be also arranged in this way in the respective function of virtual component.
It after testing App using virtual component, is converted, virtual component and other codes, UI is converted to The source code of true platform.If encountering virtual component when conversion, needs to be converted to virtual component corresponding platform and call really The code of component, such as the code of small routine, Android, iOS platform.These codes include but is not limited to JavaScript, The code of the language such as Java, Kotlin, Swift, Objective-C, C++.On how to convert, it is necessary to rely on turning for definition Change rule, transformation rule includes but is not limited to function name, parameter value, default value, asynchronous, synchronize, the form packet of transformation rule Include but be not limited to XML, JSON format and various programming languages (including but not limited to JavaScript, Java, Swift etc.) Code.
Wherein, transformation rule can be user oneself and write, and can also be provided by service provider.This is all in protection of the invention In range.
After establishing virtual component, need to be registered to virtual component in Cross-border congestion management system, including XML, JSON Configuration file mode and code (including but not limited to JavaScript, Java, Swift etc.) mode are registered.
In a specific embodiment provided by the invention, reference is preparatory based on specific function in Cross-border congestion management system It can also include: the virtual interface called in the virtual component after the step of virtual component of registration;Described cross-platform It is tested in development system and debugs the virtual interface.
When using virtual component, need to test and debug virtual interface, to guarantee the availability of virtual interface.
In a specific embodiment provided by the invention, reference is preparatory based on specific function in Cross-border congestion management system It can also include: to judge whether the virtual component is visualization component after the step of virtual component of registration;If so, The virtual component is placed into window design region;The transformation rule according in the virtual component is executed again, by institute State the step of virtual interface in virtual component is converted to corresponding real interface;If it is not, then directly executing described according to Transformation rule in virtual component, the step of virtual interface in the virtual component is converted into corresponding real interface.
Before using virtual component, need to judge whether virtual component is visualization component, if so, needing will be virtual Component is put on the visual design device, if it is not, can then carry out debugging test job, or is directly converted according to transformation rule empty Quasi- interface.
If judging, virtual component is put on the visual design device by virtual component for visualization component, then to virtual group Part carries out debugging test, or directly converts virtual interface according to transformation rule, this is all within the scope of the present invention.
The present invention can use virtual component to map authentic component, including but not limited to the mapping function of authentic component, method, Attribute, UI effect etc.;With virtual component to the Virtual Realization of authentic component, simulated including but not limited in Virtual Realization true The return value of component corresponding A PI, parameter transmitting, UI etc.;The situation of exception-triggered functional simulation exception is used in Virtual Realization, Including but not limited to Cross-border congestion management system interacted by various modes with exception-triggered function (json, xml configuration file, Socket communication etc.);The code conversion for using virtual component is by the conversion described file according to json, xml or extended formatting Use the corresponding code of authentic component.Including but not limited to function return value, function parameter, it is asynchronous, synchronize.
The present invention solves following two technical problems:
1. the component of any type, any platform can be simulated completely by virtual component, allow Hybird App and Other any Cross-border congestion management technologies can be embedded in virtual component, and run and tested.Finally when generating object code Automatically virtual component is substituted for true component.Development efficiency is substantially increased, error probability is reduced.
2. same class application can be abstracted by virtual component, for example, above-mentioned OSS is serviced.It is developing When the unified interface of virtual component can be used.It does so and can solve following Railway Project.
(1) service that these are abstracted can be tested by the characteristic of virtual component.Since virtual component is adopted With a kind of mode of Virtual Realization, so not needing to run true service can complete to develop, for example, not needing very Positive OSS account can simulate true account and be developed and be tested, this is because there is some services to build real test Environment is not easy to, and may also need to spend.
(2) if user wants to switch similar service, for example, it is contemplated that being switched to Tencent's cloud from Ali's cloud, it is only necessary to use Corresponding transformation rule regenerates one time, it is only necessary to which several seconds to a few minutes clock time, conversion cost can almost be ignored not Meter.That is it can be switched over zero cost, the system of oneself is allowed no longer to generate the relationship of close coupling with any service.
(3) if user also wants to use more similar services, transformation rule oneself can be write, is then converted, this All systems using virtual component of sample can all switch in a short time to be finished.
(4) service provider can also define transformation rule by the requirement oneself of virtual component, only need to load so new Transformation rule, the service that system can allow all applications using the virtual component all to provide using the service provider.
Based on a kind of above-mentioned identical inventive concept of method that proprietary component is mapped to Cross-border congestion management system, therewith Corresponding, the embodiment of the invention also provides a kind of devices that proprietary component is mapped to Cross-border congestion management system, such as Fig. 2 institute Show.Since Installation practice is substantially similar and embodiment of the method, so describing fairly simple, related place is implemented referring to method The part explanation of example.
A kind of device that proprietary component is mapped to Cross-border congestion management system provided by the invention, comprising:
Component quotes module 101, pre-registered virtual based on specific function for quoting in Cross-border congestion management system Component;
Interface modular converter 102, for according to the transformation rule in the virtual component, by the void in the virtual component Quasi- interface conversion is corresponding real interface;
Component mapping block 103, for calling the corresponding proprietary component of the specific function according to the real interface, The proprietary component is mapped in the Cross-border congestion management system.
In a specific embodiment provided by the invention, described device, further includes:
Component establishes module, for establishing the virtual component based on specific function;
Component register module, for the virtual component to be registered in Cross-border congestion management system.
In a specific embodiment provided by the invention, the component establishes module, comprising:
Interface setting unit, for the virtual interface based on specific function to be arranged;
Code configuration unit is realized, for configuring Virtual Realization code in the virtual interface;
Transformation rule setting unit is converted to the transformation rule of real interface for the virtual interface to be arranged;
Virtual component generation unit generates virtual group for the virtual interface and the transformation rule to be packaged Part.
In a specific embodiment provided by the invention, the component establishes module, further includes:
First judging unit, for judging whether the component based on specific function is visualization component;
If so, the viewable area of creation component;The content of the interface setting unit is executed again;
If it is not, then executing the content of the interface setting unit.
In a specific embodiment provided by the invention, the interface setting unit, comprising:
Subelement is arranged in first interface, for directly writing the virtual interface based on specific function;Alternatively,
Subelement is arranged in second interface, for configuration file of the component interface based on specific function to be arranged;Matched according to described Set file generated virtual interface.
In a specific embodiment provided by the invention, described device, further includes:
Interface calling module, for calling the virtual interface in the virtual component;
Debugging module, for being tested in the Cross-border congestion management system and debugging the virtual interface.
In a specific embodiment provided by the invention, described device, further includes:
Second judgment module, for judging whether the virtual component is visualization component;
If so, the virtual component is placed into window design region;The interior of the interface modular converter 102 is executed again Hold;
If it is not, then directly executing the content of the interface modular converter 102.
More than, it is a kind of device that proprietary component is mapped to Cross-border congestion management system provided by the invention.
Based on a kind of above-mentioned identical inventive concept of method that proprietary component is mapped to Cross-border congestion management system, therewith Corresponding, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey A kind of above-mentioned method that proprietary component is mapped to Cross-border congestion management system is realized when sequence is executed by processor.
As shown from the above technical solution, a kind of computer readable storage medium provided in this embodiment, is stored thereon with meter Calculation machine program when the program is executed by processor, can utilize virtual component by quoting the virtual component based on specific function In transformation rule, the virtual interface in virtual component is converted into corresponding real interface, using real interface call it is proprietary Component, and then proprietary component can be mapped in Cross-border congestion management system, it can reduce development cost, save the development time, It realizes and carries out zero cost switching between distinct program library or service.
Based on a kind of above-mentioned identical inventive concept of method that proprietary component is mapped to Cross-border congestion management system, therewith Corresponding, the embodiment of the invention also provides a kind of equipment that proprietary component is mapped to Cross-border congestion management system, comprising: deposits Reservoir, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that the processing Device realizes a kind of above-mentioned method that proprietary component is mapped to Cross-border congestion management system when executing described program.
As shown from the above technical solution, provided in this embodiment a kind of proprietary component to be mapped to Cross-border congestion management system Equipment, by quoting the virtual component based on specific function, using the transformation rule in virtual component, by the void in virtual component Quasi- interface conversion is corresponding real interface, calls proprietary component using real interface, and then can be mapped to proprietary component In Cross-border congestion management system, development cost can reduce, save the development time, realize and carry out between distinct program library or service Zero cost switching.
In specification of the invention, numerous specific details are set forth.It is to be appreciated, however, that the embodiment of the present invention can be with It practices without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this specification.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (10)

1. a kind of method that proprietary component is mapped to Cross-border congestion management system characterized by comprising
Reference is based on the pre-registered virtual component of specific function in Cross-border congestion management system;
According to the transformation rule in the virtual component, the virtual interface in the virtual component is converted to and corresponding is really connect Mouthful;
According to the real interface, the corresponding proprietary component of the specific function is called, the proprietary component is mapped to described In Cross-border congestion management system.
2. the method according to claim 1, wherein reference is pre- based on specific function in Cross-border congestion management system Before the step of virtual component first registered, further includes:
Establish the virtual component based on specific function;
The virtual component is registered in Cross-border congestion management system.
3. according to the method described in claim 2, it is characterized in that, the virtual component of the foundation based on specific function, comprising:
Virtual interface based on specific function is set;
Virtual Realization code is configured in the virtual interface;
The transformation rule that the virtual interface is converted to real interface is set;
The virtual interface and the transformation rule are packaged, virtual component is generated.
4. according to the method described in claim 3, it is characterized in that, the step of virtual interface based on specific function is set it Before, further includes:
Judge whether the component based on specific function is visualization component;
If so, the viewable area of creation component;The step of executing the virtual interface being arranged based on specific function again;
If it is not, the step of then executing the virtual interface being arranged based on specific function.
5. according to the method described in claim 3, it is characterized in that, the virtual interface of the setting based on specific function, comprising:
Directly write the virtual interface based on specific function;Alternatively,
Configuration file of the component interface based on specific function is set;
Virtual interface is generated according to the configuration file.
6. the method according to claim 1, wherein reference is pre- based on specific function in Cross-border congestion management system After the step of virtual component first registered, further includes:
Call the virtual interface in the virtual component;
It is tested in the Cross-border congestion management system and debugs the virtual interface.
7. the method according to claim 1, wherein the method according to claim 1, wherein After the step of quoting virtual component pre-registered based on specific function in Cross-border congestion management system, further includes:
Judge whether the virtual component is visualization component;
If so, the virtual component is placed into window design region;Turn according in the virtual component is executed again The step of changing rule, the virtual interface in the virtual component be converted into corresponding real interface;
If it is not, the transformation rule according in the virtual component is then directly executed, by virtually connecing in the virtual component The step of mouth is converted to corresponding real interface.
8. a kind of device that proprietary component is mapped to Cross-border congestion management system characterized by comprising
Component quotes module, is based on the pre-registered virtual component of specific function for quoting in Cross-border congestion management system;
Interface modular converter, for according to the transformation rule in the virtual component, by the virtual interface in the virtual component Be converted to corresponding real interface;
Component mapping block will be described special for calling the corresponding proprietary component of the specific function according to the real interface There is component to be mapped in the Cross-border congestion management system.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor Method described in one of claim 1-7 is realized when row.
10. a kind of equipment that proprietary component is mapped to Cross-border congestion management system, comprising: memory, processor and be stored in On reservoir and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program Method described in one of claim 1-7.
CN201811259585.3A 2018-10-26 2018-10-26 Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system Pending CN109471693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811259585.3A CN109471693A (en) 2018-10-26 2018-10-26 Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811259585.3A CN109471693A (en) 2018-10-26 2018-10-26 Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system

Publications (1)

Publication Number Publication Date
CN109471693A true CN109471693A (en) 2019-03-15

Family

ID=65666091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811259585.3A Pending CN109471693A (en) 2018-10-26 2018-10-26 Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system

Country Status (1)

Country Link
CN (1) CN109471693A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114789A (en) * 2019-06-20 2020-12-22 腾讯科技(深圳)有限公司 Service development method and equipment
CN112148360A (en) * 2020-08-20 2020-12-29 深圳英飞拓智能技术有限公司 Cross-platform embedded software virtual interface implementation method and system
CN112559027A (en) * 2020-12-23 2021-03-26 平安银行股份有限公司 Method, system, device and readable storage medium for creating and managing functional components
CN114237765A (en) * 2021-12-24 2022-03-25 建信金融科技有限责任公司 Functional component processing method and device, electronic equipment and medium
CN110795099B (en) * 2019-09-03 2023-08-29 五八有限公司 Page style conversion method and device, terminal equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309660A (en) * 2013-05-27 2013-09-18 北京尚友通达信息技术有限公司 Mobile application cross-platform development method
CN107908426A (en) * 2017-12-21 2018-04-13 江苏国泰新点软件有限公司 Design method, device, mobile terminal and the storage medium of cross-platform program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309660A (en) * 2013-05-27 2013-09-18 北京尚友通达信息技术有限公司 Mobile application cross-platform development method
CN107908426A (en) * 2017-12-21 2018-04-13 江苏国泰新点软件有限公司 Design method, device, mobile terminal and the storage medium of cross-platform program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114789A (en) * 2019-06-20 2020-12-22 腾讯科技(深圳)有限公司 Service development method and equipment
CN112114789B (en) * 2019-06-20 2024-02-06 腾讯科技(深圳)有限公司 Service development method and equipment
CN110795099B (en) * 2019-09-03 2023-08-29 五八有限公司 Page style conversion method and device, terminal equipment and storage medium
CN112148360A (en) * 2020-08-20 2020-12-29 深圳英飞拓智能技术有限公司 Cross-platform embedded software virtual interface implementation method and system
CN112559027A (en) * 2020-12-23 2021-03-26 平安银行股份有限公司 Method, system, device and readable storage medium for creating and managing functional components
CN114237765A (en) * 2021-12-24 2022-03-25 建信金融科技有限责任公司 Functional component processing method and device, electronic equipment and medium
CN114237765B (en) * 2021-12-24 2023-06-02 建信金融科技有限责任公司 Functional component processing method, device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN109471693A (en) Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system
CN101299862B (en) Telecommunication service generation environmental system
CN102567198B (en) System and method for testing application program in physical system environment
CN103178996B (en) Distributed packet-switching chip model verification system and method
CN110032454A (en) Remote invocation method, system and relevant device and computer readable storage medium
CN102035896B (en) TTCN-3-based distributed testing framework applicable to software system
CN108133007A (en) A kind of method of data synchronization and system
CN104683386A (en) Pile service implementation method and device capable of customizing response
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN110855482A (en) Three-dimensional dynamic communication network analog simulation method, system and storage medium
CN110297470B (en) Lightweight cross-platform rail transit storage battery data monitoring upper computer platform
CN106897107B (en) implementation system and method for web remote data calculation and simulation
CN109948213A (en) A kind of synergy emulation method and device based on FMI standard
CN105577463B (en) A kind of test method and its device based on communication protocol
CN105159670A (en) Universal cockpit display control system software development framework
CN104731566A (en) Testing device, method and system for IDE (Integrated Development Environment)
CN108628729A (en) A kind of method for testing software and software test client
CN105630563A (en) Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language)
CN102968367A (en) Static detection method on basis of embedded software and system thereof
CN113064593A (en) Method and device for dynamic mobile APP, computer equipment and storage medium
CN103942092A (en) HLA co-simulation method supporting LabView graphical programming
Robati et al. Design and simulation of distributed IMA architectures using TTEthernet: a model-driven approach
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN112559335A (en) Test method, device, equipment and storage medium
CN109753281A (en) A kind of microgrid energy management strategy visualization toolkit based on graphic programming

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190315