CN109992421A - A kind of ultrasonic system and its cursor resource distribution method, system, storage medium - Google Patents

A kind of ultrasonic system and its cursor resource distribution method, system, storage medium Download PDF

Info

Publication number
CN109992421A
CN109992421A CN201910281484.4A CN201910281484A CN109992421A CN 109992421 A CN109992421 A CN 109992421A CN 201910281484 A CN201910281484 A CN 201910281484A CN 109992421 A CN109992421 A CN 109992421A
Authority
CN
China
Prior art keywords
cursor
function
turned
resource
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910281484.4A
Other languages
Chinese (zh)
Other versions
CN109992421B (en
Inventor
李松
张佳民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sonoscape Medical Corp
Original Assignee
Sonoscape Medical Corp
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 Sonoscape Medical Corp filed Critical Sonoscape Medical Corp
Priority to CN201910281484.4A priority Critical patent/CN109992421B/en
Publication of CN109992421A publication Critical patent/CN109992421A/en
Application granted granted Critical
Publication of CN109992421B publication Critical patent/CN109992421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of cursor resource distribution methods of ultrasonic system, it is all in current system determining first to have turned on cursor function, using all cursor functions that have turned on as the conjunction of target cursor functional group, corresponding cursor allocation rule is searched in static allocation list, after finding cursor allocation rule, the distribution of cursor resource is completed in having turned on cursor function according to cursor allocation rule using generic logic.Due to can determine all cursor allocation rules for having turned on cursor function and the distribution for realizing cursor resource in current system by way of tabling look-up, when the scene combined there are many cursor function, without writing a large amount of abstract class and corresponding realization code.To greatly reduce code development quantity, the complexity and later maintenance cost for realizing cursor resource distribution are reduced.Present invention also provides a kind of cursor resource distribution system, device and computer readable storage mediums, and above-mentioned technical effect equally may be implemented.

Description

A kind of ultrasonic system and its cursor resource distribution method, system, storage medium
Technical field
The present invention relates to cursor resource application fields, more particularly to a kind of ultrasonic system and its cursor resource distribution side Method, system, computer storage medium.
Background technique
In software product, cursor belongs to a kind of software resource, the position zinformation, left mouse button including cursor and the right side The corresponding operating method of key, mouse-click or the corresponding operating method of double-click etc..In different applications, the corresponding tool of cursor Body function is also different, for example, in some applications, clicking the corresponding function of right mouse button is display operation menu, another In some applications, clicking the corresponding function of right mouse button is the mobile picture currently shown.Even if in addition, in same application, If condition is different, the corresponding concrete function of cursor all can be different.
When realizing different functions, requires to get cursor resource first, then be made by oneself in conjunction with to cursor resource The some realization functions of justice realize specific function.That is, only after getting cursor resource, can realize pair Answer the function of cursor.
In ultrasonic examination, it may appear that the case where cursor function combination occurs, that is to say, that can be held simultaneously in a system A variety of cursor functions are opened, for example, sampling frame can be adjusted with the variation of cursor shift position under Color (color ultrasound) mode Size, here it is the sampling frame functions of color ultrasound mode;Meanwhile it opening PW again under current Color mode (doppler ultrasound is examined It is disconnected) mode, it may turn on the cursor function under PW mode at this time, such as sample line locomotive function, therefore had turned in current system Cursor function just include: Color pattern sample frame function and PW pattern sample line function.This just needs to define how to distribute light Mark resource.
In the prior art, it usually needs an abstract class is write to the combined situation of each cursor function, in abstract class In, this current combination is defined using code function to need how to distribute cursor resource.
With increasing for application scenarios, the combined situation of cursor function is also more and more, each corresponding combination requires As soon as writing an abstract class, therefore need to write a large amount of abstract class, when combination changes, corresponding abstract class is also just needed It to modify therewith, therefore when there is combination to change, it is also necessary to the code function in abstract class that modification has been write.
Therefore, very complicated cumbersome for the implementation method of cursor resource distribution at present, and since abstract class is more, letter Number code is also just very more, and later maintenance cost is also just higher therewith.
Summary of the invention
The object of the present invention is to provide cursor resource distribution method, system, equipment and the computers of a kind of ultrasonic system Readable storage medium storing program for executing, it is very complicated cumbersome with the implementation method for solving the distribution of existing cursor resource, and later maintenance cost compared with High problem.
In order to solve the above technical problems, the present invention provides a kind of cursor resource distribution method, comprising:
It determines and all in current system has turned on cursor function;The cursor function that has turned on is to open in current system Cursor function;
Using all cursor functions that have turned on as the conjunction of target cursor functional group, in the static allocation list pre-established Search cursor allocation rule corresponding with the target cursor functional group conjunction;
Using the cursor allocation rule as the incoming default generic logic of parameter, to realize that cursor resource has turned on all Batch operation between cursor function;Wherein, the generic logic is for realizing the corresponding cursor of different cursor allocation rules The generic logic of resource allocation operations.
Optionally, it includes having turned on cursor function described in one or multiple described having turned on that the target cursor functional group, which is closed, Cursor function;Correspondingly, the static allocation list includes one-dimensional static allocation list or multidimensional static allocation list;The one-dimensional static state The combination of the corresponding cursor function of allocation list, the multidimensional static allocation list correspond to multiple groups for having turned on cursor function It closes.
Optionally, described using all cursor functions that have turned on as the conjunction of target cursor functional group, what is pre-established Cursor allocation rule corresponding with the target cursor functional group conjunction is searched in static allocation list, comprising:
Using all cursor functions that have turned on as the conjunction of target cursor functional group, in the static allocation list pre-established The target for searching highest priority in the target cursor functional group conjunction has turned on cursor function;
Correspondingly, described realize that cursor resource has turned on light all according to the cursor allocation rule using generic logic Mark the batch operation between function, comprising:
The cursor resource target is distributed to according to the cursor allocation rule using the generic logic to have opened Open cursor function.
Optionally, described distributed the cursor resource to the target using the generic logic has turned on cursor function It can, comprising:
Currently it is assigned whether the cursor function of cursor resource is that the target has turned on using generic logic judgement Cursor function;
If it is not, then cursor resource is discharged from the cursor function for being currently assigned cursor resource, and by the cursor Resource allocation to the target has turned on cursor function.
Optionally, it determines and all in current system has turned on cursor function, comprising:
Listen in current system when having turned on cursor function variation, determine and all in current system have turned on cursor function Energy.
Optionally, the method also includes:
The edit instruction for receiving input, it is corresponding with cursor allocation rule to cursor function combination in the static allocation list Relationship carries out edit operation;Wherein, the edit operation includes: addition operation, delete operation or modification operation.
Optionally, when the edit operation is addition operation, the edit instruction of input is received, to the static allocation list Middle cursor function combination and the corresponding relationship of cursor allocation rule carry out edit operation, comprising:
The addition instruction of input is received, the addition instruction includes that cursor function to be added combination is distributed with corresponding cursor Rule;
When including being greater than or equal to 2 cursor functions in the cursor function combination to be added, judge described to be added Whether each cursor function in cursor function combination is mutex relation;
If it is not, the cursor function combination to be added is then added to the static configuration with corresponding cursor allocation rule Table.
Optionally, described to judge whether each cursor function in the cursor function combination to be added is mutex relation, packet It includes:
Judge that each cursor function in the cursor function combination to be added whether there is in the mutex relation pre-established In table, wherein preserve the cursor function combination of mutex relation each other in the mutex relation table;
If not, it is determined that the cursor function group to be added is combined into non-exclusive relationship.
To achieve the above object, present invention also provides a kind of cursor resource distribution systems of ultrasonic system, comprising:
Function determining module all in current system has turned on cursor function for determining;It is described to have turned on cursor function For the cursor function opened in current system;
Searching module, for pre-establishing using all cursor functions that have turned on as the conjunction of target cursor functional group Static allocation list in search corresponding with target cursor functional group conjunction cursor allocation rule;
Cursor resource distribution module, for being passed to default generic logic for the cursor allocation rule as parameter, with reality Existing cursor resource is in all batch operations having turned between cursor function;Wherein, the generic logic is for realizing difference The generic logic of the corresponding cursor resource batch operation of cursor allocation rule.
To achieve the above object, present invention also provides a kind of ultrasonic systems, comprising:
Memory, for storing computer program;
Processor realizes the step of the cursor resource distribution method as described in any one when for executing the computer program Suddenly.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, the cursor resource as described in any one is realized when the computer program is executed by processor The step of distribution method.
By above scheme it is found that a kind of cursor resource distribution method provided by the invention, comprising: determine in current system It is all to have turned on cursor function;The cursor function that has turned on is the cursor function opened in current system;It will be all described It has turned on cursor function to close as target cursor functional group, be searched and the target cursor in the static allocation list pre-established Function combines corresponding cursor allocation rule;Realize cursor resource all according to the cursor allocation rule using generic logic Have turned on the batch operation between cursor function.
It can be seen that a kind of cursor resource distribution method provided by the embodiments of the present application, it is first determined institute in current system Cursor function is had turned on, and using all cursor functions that have turned on as the conjunction of target cursor functional group, is looked into static allocation list Corresponding cursor allocation rule is looked for, after finding cursor allocation rule, using generic logic according to cursor allocation rule Open the distribution that cursor resource is completed in cursor function.Due to can determine all in current system have turned on by way of tabling look-up The cursor allocation rule of cursor function, and after determining cursor allocation rule using generic logic realize cursor resource distribution, When the scene combined there are many cursor function, abstract class and corresponding is write without the combination for every kind of cursor function It realizes code, objective function combined information need to only be safeguarded and be added in static allocation list, realized and corresponded to not by generic logic The cursor resource batch operation of congenerous combination.To greatly reduce code development quantity, reduces and realize cursor resource distribution Complexity and later maintenance cost.Present invention also provides a kind of cursor resource distribution system, device and computer-readable deposit Above-mentioned technical effect equally may be implemented in storage media.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of cursor resource distribution method flow chart provided by the invention;
Fig. 2 is a kind of specific cursor resource distribution method flow chart provided by the invention;
Fig. 3 is a kind of specific cursor resource distribution method flow chart provided by the invention;
Fig. 4 is a kind of specific cursor resource distribution method flow chart provided by the invention;
Fig. 5 is a kind of specific cursor resource distribution method flow chart provided by the invention;
Fig. 6 is a kind of cursor resource distribution system configuration schematic diagram provided by the invention;
Fig. 7 is a kind of ultrasonic system structural schematic diagram provided by the invention.
Specific embodiment
Core of the invention is to provide cursor resource distribution method, system, equipment and the computer of a kind of ultrasonic system Readable storage medium storing program for executing, it is very complicated cumbersome with the implementation method for solving the distribution of existing cursor resource, and later maintenance cost compared with High problem.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to Fig. 1, a kind of cursor resource distribution method of ultrasonic system provided by the embodiments of the present application is specifically included:
S101 is determined and all in current system is had turned on cursor function;The cursor function that has turned on is in current system The cursor function of middle unlatching.
Specifically, all cursor functions having turned in current system are obtained first in this programme, such as Color mode Sampling frame function and PW pattern sample line function.
S102 matches using all cursor functions that have turned on as the conjunction of target cursor functional group in the static state pre-established It sets and searches cursor allocation rule corresponding with the target cursor functional group conjunction in table.
In a specific embodiment, it includes having turned on cursor function described in one that the target cursor functional group, which is closed, Or multiple described have turned on cursor function;Correspondingly, the static allocation list includes that one-dimensional static allocation list or multidimensional static state are matched Set table;The combination of the corresponding cursor function of one-dimensional static allocation list, the multidimensional static allocation list corresponds to multiple described Have turned on the combination of cursor function.
It should be noted that the realization of each cursor function can all be corresponding with corresponding cursor allocation rule in system, The cursor resource batch operation how realized.For example, for the target cursor functional group conjunction for including a kind of cursor function, It needs to be determined that its what data for obtaining cursor resource, such as cursor position data, left button or right button monitored data, for including more For the objective cross of kind cursor function, it is thus necessary to determine that first realize the cursor resource batch operation of which cursor function in combination.
It should be noted that when the cursor function having turned in a system reaches two, for example, opening Color pattern sample frame function opens PW pattern sample line function again when, cursor can not actually be completed at the same time two kinds of function Can, but by getting cursor resource cursor function is in the state realized, and other cursor functions are in pause State can be switched to realization state after getting cursor resource, which could be used.Therefore, it just needs Solve the assignment problem of cursor resource, that is to say, that, it is thus necessary to determine that currently cursor resource is first given which cursor function, And how to realize corresponding batch operation.
It realizes that cursor resource distributes in a manner of table- driven in this programme, specifically, is pre-established in this programme Static allocation list, in table maintenance have cursor function combine and with combine corresponding cursor resource allocation rule.For example, cursor function Energy group is combined into { Color pattern sample frame function, PW pattern sample line function }, and corresponding cursor resource allocation rule is preferential point Dispensing PW pattern sample line function.
It should be noted that when target cursor functional group close include it is multiple it is described have turned on cursor function when, due to difference Combined code function is for handling cursor resource batch operation, therefore wherein for this portion of cursor resource batch operation Point code logic belongs to identical code logic;However due to every kind of function concrete implementation method in different combinations and not The same corresponding cursor resource allocation rule of combination is all different, therefore these contents belong to different parts.
In the present solution, the corresponding relationship safeguarded in the quantity of cursor function and table in the combination of related cursor function Quantity can be determined according to the actual situation without specifically limiting.
It is closed the cursor functions having turned on all in current system as target cursor functional group, in above-mentioned static allocation list Middle carry out table lookup operation determines cursor allocation rule corresponding with the target cursor functional group conjunction.
S103, using the cursor allocation rule as the incoming default generic logic of parameter, to realize cursor resource all Have turned on the batch operation between cursor function;Wherein, the generic logic is corresponding for realizing different cursor allocation rules Cursor resource batch operation generic logic.
It should be noted that corresponding abstract class can all be had by corresponding to the combination of each cursor function in the prior art, This current combination is defined in abstract class using code function to need how to distribute cursor resource.Although different combinations is corresponding Different code functions, but in all code functions, different code logics had both been had, it also has identical code and patrols Volume.
For example, requiring to realize and calling cursor resource, obtain the correlation of cursor data for each cursor function Logic, therefore this part logic can be used as generic logic.It specifically can be according to the reality of current every kind of cursor function in this programme Existing logic determines the generic logic that can be adapted for different function, can will be current when having turned on cursor function variation The cursor function that has turned on be passed to generic logic as dynamic parameter, so that so that generic logic is become corresponding currently has turned on light The logic of the cursor resource batch operation of function is marked, realizes and the cursor resource for currently having turned on cursor function is called.
For including the combination of a variety of cursor functions, it is thus necessary to determine that first realize the cursor resource point of which cursor function With operation.Wherein for cursor resource batch operation, this partial code logic belongs to identical code logic;However due to difference Combination in every kind of function concrete implementation method and the corresponding cursor resource allocation rule of different combinations be all different, Therefore these contents belong to different parts.
In the present solution, identical code logic and different code logics can be combined to set a set of general code in advance Logic, above-mentioned different part can pass to general code logic in the form of parameter etc., so that generic logic be allow to fit The cursor resource batch operation combined with each cursor function.
In the present solution, during the cursor allocation rule and target cursor functional group that are found by above-mentioned static allocation list close The information of cursor function can be used as parameter and be transmitted to generic logic, complete corresponding cursor batch operation using generic logic.
In a kind of specific embodiment, can only it be combined configuration cursor function in above-mentioned static allocation list, general It is defined in logic: when detecting that currently having turned on cursor function is 1, executing that one-dimensional static allocation list is corresponding general to patrol Volume;When detecting that currently having turned on cursor function is 2, the corresponding generic logic of multidimensional static allocation list is executed, it is general at this Definition distributes cursor resource to which cursor function into combination in logic, in such cases, above-mentioned in static allocation list The cursor allocation rule of middle lookup is exactly the cursor function on corresponding position.It should be noted that said one static allocation list A kind of corresponding generic logic.
It can be seen that a kind of cursor resource distribution method provided by the embodiments of the present application, it is first determined institute in current system Cursor function is had turned on, and using all cursor functions that have turned on as the conjunction of target cursor functional group, is looked into static allocation list Corresponding cursor allocation rule is looked for, after finding cursor allocation rule, using generic logic according to cursor allocation rule Open the distribution that cursor resource is completed in cursor function.Due to can determine all in current system have turned on by way of tabling look-up The cursor allocation rule of cursor function, and after determining cursor allocation rule using generic logic realize cursor resource distribution, When the scene combined there are many cursor function, abstract class and corresponding is write without the combination for every kind of cursor function Realize code, a kind of all data of static allocation list may be by a generic logic to realize, even if repairing in this programme Change the syntagmatic or cursor allocation rule in allocation list, it, only need to be by objective function group without the generic logic of modification bottom It closes maintenance of information to be added in static allocation list, the cursor resource distribution behaviour of corresponding different function combination is realized by generic logic Make.To greatly reduce code development quantity, the complexity and later maintenance cost for realizing cursor resource distribution are reduced.
A kind of specific cursor resource distribution method provided by the embodiments of the present application is introduced below, it is described below A kind of specific cursor resource distribution method can be cross-referenced with above-described embodiment.
Referring to fig. 2, a kind of specific cursor resource distribution method provided by the embodiments of the present application, specifically includes:
S201 is determined and all in current system is had turned on cursor function;The cursor function that has turned on is in current system The cursor function of middle unlatching.
S202 matches using all cursor functions that have turned on as the conjunction of target cursor functional group in the static state pre-established Set searched in table the target cursor functional group close in the target of highest priority have turned on cursor function.
In the present solution, setting priority for the cursor function in the combination of each cursor function, priority distributes cursor The priority of resource, cursor resource preferentially distribute to the cursor function of highest priority.
Therefore, it needs to search in static allocation list in the conjunction of target cursor functional group in this programme, the mesh of highest priority Mark has turned on cursor function.
For example, maintenance has information in static allocation list: cursor function group is combined into { Color pattern sample frame function, PW mode Sample line function }, highest priority is PW pattern sample line function.Then determining that target has turned on cursor function is PW pattern sample Line function.
The cursor resource is distributed to the target using generic logic and has turned on cursor function by S203.
Specifically, generic logic can be to distribute to the logic that target has turned on cursor function for cursor resource, and target It has turned on cursor function and can be used as parameter and be transmitted to generic logic.
In the present solution, determining cursor resource allocation rule using priority, need static allocation list only in maintenance light On the basis of marking function combination, indicate that the target of highest priority has turned on cursor function, without safeguarding complicated cursor resource Allocation rule further decreases the maintenance cost of cursor resource batch operation with difficulty.
A kind of specific cursor resource distribution method provided by the embodiments of the present application is introduced below, it is described below A kind of specific cursor resource distribution method can be cross-referenced with above-described embodiment.
Referring to Fig. 3, a kind of specific cursor resource distribution method provided by the embodiments of the present application is specifically included:
S301 is determined and all in current system is had turned on cursor function;The cursor function that has turned on is in current system The cursor function of middle unlatching.
S302 matches using all cursor functions that have turned on as the conjunction of target cursor functional group in the static state pre-established Set searched in table the target cursor functional group close in the target of highest priority have turned on cursor function.
S303, using the generic logic judge currently be assigned cursor resource cursor function whether be the target Open cursor function.
It should be noted that cursor resource may be in by some cursor before carrying out cursor resource distribution The state of funcall, that is to say, that may have some cursor function in current system and be assigned cursor resource, therefore, also It needs to be determined that the target whether cursor function for being currently assigned cursor resource seeks to distribution cursor resource has turned on cursor function Energy.
If it is, being no longer allocated relevant operation.
S304, if it is not, then discharging cursor resource from the cursor function for being currently assigned cursor resource, and will be described Cursor resource distributes to the target and has turned on cursor function.
If it is not, then first discharging cursor resource from current cursor function, then cursor function is distributed to target again Have turned on cursor function.Cursor resource is discharged from current cursor function, it is meant that the cursor function is suspended, when the light After mark function is reallocated cursor resource, can just it be resumed.
A kind of specific cursor resource distribution method provided by the embodiments of the present application is introduced below, it is described below A kind of specific cursor resource distribution method can be cross-referenced with above-described embodiment.
Referring to fig. 4, a kind of specific cursor resource distribution method provided by the embodiments of the present application, specifically includes:
S401, listen in current system have turned on cursor function variation when, determine all in current system have turned on Cursor function.
In the present solution, an oracle listener can be preset, cursor function is had turned in current system for monitoring Change information.Specifically, can monitor had turned in current system cursor function quantity whether have change, in current system Whether the type for opening cursor function has change etc., if when variation, illustrate currently all to have turned on corresponding group of cursor function Conjunction has changed, and therefore, it is necessary to redefine corresponding cursor allocation rule.
S402 matches using all cursor functions that have turned on as the conjunction of target cursor functional group in the static state pre-established It sets and searches cursor allocation rule corresponding with the target cursor functional group conjunction in table.
S403, using the cursor allocation rule as the incoming default generic logic of parameter, to realize cursor resource all Have turned on the batch operation between cursor function.
As it can be seen that this programme by monitor current system in have turned on cursor function change, even if operator is using Frequent switching function in the process can also timely search corresponding cursor allocation rule, complete the batch operation of cursor resource.
A kind of specific cursor resource distribution method provided by the embodiments of the present application is introduced below, it is described below A kind of specific cursor resource distribution method can be cross-referenced with above-described embodiment.
A kind of specific cursor resource distribution method provided by the embodiments of the present application, on the basis of the above embodiments, also Include:
The edit instruction for receiving input, it is corresponding with cursor allocation rule to cursor function combination in the static allocation list Relationship carries out edit operation;Wherein, the edit operation includes: addition operation, delete operation or modification operation.
It should be noted that in practical applications, cursor function combination and corresponding cursor allocation rule are not one At constant, therefore the editting function to static allocation list can be provided in this programme, so that user can be according to the actual situation It edits static allocation list, completes in use to cursor function combination and the maintenance of corresponding cursor allocation rule.
Specifically, the edit instruction for receiving input can specifically include addition instruction, delete instruction, modification instruction.Its In, modification instructs the modification instruction either to corresponding relationship in table, is also possible to the modification combined to cursor function in table Instruction.
It is corresponding with cursor allocation rule to cursor function combination in the static allocation list after receiving edit instruction Relationship carries out edit operation.Edit operation is corresponding with edit instruction, including addition operation, delete operation or modification operation.
It can be seen that, without abstract class is rewritten, being write big if cursor function combination changes in the application The code logic of amount, it is only necessary to which input editing instruction is edited static allocation list according to edit instruction, substantially reduced Maintenance difficulties and cost.
The embodiment of the present application carries out further restriction and explanation to above-described embodiment, specific as follows:
The edit instruction of input is received, to the static configuration when the edit operation is addition operation referring to Fig. 5 Cursor function combination and the corresponding relationship of cursor allocation rule carry out edit operation in table, comprising:
S501, receives the addition instruction of input, and the addition instruction includes cursor function to be added combination and corresponding light Mark allocation rule.
It should be noted that the cursor function to be added combination in addition instruction may include a cursor function, it can also To include multiple cursor functions.
When occurring new cursor function in system, using each cursor function as a cursor function to be added Combination, to be added to one-dimensional static allocation list.After being added to new cursor function, which may can also be with existing light Function combination is marked to occur, and hence it is also possible to determine the combination of the cursor function and other one or more existing cursor functions, it will The combination is combined as cursor function to be added, to be added to multidimensional static allocation list.It is understood that cursor function to be added Can in combination cursor function number it is corresponding with the dimension of static table, such as in cursor function to be added combination cursor function it is a When number is two, cursor function to be added combination is added to two-dimensional static table.In addition, being by existing in static state there are also a kind of situation Certain combination in allocation list rises dimension or dimensionality reduction, includes two cursor function for existing one with two-dimensional static allocation list e.g. A cursor function is added in the combination of energy again becomes the combination including three cursor functions, or reduces in the two cursor functions One cursor function becomes the combination of only one cursor function, and in such cases, system can receive two kinds of instructions, the first It is by the deletion instruction of the existing former combination in static allocation list, is for second that will rise the Combination nova after dimension or dimensionality reduction as wait add Combination is added to be added to the static allocation list instruction of respective dimensions, to realize the addition of Combination nova.
S502, when including being greater than or equal to 2 cursor functions in the cursor function to be added combination, judgement it is described to Whether each cursor function added in cursor function combination is mutex relation.
It should be noted that in systems, some cursor functions can not coexist, therefore also It is not necessary to quiet The combination of these incompatible cursor functions is safeguarded in state allocation list, so as to avoid the dimension to static allocation list The waste for protecting resource, and due to not having extra and useless corresponding relationship in static allocation list, for target cursor functional group When conjunction is tabled look-up, the speed tabled look-up can also be reduced.
In a specific embodiment, the S502 is specifically included:
Judge the cursor function combination to be added with the presence or absence of in the mutex relation table pre-established, wherein described The cursor function combination of mutex relation each other is preserved in mutex relation table;
If not, it is determined that the cursor function group to be added is combined into non-exclusive relationship.
In the present solution, determining whether cursor function combination to be added is mutex relation, can be built in advance for convenience A mutex relation table is found, the cursor function combination of all mutex relations each other, single cursor function are safeguarded in mutex relation table Can combination include one or more cursor functions, when receiving addition instruction, judge that corresponding function to be added combines in Whether each cursor function is in mutex relation table, if proving that each cursor function in function combination to be added is mutual exclusion Relationship, if it was not then proving that each cursor function in function combination to be added is non-exclusive relationship, is needed without being added It is added in static allocation list, executes S503.
S503, if it is not, being then added to the cursor function combination to be added with corresponding cursor allocation rule described quiet State allocation list.
It can be seen that first determine whether function combination to be added is mutex relation in this programme after receiving addition instruction, It is just added if not mutex relation, is otherwise not added in static allocation list, so as to avoid matching static state The waste of the maintenance resource of table is set, and due to there is no extra and useless corresponding relationship in static allocation list, for target light When mark function combination is tabled look-up, the speed tabled look-up can also be reduced.
Below in conjunction with specific application scenarios to a kind of specific cursor resource distribution side provided by the embodiments of the present application Method is introduced, and a kind of specific cursor resource distribution method described below can be cross-referenced with any of the above-described embodiment.
This programme specifically can be applied in medical equipment system, and within the system, cursor function specifically may refer to table 1。
Table 1
Corresponding above-mentioned cursor function, can safeguard that an one-dimensional static allocation list, one-dimensional static allocation list are corresponding with currently Had turned in system cursor function be one when, cursor resource rule for distribution.It can also safeguard including two kinds of cursor functions Combined static allocation list can also safeguard the combined static allocation list including two or more cursor functions, and this programme will To include that the combination of two kinds of cursor functions and the combination of three kinds of cursor functions are introduced, other quantity can be carried out with this programme With reference to.
Referring to table 2, table 2 is the combined static allocation list for including two kinds of cursor functions.
Table 2
Referring to table 3, table 3 is the combined static allocation list for including two kinds of cursor functions.
Table 3
The first step, determine it is all in current system have turned on cursor function, such as E_ColorROI (Color pattern sample frame) With E_PW_MarkLine (PW pattern sample line).
Second step determines that target cursor functional group is combined into { E_ColorROI (Color pattern sample frame), E_PW_ MarkLine (PW pattern sample line) }, determine that target cursor functional group closes corresponding cursor by the static allocation list that table 2 is illustrated Allocation rule is to distribute cursor resource to E_PW_MarkLine (PW pattern sample line).That is, when there is this combination When, cursor resource can preferentially distribute to PW pattern sample line, then again as user's selection is distributed in the manual switching of user Cursor function.
Third step calls generic logic, realizes that cursor resource has turned on cursor all according to the cursor allocation rule Batch operation between function.
It should be noted that generic logic is called, and after corresponding parameter is passed to generic logic, all logical code quilts The letter for having turned on cursor function that 0 or 1 binary digit can be all converted into when execution by computer, and be passed in this programme Breath, it will be converted to binary number from character string, being directly converted to binary digit in this way will be without any sequence Make the information for having turned on cursor function after by transcoding, binary digit be it is regular, in the present solution, can be each Cursor function defines a number mark, then in transcoding, is identified as cursor function according to number and carries out transcoding.Specific cursor The corresponding relationship of function and number mark may refer to table 4, is also not limited to table 4 certainly, can also set according to the actual situation Other fixed reasonable corresponding relationships.
Table 4
Cursor function Number mark
E_Invalid (invalid cursor) 0
E_FramePlayback (single frames cursor) 1
E_CinePlayback (film cursor) 2
E_ColorROI (Color pattern sample frame cursor) 3
E_PW_MarkLine (PW pattern sample linear light mark) 4
E_CW_M_MarkLine (CWM pattern sample linear light mark) 5
E_Pre_Zoom (pre-amplification cursor) 6
E_Zoom (amplification cursor) 7
E_Biopsy (punctures cursor) 8
E_Picc (Picc cursor) 9
E_Cvc (Cvc cursor) 10
E_AMM1_MarkLine (dissection M1 cursor) 11
E_AMM2_MarkLine (dissection M2 cursor) 12
E_AMM3_MarkLine (dissection M3 cursor) 13
E_ElastoROI (elastic sampling frame cursor) 14
E_TDITIC_Trace (strain rate cursor) 15
E_Global_Zoom (the full frame amplification cursor of a key) 16
E_ContrastTIC_Trace (radiography quantitative analysis cursor) 17
A kind of cursor resource distribution system provided by the embodiments of the present application is introduced below, a kind of light described below Marking resource allocation system can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 6, a kind of cursor resource distribution system provided by the embodiments of the present application is specifically included:
Function determining module 601 all in current system has turned on cursor function for determining;It is described to have turned on cursor function It can be the cursor function opened in current system.
Searching module 602, for being built in advance using all cursor functions that have turned on as the conjunction of target cursor functional group Cursor allocation rule corresponding with the target cursor functional group conjunction is searched in vertical static allocation list.
Cursor resource distribution module 603, for realizing cursor resource according to the cursor allocation rule using generic logic In all batch operations having turned between cursor function.
Optionally, searching module 602 is specifically used for that all described cursor function will be had turned on as target cursor functional group It closes, the target that highest priority in the target cursor functional group conjunction is searched in the static allocation list pre-established has turned on light Mark function;
Correspondingly, cursor resource distribution module 603 is specifically used for distributing the cursor resource using the generic logic Cursor function is had turned on to the target.
Optionally, cursor resource distribution module 603 is specifically used for judging currently to be assigned cursor using the generic logic Whether the cursor function of resource is that the target has turned on cursor function;If it is not, then cursor resource is currently assigned from described The cursor function of cursor resource discharges, and the cursor resource is distributed to the target and has turned on cursor function.
Optionally, function determining module 601 be specifically used for listen in current system have turned on cursor function variation when, It determines and all in current system has turned on cursor function.
Optionally, system further include:
Editor module, edit instruction for receiving input, to cursor function combination and cursor in the static allocation list The corresponding relationship of allocation rule carries out edit operation;Wherein, the edit operation includes: addition operation, delete operation or modification Operation.
Optionally, when the edit operation is addition operation, editor module is specifically included:
Receiving unit, addition for receiving input instruction, the addition instruction include cursor function to be added combination and Corresponding cursor allocation rule;
Judging unit, for judging whether the cursor function combination to be added is mutex relation;
When adding unit for the cursor function to be added combination is not mutex relation, by the cursor function to be added It can combine and be added to the static allocation list with corresponding cursor allocation rule.
Optionally, judging unit is specifically used for judge that the cursor function to be added combination whether there is in pre-establishing In mutex relation table, wherein preserve the cursor function combination of mutex relation each other in the mutex relation table;If it is not, then really The fixed cursor function group to be added is combined into non-exclusive relationship.
The cursor resource distribution system of the present embodiment is for realizing cursor resource distribution method above-mentioned, therefore cursor resource The embodiment part of the visible cursor resource distribution method hereinbefore of specific embodiment in distribution system, for example, function is true Cover half block 601, searching module 602, cursor resource distribution module 603 are respectively used to realize in above-mentioned cursor resource distribution method Step S101, S102, S103, so, specific embodiment is referred to the description of corresponding various pieces embodiment, herein It repeats no more.
A kind of ultrasonic system provided by the embodiments of the present application is introduced below, a kind of ultrasonic system described below with Any of the above-described embodiment can be cross-referenced.
Referring to Fig. 7, a kind of ultrasonic system provided by the embodiments of the present application is specifically included:
Memory 100, for storing computer program;
Processor 200, the step of any of the above-described cursor resource distribution method is realized when for executing the computer program.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for ultrasonic system, and any of the above-described reality may be implemented Apply cursor resource distribution method described in example.
Further, the ultrasonic system in the present embodiment can also include:
Input interface 300, for obtaining the computer program of extraneous importing, and the computer program that will acquire save to In the memory 100, it can be also used for the various instructions and parameter that obtain extraneous terminal device transmission, and be transmitted to processor In 200, so that processor 200 is handled accordingly using above-mentioned various instructions and parametric evolving.In the present embodiment, the input is connect Mouth 300 can specifically include but be not limited to USB interface, serial line interface, speech input interface, fingerprint input interface, hard disk and reads Interface etc..
Output interface 400, the various data for generating processor 200 are exported to coupled terminal device, with Other terminal devices convenient for being connected with output interface 400 can get the various data of the generation of processor 200.The present embodiment In, the output interface 400 can specifically include but be not limited to USB interface, serial line interface etc..
Communication unit 500, for completing the communication of current device and other equipment.
Keyboard 600, the various parameters data or instruction inputted and tapping keycap in real time for obtaining user.
Display 700 carries out real-time for the relevant information to cursor resource assigning process and static allocation list maintenance Display.
Mouse 800 can be used for assisting user input data and simplify the operation of user.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer Step provided by above-described embodiment may be implemented when program is executed by processor.The storage medium may include: USB flash disk, movement Hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to cursor function in the above description. These cursor functions are implemented in hardware or software actually, the specific application and design constraint item depending on technical solution Part.Professional technician can realize described cursor function using distinct methods to each specific application, still Such implementation should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand method and its core concept of the invention.It should be pointed out that for the ordinary skill of the art , without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for personnel, these improvement It is also fallen within the protection scope of the claims of the present invention with modification.

Claims (11)

1. a kind of cursor resource distribution method of ultrasonic system characterized by comprising
It determines and all in current system has turned on cursor function;The cursor function that has turned on is the light opened in current system Mark function;
Using all cursor functions that have turned on as the conjunction of target cursor functional group, searched in the static allocation list pre-established Cursor allocation rule corresponding with the target cursor functional group conjunction;
Using the cursor allocation rule as the incoming default generic logic of parameter, to realize that cursor resource has turned on cursor all Batch operation between function;Wherein, the generic logic is for realizing the corresponding cursor resource of different cursor allocation rules The generic logic of batch operation.
2. the method according to claim 1, wherein it includes having opened described in one that the target cursor functional group, which is closed, It opens cursor function or multiple described has turned on cursor function;Correspondingly, the static allocation list include one-dimensional static allocation list or Multidimensional static allocation list;The combination of the corresponding cursor function of one-dimensional static allocation list, the multidimensional static allocation list pair Answer multiple combinations for having turned on cursor function.
3. the method according to claim 1, wherein described using all cursor functions that have turned on as target Cursor distribution corresponding with the target cursor functional group conjunction is searched in cursor function combination in the static allocation list pre-established Rule, comprising:
Using all cursor functions that have turned on as the conjunction of target cursor functional group, searched in the static allocation list pre-established The target of highest priority has turned on cursor function in the target cursor functional group conjunction;
Correspondingly, described realize that cursor resource has turned on cursor function all according to the cursor allocation rule using generic logic Batch operation between energy, comprising:
The cursor resource is distributed into the target according to the cursor allocation rule using the generic logic and has turned on light Mark function.
4. according to the method described in claim 3, it is characterized in that, described divided the cursor resource using the generic logic It is assigned to the target and has turned on cursor function, comprising:
Currently it is assigned whether the cursor function of cursor resource is that the target has turned on cursor using generic logic judgement Function;
If it is not, then cursor resource is discharged from the cursor function for being currently assigned cursor resource, and by the cursor resource Distribution to the target has turned on cursor function.
5. the method according to claim 1, wherein all in determining current system have turned on cursor function, packet It includes:
Listen in current system when having turned on cursor function variation, determine and all in current system have turned on cursor function.
6. the method according to claim 1, wherein the method also includes:
The edit instruction for receiving input, to the corresponding relationship of cursor function combination and cursor allocation rule in the static allocation list Carry out edit operation;Wherein, the edit operation includes: addition operation, delete operation or modification operation.
7. according to the method described in claim 6, it is characterized in that, receiving input when the edit operation is addition operation Edit instruction, editor behaviour is carried out with the corresponding relationship of cursor allocation rule to cursor function combination in the static allocation list Make, comprising:
The addition instruction of input is received, the addition instruction, which is distributed including cursor function to be added combination with corresponding cursor, advises Then;
When including being greater than or equal to 2 cursor functions in the cursor function combination to be added, the cursor to be added is judged Whether each cursor function in function combination is mutex relation;
If it is not, the cursor function combination to be added is then added to the static allocation list with corresponding cursor allocation rule.
8. the method according to the description of claim 7 is characterized in that each in the judgement cursor function combination to be added Whether cursor function is mutex relation, comprising:
Judge that each cursor function in the cursor function combination to be added whether there is in the mutex relation table pre-established, Wherein, the cursor function combination of mutex relation each other is preserved in the mutex relation table;
If not, it is determined that the cursor function group to be added is combined into non-exclusive relationship.
9. a kind of cursor resource distribution system of ultrasonic system characterized by comprising
Function determining module all in current system has turned on cursor function for determining;It is described have turned on cursor function be The cursor function opened in current system;
Searching module, for will all cursor functions that have turned on as the conjunction of target cursor functional group, it is quiet what is pre-established Cursor allocation rule corresponding with the target cursor functional group conjunction is searched in state allocation list;
Cursor resource distribution module, for being passed to default generic logic for the cursor allocation rule as parameter, to realize light Resource is marked in all batch operations having turned between cursor function;Wherein, the generic logic is for realizing different cursors The generic logic of the corresponding cursor resource batch operation of allocation rule.
10. a kind of ultrasonic system characterized by comprising
Memory, for storing computer program;
Processor realizes the cursor resource distribution side as described in any one of claim 1 to 8 when for executing the computer program The step of method.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the cursor resource distribution method as described in any one of claim 1 to 8 when the computer program is executed by processor The step of.
CN201910281484.4A 2019-04-09 2019-04-09 Ultrasonic system, cursor resource allocation method and system thereof and storage medium Active CN109992421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910281484.4A CN109992421B (en) 2019-04-09 2019-04-09 Ultrasonic system, cursor resource allocation method and system thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910281484.4A CN109992421B (en) 2019-04-09 2019-04-09 Ultrasonic system, cursor resource allocation method and system thereof and storage medium

Publications (2)

Publication Number Publication Date
CN109992421A true CN109992421A (en) 2019-07-09
CN109992421B CN109992421B (en) 2023-10-20

Family

ID=67131126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910281484.4A Active CN109992421B (en) 2019-04-09 2019-04-09 Ultrasonic system, cursor resource allocation method and system thereof and storage medium

Country Status (1)

Country Link
CN (1) CN109992421B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11102355A (en) * 1997-09-29 1999-04-13 Fujitsu Ltd Document processor and computer-readable recording medium recorded with program for ruled-like kind determination
JP2007104394A (en) * 2005-10-05 2007-04-19 Sharp Corp Image displaying device and image recording device
US20080183811A1 (en) * 2007-01-25 2008-07-31 Kotras Timothy W Collaborative Multi-User Method and System
US20090295716A1 (en) * 2008-06-03 2009-12-03 Compal Electronics, Inc. Method for moving cursor and storage medium thereof
CN102012805A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Custom cursor realization method and device
US20140289744A1 (en) * 2013-03-20 2014-09-25 International Business Machines Corporation Transaction capable queuing
CN104352251A (en) * 2014-11-07 2015-02-18 汕头市超声仪器研究所有限公司 Control device of ultrasonic diagnosis equipment
CN105916208A (en) * 2016-04-14 2016-08-31 华为技术有限公司 Resource distribution method and communication terminal
US9846599B1 (en) * 2016-10-31 2017-12-19 International Business Machines Corporation Adaptive query cursor management
CN109491568A (en) * 2018-12-28 2019-03-19 深圳开立生物医疗科技股份有限公司 Mouse event processing method, device, equipment and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11102355A (en) * 1997-09-29 1999-04-13 Fujitsu Ltd Document processor and computer-readable recording medium recorded with program for ruled-like kind determination
JP2007104394A (en) * 2005-10-05 2007-04-19 Sharp Corp Image displaying device and image recording device
US20080183811A1 (en) * 2007-01-25 2008-07-31 Kotras Timothy W Collaborative Multi-User Method and System
US20090295716A1 (en) * 2008-06-03 2009-12-03 Compal Electronics, Inc. Method for moving cursor and storage medium thereof
CN102012805A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Custom cursor realization method and device
US20140289744A1 (en) * 2013-03-20 2014-09-25 International Business Machines Corporation Transaction capable queuing
CN104352251A (en) * 2014-11-07 2015-02-18 汕头市超声仪器研究所有限公司 Control device of ultrasonic diagnosis equipment
CN105916208A (en) * 2016-04-14 2016-08-31 华为技术有限公司 Resource distribution method and communication terminal
US9846599B1 (en) * 2016-10-31 2017-12-19 International Business Machines Corporation Adaptive query cursor management
CN109491568A (en) * 2018-12-28 2019-03-19 深圳开立生物医疗科技股份有限公司 Mouse event processing method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ADOBE SYSTEMS: "CursorManager - ActionScript 3.0 语言和组件参考 (oschina.net)", 《ADOBE SYSTEMS INCORPORATED》 *
ADOBE SYSTEMS: "CursorManager - ActionScript 3.0 语言和组件参考 (oschina.net)", 《ADOBE SYSTEMS INCORPORATED》, 14 December 2008 (2008-12-14), pages 1 - 6 *

Also Published As

Publication number Publication date
CN109992421B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US8600791B2 (en) Progressive refinement model for business processes
CN107644286A (en) Workflow processing method and device
CN111695675A (en) Federal learning model training method and related equipment
CN113268243B (en) Memory prediction method and device, storage medium and electronic equipment
CN110049368A (en) A kind of display methods and relevant device
CN109739600A (en) Data processing method, medium, device and calculating equipment
CN107733710A (en) Construction method, device, computer equipment and the storage medium of link call relation
CN110413282A (en) A kind of redundant resource processing method, device, equipment and storage medium
CN108171189A (en) A kind of method for video coding, video coding apparatus and electronic equipment
Xu et al. Application of data provenance in healthcare analytics software: information visualisation of user activities
CN104718529B (en) Represent the reference attribute annotations of no external reference
CN107729897A (en) A kind of text maninulation method, apparatus and terminal
CN110795400A (en) File management method, device, equipment and medium
CN111259212B (en) Telemetering data interpretation method, device, equipment and storage medium
CN108287648A (en) Feedback management method, apparatus, electronic equipment and the computer storage media of software
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
CN101425037B (en) GUI performance log generating system, method and GUI performance analyzing method
CN101136780A (en) Method, system to obtain user command information, and user command registered device
CN109783321A (en) Monitoring data management method, device, terminal device
US9384285B1 (en) Methods for identifying related documents
WO2023193633A1 (en) Image analysis methods and apparatuses, computer device and storage medium
CN110555732B (en) Marketing strategy pushing method and device and marketing strategy operation platform
CN109992421A (en) A kind of ultrasonic system and its cursor resource distribution method, system, storage medium
CN106991116A (en) The optimization method and device of database executive plan
US20100049747A1 (en) Apparatus and method for storing log in a thread oriented logging system

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
GR01 Patent grant
GR01 Patent grant