[go: up one dir, main page]

CN109992421B - Ultrasonic system, cursor resource allocation method and system thereof and storage medium - Google Patents

Ultrasonic system, cursor resource allocation method and system thereof and storage medium Download PDF

Info

Publication number
CN109992421B
CN109992421B CN201910281484.4A CN201910281484A CN109992421B CN 109992421 B CN109992421 B CN 109992421B CN 201910281484 A CN201910281484 A CN 201910281484A CN 109992421 B CN109992421 B CN 109992421B
Authority
CN
China
Prior art keywords
cursor
function
functions
started
allocation
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.)
Active
Application number
CN201910281484.4A
Other languages
Chinese (zh)
Other versions
CN109992421A (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 OR CALCULATING; 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 application discloses a cursor resource allocation method of an ultrasonic system, which comprises the steps of firstly determining all started cursor functions in a current system, combining all the started cursor functions as target cursor functions, searching corresponding cursor allocation rules in a static configuration table, and completing the allocation of cursor resources in the started cursor functions according to the cursor allocation rules by utilizing general logic after the cursor allocation rules are searched. Since the cursor allocation rules of all the started cursor functions in the current system can be determined in a table look-up mode and the allocation of cursor resources is realized, when a scene with various cursor function combinations exists, a large number of abstract classes and corresponding realization codes do not need to be written. Therefore, the code development amount is greatly reduced, and the complexity for realizing the cursor resource allocation and the later maintenance cost are reduced. The application also provides a cursor resource distribution system, a cursor resource distribution device and a computer readable storage medium, and the technical effects can be realized.

Description

Ultrasonic system, cursor resource allocation method and system thereof and storage medium
Technical Field
The present application relates to the field of cursor resource application, and in particular, to an ultrasound system, and a cursor resource allocation method, system, and computer storage medium thereof.
Background
In the software product, the cursor belongs to a software resource, and comprises position movement information of the cursor, an operation method corresponding to a left key and a right key of a mouse, an operation method corresponding to a single click or double click of the mouse and the like. The specific function corresponding to the cursor may also vary from application to application, for example, clicking the right mouse button may be displaying an operating menu in some applications, and clicking the right mouse button may be moving the currently displayed screen in other applications. In addition, even in the same application, if the conditions are different, the specific functions corresponding to the cursor may be different.
When implementing different functions, firstly, the cursor resource needs to be acquired, and then, specific functions are implemented by combining some implementation functions defined by the cursor resource sources. That is, the function corresponding to the cursor can be realized only after the cursor resource is acquired.
In the ultrasonic inspection, a situation that a cursor function combination appears, that is, a system can simultaneously start a plurality of cursor functions, for example, in a Color (Color Doppler ultrasound) mode, a sampling frame can be adjusted in size along with the change of the cursor moving position, namely, the sampling frame function of the Color Doppler ultrasound mode; meanwhile, when the PW (doppler ultrasound diagnostic) mode is turned on in the current Color mode, the cursor function in the PW mode, such as the sample line moving function, is turned on, so that the cursor functions already turned on in the current system include: color mode sample box function and PW mode sample line function. This requires defining how cursor resources are allocated.
In the prior art, it is often necessary to write an abstract class for each combination of cursor functions, where code functions are used to define how cursor resources are currently allocated for this combination.
Along with the increase of application scenes, the combination situation of cursor functions is more and more, and one abstract class needs to be written corresponding to each combination, so that a large number of abstract classes need to be written, when the combination changes, the corresponding abstract class needs to be modified accordingly, and when the combination changes, the code functions in the written abstract class also need to be modified.
Therefore, the current implementation method for cursor resource allocation is very complex and cumbersome, and the function codes are very much due to the fact that the abstract classes are many, and the later maintenance cost is higher.
Disclosure of Invention
The invention aims to provide a cursor resource allocation method, a cursor resource allocation system, cursor resource allocation equipment and a computer readable storage medium of an ultrasonic system, so as to solve the problems of complexity and higher later maintenance cost of the existing cursor resource allocation implementation method.
In order to solve the above technical problems, the present invention provides a method for allocating cursor resources, including:
Determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system;
taking all the started cursor functions as target cursor function combinations, and searching a cursor allocation rule corresponding to the target cursor function combinations in a static configuration table established in advance;
the cursor allocation rule is used as a parameter to be transmitted into preset general logic so as to realize the allocation operation of cursor resources among all the started cursor functions; the universal logic is used for realizing cursor resource allocation operation corresponding to different cursor allocation rules.
Optionally, the target cursor function combination includes one or more of the turned-on cursor functions; correspondingly, the static configuration table comprises a one-dimensional static configuration table or a multi-dimensional static configuration table; the one-dimensional static configuration table corresponds to a combination of cursor functions, and the multi-dimensional static configuration table corresponds to a plurality of combinations of the started cursor functions.
Optionally, the searching, in a static configuration table established in advance, a cursor allocation rule corresponding to the target cursor function combination by using all the started cursor functions as the target cursor function combination includes:
Taking all the started cursor functions as target cursor function combinations, and searching a target started cursor function with highest priority in the target cursor function combinations in a pre-established static configuration table;
correspondingly, the allocation operation of the cursor resources among all the started cursor functions is realized by utilizing the universal logic according to the cursor allocation rule, and the method comprises the following steps:
and distributing the cursor resources to the target on-cursor function according to the cursor distribution rule by utilizing the general logic.
Optionally, the allocating the cursor resource to the target on cursor function by using the general logic includes:
judging whether the cursor function currently allocated with the cursor resource is the cursor function started by the target by utilizing the general logic;
and if not, releasing the cursor resource from the cursor function currently allocated with the cursor resource, and allocating the cursor resource to the target on-state cursor function.
Optionally, determining all the turned-on cursor functions in the current system includes:
when the change of the started cursor function in the current system is monitored, all the started cursor functions in the current system are determined.
Optionally, the method further comprises:
receiving an input editing instruction, and editing the corresponding relation between the cursor function combination and the cursor allocation rule in the static configuration table; wherein the editing operation includes: an add operation, a delete operation, or a modify operation.
Optionally, when the editing operation is an adding operation, receiving an input editing instruction, and performing the editing operation on the correspondence between the cursor function combination and the cursor allocation rule in the static configuration table, where the editing operation includes:
receiving an input adding instruction, wherein the adding instruction comprises a cursor function combination to be added and a corresponding cursor allocation rule;
when the cursor function combination to be added comprises more than or equal to 2 cursor functions, judging whether each cursor function in the cursor function combination to be added is in a mutual exclusion relation;
if not, adding the cursor function combination to be added and the corresponding cursor allocation rule to the static configuration table.
Optionally, the determining whether each cursor function in the to-be-added cursor function combination is a mutually exclusive relationship includes:
judging whether each cursor function in the cursor function combination to be added exists in a pre-established mutual exclusion relation table, wherein the mutual exclusion relation table stores the cursor function combination with mutual exclusion relation;
If not, determining that the cursor function combination to be added is in a non-exclusive relation.
In order to achieve the above object, the present application further provides a cursor resource allocation system of an ultrasound system, including:
the function determining module is used for determining all started cursor functions in the current system; the started cursor function is a cursor function started in the current system;
the searching module is used for taking all the started cursor functions as target cursor function combinations and searching cursor allocation rules corresponding to the target cursor function combinations in a static configuration table established in advance;
the cursor resource allocation module is used for transmitting the cursor allocation rule as a parameter into preset general logic so as to realize the allocation operation of the cursor resource among all the started cursor functions; the universal logic is used for realizing cursor resource allocation operation corresponding to different cursor allocation rules.
To achieve the above object, the present application also provides an ultrasound system comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cursor resource allocation method according to any one of the claims when executing the computer program.
To achieve the above object, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cursor resource allocation method according to any one of the above.
As can be seen from the above scheme, the cursor resource allocation method provided by the present application includes: determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system; taking all the started cursor functions as target cursor function combinations, and searching a cursor allocation rule corresponding to the target cursor function combinations in a static configuration table established in advance; and realizing the allocation operation of the cursor resources among all the started cursor functions by utilizing the universal logic according to the cursor allocation rule.
It can be seen that, in the cursor resource allocation method provided by the embodiment of the present application, all the started cursor functions in the current system are first determined, all the started cursor functions are used as target cursor function combinations, corresponding cursor allocation rules are searched in the static configuration table, and after the cursor allocation rules are searched, the allocation of the cursor resources is completed in the started cursor functions according to the cursor allocation rules by using the general logic. Because the cursor allocation rules of all the started cursor functions in the current system can be determined in a table look-up mode, and the allocation of cursor resources is realized by utilizing the general logic after the cursor allocation rules are determined, when a scene of various cursor function combinations exists, abstract classes and corresponding realization codes do not need to be written for each cursor function combination, only the target function combination information is required to be maintained and added into a static configuration table, and the cursor resource allocation operation corresponding to different function combinations is realized by the general logic. Therefore, the code development amount is greatly reduced, and the complexity for realizing the cursor resource allocation and the later maintenance cost are reduced. The application also provides a cursor resource distribution system, a cursor resource distribution device and a computer readable storage medium, and the technical effects can be realized.
Drawings
For a clearer description of embodiments of the invention or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a cursor resource allocation method provided by the invention;
FIG. 2 is a flowchart of a specific method for allocating cursor resources according to the present invention;
FIG. 3 is a flowchart of a specific method for allocating cursor resources according to the present invention;
FIG. 4 is a flowchart of a specific method for allocating cursor resources according to the present invention;
FIG. 5 is a flowchart of a specific method for allocating cursor resources according to the present invention;
FIG. 6 is a schematic diagram of a cursor resource allocation system according to the present invention;
fig. 7 is a schematic structural diagram of an ultrasound system according to the present invention.
Detailed Description
The core of the invention is to provide a cursor resource allocation method, a cursor resource allocation system, cursor resource allocation equipment and a computer readable storage medium for an ultrasonic system, so as to solve the problems of complex and complicated implementation method of the existing cursor resource allocation and higher later maintenance cost.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, a method for allocating cursor resources of an ultrasound system according to an embodiment of the present application specifically includes:
s101, determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system.
Specifically, in this scheme, all the turned-on cursor functions in the current system, such as Color mode sampling box function and PW mode sampling line function, are first obtained.
S102, taking all the started cursor functions as target cursor function combinations, and searching a cursor allocation rule corresponding to the target cursor function combinations in a pre-established static configuration table.
In a specific embodiment, the target cursor function combination includes one or more of the turned-on cursor functions; correspondingly, the static configuration table comprises a one-dimensional static configuration table or a multi-dimensional static configuration table; the one-dimensional static configuration table corresponds to a combination of cursor functions, and the multi-dimensional static configuration table corresponds to a plurality of combinations of the started cursor functions.
It should be noted that, each implementation of the cursor function in the system corresponds to a corresponding cursor allocation rule, that is, how to implement the cursor resource allocation operation. For example, for a target cursor function combination including one cursor function, it is necessary to determine what data of the cursor resource, such as cursor position data, left-key or right-key listening data, it is necessary to determine which cursor function of the combination is first implemented for the target combination including a plurality of cursor functions.
It should be noted that, when two cursor functions have been turned on in one system, for example, when both the Color mode sampling frame function and the PW mode sampling line function are turned on, the cursor cannot actually complete both functions at the same time, but one cursor function that acquires the cursor resource is in an implemented state, and the other cursor functions are in a suspended state, and cannot be switched to an implemented state until the cursor resource is acquired, and the cursor function cannot be used. Accordingly, there is a need to address the problem of allocation of cursor resources, that is, to determine which cursor function a cursor resource is currently allocated to, and how to implement the corresponding allocation operation.
In the scheme, the cursor resource allocation is realized in a table driving mode, specifically, a static configuration table is pre-established in the scheme, and cursor function combinations and cursor resource allocation rules corresponding to the combinations are maintained in the table. For example, the cursor function combination is { Color mode sample box function, PW mode sample line function }, and the corresponding cursor resource allocation rule is preferentially allocated to PW mode sample line function.
It should be noted that, when the target cursor function combination includes a plurality of the turned-on cursor functions, since the code functions of different combinations are all used to process the cursor resource allocation operation, the code logic of the portion of the code logic for the cursor resource allocation operation belongs to the same code logic; however, since the specific implementation method of each function in different combinations and the cursor resource allocation rule corresponding to different combinations are different, these contents belong to different parts.
In this scheme, the number of cursor functions in the cursor function combination and the number of correspondence relationships maintained in the table are not particularly limited, and can be determined according to actual situations.
And taking all the started cursor functions in the current system as target cursor function combinations, performing table lookup operation in the static configuration table, and determining a cursor allocation rule corresponding to the target cursor function combinations.
S103, transmitting the cursor allocation rule as a parameter into preset general logic to realize the allocation operation of cursor resources among all the started cursor functions; the universal logic is used for realizing cursor resource allocation operation corresponding to different cursor allocation rules.
It should be noted that, in the prior art, there is a corresponding abstract class corresponding to each combination of cursor functions, and code functions are used in the abstract class to define how cursor resources are allocated to the current combination. Although different combinations correspond to different code functions, in all code functions there will be different code logic as well as the same code logic.
For example, for each cursor function, the related logic of calling the cursor resource and acquiring the cursor data needs to be implemented, so that this part of logic can be used as general logic. In the scheme, the general logic applicable to different functions can be determined according to the realization logic of each cursor function at present, and when the opened cursor function changes, the current opened cursor function can be used as a dynamic parameter to be transmitted into the general logic, so that the general logic becomes the logic corresponding to the cursor resource allocation operation of the current opened cursor function, and the cursor resource call of the current opened cursor function is realized.
For a combination that includes multiple cursor functions, it is desirable to determine which cursor function was implemented first. Wherein the portion of code logic for the cursor resource allocation operation belongs to the same code logic; however, since the specific implementation method of each function in different combinations and the cursor resource allocation rule corresponding to different combinations are different, these contents belong to different parts.
In the scheme, a set of general code logic can be preset by combining the same code logic with different code logic, and the different parts can be transmitted to the general code logic in the form of parameters and the like, so that the general logic can be suitable for cursor resource allocation operation of each cursor function combination.
In the scheme, the cursor allocation rule searched by the static configuration table and the information of the cursor function in the target cursor function combination can be used as parameters to be transmitted to the general logic, and the corresponding cursor allocation operation is completed by using the general logic.
In a specific embodiment, only cursor function combinations may be configured in the static configuration table, and the cursor function combinations are defined in general logic: when 1 currently started cursor function is detected, executing general logic corresponding to the one-dimensional static configuration table; when 2 cursor functions are detected to be started currently, general logic corresponding to the multidimensional static configuration table is executed, and the number of cursor functions which are allocated to the cursor resources in the combination is defined in the general logic. It should be noted that the above-mentioned one static configuration table corresponds to one general logic.
It can be seen that, in the cursor resource allocation method provided by the embodiment of the present application, all the started cursor functions in the current system are first determined, all the started cursor functions are used as target cursor function combinations, corresponding cursor allocation rules are searched in the static configuration table, and after the cursor allocation rules are searched, the allocation of the cursor resources is completed in the started cursor functions according to the cursor allocation rules by using the general logic. Because the cursor allocation rules of all started cursor functions in the current system can be determined in a table look-up mode, and the allocation of cursor resources is realized by utilizing general logic after the cursor allocation rules are determined, abstract classes and corresponding realization codes are not required to be written for each cursor function combination when a scene of multiple cursor function combinations exists, all data of a static configuration table can be realized by utilizing one general logic, even if the combination relation or the cursor allocation rules in the configuration table are modified, the general logic of the bottom layer is not required to be modified, and only the target function combination information is required to be maintained and added into the static configuration table, and the cursor resource allocation operation corresponding to different function combinations is realized by the general logic. Therefore, the code development amount is greatly reduced, and the complexity for realizing the cursor resource allocation and the later maintenance cost are reduced.
The following describes a specific cursor resource allocation method provided by the embodiment of the present application, and the specific cursor resource allocation method described below and the above embodiment may be referred to each other.
Referring to fig. 2, a specific cursor resource allocation method provided by an embodiment of the present application specifically includes:
s201, determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system.
S202, taking all the started cursor functions as target cursor function combinations, and searching a target started cursor function with the highest priority in the target cursor function combinations in a pre-established static configuration table.
In this scheme, priorities are set for the cursor functions in each cursor function combination, and the priorities are the priorities of the allocated cursor resources, and the cursor resources are preferentially allocated to the cursor function with the highest priority.
Therefore, in the scheme, the cursor function of the target with the highest priority is started in the target cursor function combination in the static configuration table is required to be searched.
For example, information is maintained in the static configuration table: the cursor function combination is { Color mode sampling frame function, PW mode sampling line function }, and the priority is the PW mode sampling line function at the highest. Then the target activated cursor function is determined to be the PW mode sampling line function.
S203, the cursor resource is distributed to the target on-cursor function by utilizing general logic.
Specifically, the general logic may be logic that allocates cursor resources to the target on-cursor function, and the target on-cursor function may be transmitted as a parameter to the general logic.
In the scheme, the priority is utilized to determine the cursor resource allocation rule, so that the static configuration table only needs to mark that the target with the highest priority has started the cursor function on the basis of maintaining the cursor function combination, and does not need to maintain the complex cursor resource allocation rule, thereby further reducing the maintenance cost and difficulty of the cursor resource allocation operation.
The following describes a specific cursor resource allocation method provided by the embodiment of the present application, and the specific cursor resource allocation method described below and the above embodiment may be referred to each other.
Referring to fig. 3, a specific cursor resource allocation method provided by an embodiment of the present application specifically includes:
s301, determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system.
S302, taking all the started cursor functions as target cursor function combinations, and searching a target started cursor function with the highest priority in the target cursor function combinations in a pre-established static configuration table.
S303, judging whether the cursor function currently allocated with the cursor resource is the cursor function started by the target by utilizing the general logic.
It should be noted that, before the cursor resource allocation is performed, the cursor resource may be already in a state of being invoked by a certain cursor function, that is, a certain cursor function may already be allocated with the cursor resource in the current system, so it is further required to determine whether the cursor function currently allocated with the cursor resource is the target to which the cursor resource is to be allocated, that is, the turned-on cursor function.
If so, no allocation-related operations are performed.
S304, if not, releasing the cursor resource from the cursor function currently allocated with the cursor resource, and allocating the cursor resource to the target on-state cursor function.
If not, the cursor resource is released from the current cursor function, and then the cursor function is distributed to the target on-state cursor function. Releasing the cursor resource from the current cursor function means that the cursor function is suspended and can be resumed after the cursor function is reassigned the cursor resource.
The following describes a specific cursor resource allocation method provided by the embodiment of the present application, and the specific cursor resource allocation method described below and the above embodiment may be referred to each other.
Referring to fig. 4, a specific cursor resource allocation method provided by an embodiment of the present application specifically includes:
s401, when the change of the started cursor function in the current system is monitored, determining all the started cursor functions in the current system.
In this scheme, a monitor program may be preset to monitor the change information of the started cursor function in the current system. Specifically, whether the number of the started cursor functions in the current system is changed, whether the types of the started cursor functions in the current system are changed, and the like can be monitored, if so, the fact that the corresponding combinations of all the current started cursor functions are changed is indicated, and therefore, the corresponding cursor allocation rules need to be determined again.
S402, taking all the started cursor functions as target cursor function combinations, and searching a cursor allocation rule corresponding to the target cursor function combinations in a pre-established static configuration table.
S403, the cursor allocation rule is used as a parameter to be transmitted into preset general logic, so that the allocation operation of the cursor resource among all the started cursor functions is realized.
Therefore, the method and the device can find the corresponding cursor allocation rule in time to finish the allocation operation of the cursor resources by monitoring the change of the function of the started cursor in the current system even if an operator frequently switches the functions in the using process.
The following describes a specific cursor resource allocation method provided by the embodiment of the present application, and the specific cursor resource allocation method described below and the above embodiment may be referred to each other.
The specific cursor resource allocation method provided by the embodiment of the application further comprises the following steps on the basis of the embodiment:
receiving an input editing instruction, and editing the corresponding relation between the cursor function combination and the cursor allocation rule in the static configuration table; wherein the editing operation includes: an add operation, a delete operation, or a modify operation.
It should be noted that, in practical application, the cursor function combination and the corresponding cursor allocation rule are not invariable, so that the scheme can provide an editing function for the static configuration table, so that the user can edit the static configuration table according to the practical situation, and maintenance of the cursor function combination and the corresponding cursor allocation rule in the use process is completed.
Specifically, receiving an input editing instruction may include an addition instruction, a deletion instruction, and a modification instruction. The modification instruction may be a modification instruction of a corresponding relation in the table, or a modification instruction of a cursor function combination in the table.
And after receiving the editing instruction, editing the corresponding relation between the cursor function combination and the cursor allocation rule in the static configuration table. The editing operation corresponds to an editing instruction, including an adding operation, a deleting operation, or a modifying operation.
Therefore, if the cursor function combination is changed, the abstract class does not need to be rewritten, a large amount of code logic is written, only the editing instruction is required to be input, and the static configuration table is edited according to the editing instruction, so that the maintenance difficulty and the maintenance cost are greatly reduced.
The embodiments of the present application further define and explain the above embodiments, and specifically are as follows:
referring to fig. 5, when the editing operation is an adding operation, receiving an input editing instruction, and performing the editing operation on the correspondence between the cursor function combination and the cursor allocation rule in the static configuration table, where the editing operation includes:
s501, receiving an input adding instruction, wherein the adding instruction comprises a cursor function combination to be added and a corresponding cursor allocation rule.
It should be noted that, the cursor function combination to be added in the adding instruction may include one cursor function or may include a plurality of cursor functions.
When new cursor functions appear in the system, each cursor function is used as a cursor function combination to be added to the one-dimensional static configuration table. After a new cursor function is added, the cursor function may also appear in combination with the existing cursor functions, so that a combination of the cursor function and one or more other existing cursor functions may also be determined, and the combination is used as a cursor function combination to be added to the multidimensional static configuration table. It can be understood that the number of cursor functions in the cursor function combination to be added corresponds to the dimension of the static table, for example, when the number of cursor functions in the cursor function combination to be added is two, the cursor function combination to be added is added to the two-dimensional static table. In addition, there is a case that a certain combination existing in the static configuration table is up-scaled or down-scaled, for example, a cursor function is added to a combination including two cursor functions in the existing and two-dimensional static configuration table to be a combination including three cursor functions, or one cursor function is reduced to be a combination including only one cursor function in the two cursor functions, in which case, the system receives two instructions, the first is a deletion instruction of an original combination existing in the static configuration table, and the second is a static configuration table instruction of adding a new combination after up-scaling or down-scaling to the corresponding dimension as a combination to be added to realize addition of the new combination.
S502, when the cursor function combination to be added comprises more than or equal to 2 cursor functions, judging whether each cursor function in the cursor function combination to be added is in a mutual exclusion relation.
In the system, some cursor functions cannot coexist, so that it is not necessary to maintain combinations of the cursor functions that cannot coexist in the static configuration table, waste of maintenance resources of the static configuration table can be avoided, and since there is no redundant and useless correspondence in the static configuration table, the speed of table lookup can be reduced when table lookup is performed for the target cursor function combination.
In a specific embodiment, the S502 specifically includes:
judging whether the cursor function combination to be added exists in a pre-established mutual exclusion relation table, wherein the mutual exclusion relation table stores the cursor function combination which is mutually exclusive relation;
if not, determining that the cursor function combination to be added is in a non-exclusive relation.
In this scheme, in order to conveniently determine whether the cursor function combination to be added is a mutual exclusion relation, a mutual exclusion relation table may be pre-established, all the cursor function combinations mutually being mutual exclusion relations are maintained in the mutual exclusion relation table, a single cursor function combination includes one or more cursor functions, when an addition instruction is received, whether each cursor function in the corresponding function combination to be added is in the mutual exclusion relation table is determined, if yes, each cursor function in the function combination to be added is proved to be a mutual exclusion relation, no addition is required, if not, each cursor function in the function combination to be added is proved to be a non-mutual exclusion relation, and the addition is required to be performed in the static configuration table, and S503 is executed.
S503, if not, adding the cursor function combination to be added and the corresponding cursor allocation rule to the static configuration table.
In the scheme, after receiving the adding instruction, firstly judging whether the function combination to be added is a mutual exclusion relation, if not, adding the function combination to be added into the static configuration table, otherwise, not adding the function combination to be added into the static configuration table, so that the waste of maintenance resources of the static configuration table can be avoided, and the speed of table lookup can be reduced when the table lookup is performed for the target cursor function combination because the static configuration table has no redundant and useless corresponding relation.
The following describes a specific cursor resource allocation method provided by the embodiment of the present application in connection with a specific application scenario, and the specific cursor resource allocation method described below and any of the foregoing embodiments may be referred to mutually.
The scheme can be applied to a medical equipment system, and in the system, the cursor function can be seen in table 1.
TABLE 1
Corresponding to the cursor function, a one-dimensional static configuration table can be maintained, and the one-dimensional static configuration table corresponds to a rule for distributing cursor resources when the turned-on cursor function in the current system is one. The static configuration table comprising the combination of two cursor functions may be maintained, or the static configuration table comprising the combination of more than two cursor functions may be maintained.
Referring to table 2, table 2 is a static configuration table including a combination of two cursor functions.
TABLE 2
Referring to table 3, table 3 is a static configuration table including a combination of two cursor functions.
TABLE 3 Table 3
First, all the cursor functions in the current system that are turned on, such as E_ColorROI (Color mode sample box) and E_PW_MarkLine (PW mode sample line), are determined.
Second, determining the target cursor function combination as { e_colorroi (Color mode sampling frame), e_pw_markline (PW mode sampling line) }, and determining the cursor allocation rule corresponding to the target cursor function combination as allocating cursor resources to e_pw_markline (PW mode sampling line) through the static configuration table shown in table 2. That is, when this combination occurs, the cursor resources are preferentially allocated to the PW mode sampling line, and then allocated to the user-selected cursor function along with the user's manual switching.
And thirdly, invoking general logic, and realizing the allocation operation of the cursor resources among all the started cursor functions according to the cursor allocation rule.
It should be noted that, after the general logic is called and the corresponding parameters are transferred into the general logic, all logic codes are converted into binary digits of 0 or 1 by a computer when being executed, and the information of the started cursor function transferred in the scheme is converted into binary digits from a character string, so that the binary digits obtained by direct conversion have no sequence, in order to make the binary digits be regular after the information of the started cursor function is transcoded, in the scheme, a digital identifier can be defined for each cursor function, and then transcoding is performed according to the digital identifier as the cursor function. The corresponding relation between the specific cursor function and the digital mark can be seen in table 4, and is not limited to table 4, and other reasonable corresponding relations can be set according to actual situations.
TABLE 4 Table 4
Cursor function Digital identification
E_Invalid (Invalid cursor) 0
E_FramePlayBack (Single frame Cursor) 1
E_CinePlayback (movie cursor) 2
E_ColorROI (Color mode sample frame cursor) 3
E_PW_MarkLine (PW mode sampling line cursor) 4
E_CW_M_MarkLine (CWM mode sample line cursor) 5
E_Pre_zoom (Pre-Zoom cursor) 6
E_zoom (magnifying Cursor) 7
E_Biopsy (puncture cursor) 8
E_Picc (Picc Cursor) 9
E_ Cvc (Cvc cursor) 10
E_AMM1_MarkLine (dissecting M1 Cursor) 11
E_AMM2_MarkLine (dissecting the M2 Cursor) 12
E_AMM3_MarkLine (dissecting the M3 Cursor) 13
E_ElastoROI (elastic sample frame cursor) 14
E_TDITIC_Trace (strain rate cursor) 15
E_Global_zoom (one-key full-screen Zoom-in cursor) 16
E_ContrastTIC_Trace (contrast quantitative analysis Cursor) 17
The following describes a cursor resource allocation system provided in the embodiments of the present application, and the cursor resource allocation system described in the following may refer to any one of the foregoing embodiments.
Referring to fig. 6, a cursor resource allocation system provided in an embodiment of the present application specifically includes:
a function determining module 601, configured to determine all the turned-on cursor functions in the current system; the started cursor function is a cursor function started in the current system.
And a searching module 602, configured to use all the turned-on cursor functions as target cursor function combinations, and search a static configuration table established in advance for cursor allocation rules corresponding to the target cursor function combinations.
And the cursor resource allocation module 603 is configured to implement an allocation operation of cursor resources among all the turned-on cursor functions according to the cursor allocation rule by using general logic.
Optionally, the searching module 602 is specifically configured to use all the turned-on cursor functions as a target cursor function combination, and search a static configuration table established in advance for a target turned-on cursor function with a highest priority in the target cursor function combination;
correspondingly, the cursor resource allocation module 603 is specifically configured to allocate the cursor resource to the target on-cursor function by using the general logic.
Optionally, the cursor resource allocation module 603 is specifically configured to determine, by using the general logic, whether the cursor function currently allocated with the cursor resource is the target turned on cursor function; and if not, releasing the cursor resource from the cursor function currently allocated with the cursor resource, and allocating the cursor resource to the target on-state cursor function.
Optionally, the function determining module 601 is specifically configured to determine all the started cursor functions in the current system when it is monitored that the started cursor functions in the current system change.
Optionally, the system further comprises:
The editing module is used for receiving an input editing instruction and editing the corresponding relation between the cursor function combination and the cursor allocation rule in the static configuration table; wherein the editing operation includes: an add operation, a delete operation, or a modify operation.
Optionally, when the editing operation is an adding operation, the editing module specifically includes:
the receiving unit is used for receiving an input adding instruction, wherein the adding instruction comprises a cursor function combination to be added and a corresponding cursor allocation rule;
the judging unit is used for judging whether the cursor function combination to be added is in a mutual exclusion relationship or not;
and the adding unit is used for adding the cursor function combination to be added and the corresponding cursor allocation rule to the static configuration table when the cursor function combination to be added is not in a mutual exclusion relation.
Optionally, the judging unit is specifically configured to judge whether the cursor function combination to be added exists in a pre-established mutual exclusion relation table, where the mutual exclusion relation table stores cursor function combinations that are mutually exclusive; if not, determining that the cursor function combination to be added is in a non-exclusive relation.
The cursor resource allocation system of this embodiment is used to implement the foregoing cursor resource allocation method, so specific embodiments in the cursor resource allocation system can be seen from the foregoing example portions of the cursor resource allocation method, for example, the function determining module 601, the searching module 602, and the cursor resource allocation module 603, which are respectively used to implement steps S101, S102, and S103 in the foregoing cursor resource allocation method, so specific embodiments thereof may refer to descriptions of respective examples of the respective portions, which are not repeated herein.
An ultrasound system provided in accordance with an embodiment of the present application is described below, and the ultrasound system described below may be referred to with respect to any of the above embodiments.
Referring to fig. 7, an ultrasound system provided in an embodiment of the present application specifically includes:
a memory 100 for storing a computer program;
and a processor 200, configured to implement the steps of any one of the cursor resource allocation methods when executing the computer program.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 200 provides computing and control capabilities for the ultrasound system to implement the cursor resource allocation method described in any of the embodiments above.
Further, the ultrasound system in this embodiment may further include:
the input interface 300 is configured to obtain an externally imported computer program, store the obtained computer program in the memory 100, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the various instructions and parameters to the processor 200, so that the processor 200 uses the various instructions and parameters to develop corresponding processes. In this embodiment, the input interface 300 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.
And an output interface 400 for outputting various data generated by the processor 200 to a terminal device connected thereto, so that other terminal devices connected to the output interface 400 can acquire various data generated by the processor 200. In this embodiment, the output interface 400 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit 500 is used for completing the communication between the current device and other devices.
A keyboard 600 for acquiring various parameter data or instructions inputted by a user by tapping the key cap in real time.
And the display 700 is used for displaying the cursor resource allocation process and related information maintained by the static configuration table in real time.
The mouse 800 may be used to assist a user in inputting data and to simplify the operation of the user.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps provided by the above embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above in terms of cursor functionality generally in order to clearly illustrate the interchangeability of hardware and software. Whether such cursor functions are implemented in hardware or software depends upon the particular application and design constraints of the solution. The skilled artisan can implement the described cursor functions using different methods for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (11)

1. A cursor resource allocation method for an ultrasound system, comprising:
determining all started cursor functions in a current system; the started cursor function is a cursor function started in the current system; the cursor function is a function corresponding to cursor operation;
taking all the started cursor functions as target cursor function combinations, and searching a cursor allocation rule corresponding to the target cursor function combinations in a static configuration table established in advance;
the cursor allocation rule is used as a parameter to be transmitted into preset general logic so as to realize the allocation operation of cursor resources among all the started cursor functions; the universal logic is used for realizing cursor resource allocation operation corresponding to different cursor allocation rules.
2. The method of claim 1, wherein the target cursor function combination comprises one of the turned-on cursor functions or a plurality of the turned-on cursor functions; correspondingly, the static configuration table comprises a one-dimensional static configuration table or a multi-dimensional static configuration table; the one-dimensional static configuration table corresponds to a combination of cursor functions, and the multi-dimensional static configuration table corresponds to a plurality of combinations of the started cursor functions.
3. The method of claim 1, wherein said looking up a cursor allocation rule corresponding to a target cursor function combination in a pre-established static configuration table with all of said turned-on cursor functions as said target cursor function combination comprises:
taking all the started cursor functions as target cursor function combinations, and searching a target started cursor function with highest priority in the target cursor function combinations in a pre-established static configuration table;
correspondingly, the allocation operation of the cursor resources among all the started cursor functions is realized by utilizing the universal logic according to the cursor allocation rule, and the method comprises the following steps:
and distributing the cursor resources to the target on-cursor function according to the cursor distribution rule by utilizing the general logic.
4. The method of claim 3, wherein the allocating the cursor resource to the target-enabled cursor function using the generic logic comprises:
judging whether the cursor function currently allocated with the cursor resource is the cursor function started by the target by utilizing the general logic;
and if not, releasing the cursor resource from the cursor function currently allocated with the cursor resource, and allocating the cursor resource to the target on-state cursor function.
5. The method of claim 1, wherein determining all of the turned-on cursor functions in the current system comprises:
when the change of the started cursor function in the current system is monitored, all the started cursor functions in the current system are determined.
6. The method according to claim 1, wherein the method further comprises:
receiving an input editing instruction, and editing the corresponding relation between the cursor function combination and the cursor allocation rule in the static configuration table; wherein the editing operation includes: an add operation, a delete operation, or a modify operation.
7. The method of claim 6, wherein when the editing operation is an add operation, receiving an input editing instruction, and performing the editing operation on the correspondence between the cursor function combination and the cursor allocation rule in the static configuration table includes:
Receiving an input adding instruction, wherein the adding instruction comprises a cursor function combination to be added and a corresponding cursor allocation rule;
when the cursor function combination to be added comprises more than or equal to 2 cursor functions, judging whether each cursor function in the cursor function combination to be added is in a mutual exclusion relation;
if not, adding the cursor function combination to be added and the corresponding cursor allocation rule to the static configuration table.
8. The method of claim 7, wherein the determining whether each cursor function in the to-be-added cursor function combination is a mutually exclusive relationship comprises:
judging whether each cursor function in the cursor function combination to be added exists in a pre-established mutual exclusion relation table, wherein the mutual exclusion relation table stores the cursor function combination with mutual exclusion relation;
if not, determining that the cursor function combination to be added is in a non-exclusive relation.
9. A cursor resource allocation system for an ultrasound system, comprising:
the function determining module is used for determining all started cursor functions in the current system; the started cursor function is a cursor function started in the current system; the cursor function is a function corresponding to cursor operation;
The searching module is used for taking all the started cursor functions as target cursor function combinations and searching cursor allocation rules corresponding to the target cursor function combinations in a static configuration table established in advance;
the cursor resource allocation module is used for transmitting the cursor allocation rule as a parameter into preset general logic so as to realize the allocation operation of the cursor resource among all the started cursor functions; the universal logic is used for realizing cursor resource allocation operation corresponding to different cursor allocation rules.
10. An ultrasound system, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cursor resource allocation method according to any one of claims 1 to 8 when executing said computer program.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cursor resource allocation method according to any of claims 1 to 8.
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 CN109992421A (en) 2019-07-09
CN109992421B true 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 (7)

* 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 processing apparatus and computer-readable recording medium recording program for determining ruled line type
JP2007104394A (en) * 2005-10-05 2007-04-19 Sharp Corp Image display device and image recording device
CN102012805A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Custom cursor realization method and device
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183811A1 (en) * 2007-01-25 2008-07-31 Kotras Timothy W Collaborative Multi-User Method and System
TW200951774A (en) * 2008-06-03 2009-12-16 Compal Electronics Inc Method for moving cursor and recording medium thereof
GB2512086A (en) * 2013-03-20 2014-09-24 Ibm Transaction capable queuing

Patent Citations (7)

* 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 processing apparatus and computer-readable recording medium recording program for determining ruled line type
JP2007104394A (en) * 2005-10-05 2007-04-19 Sharp Corp Image display device and image recording device
CN102012805A (en) * 2009-09-04 2011-04-13 腾讯科技(深圳)有限公司 Custom cursor realization method and device
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 (1)

* Cited by examiner, † Cited by third party
Title
CursorManager - ActionScript 3.0 语言和组件参考 (oschina.net);Adobe Systems;《Adobe Systems Incorporated》;20081214;第1-6页 *

Also Published As

Publication number Publication date
CN109992421A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US7493570B2 (en) User interface options of a data lineage tool
EP3398075B1 (en) Transfer descriptor for memory access commands
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
US9336334B2 (en) Key-value pairs data processing apparatus and method
CN116415000A (en) Visual knowledge graph configuration method, device, equipment and storage medium
CN109992421B (en) Ultrasonic system, cursor resource allocation method and system thereof and storage medium
CN107621951B (en) View level optimization method and device
CN114465956A (en) Method and device for limiting flow rate of virtual machine, electronic equipment and storage medium
EP3438936B1 (en) Method and apparatus for managing graphics layers within a data processing system
JPH09223063A (en) Hypermedia document management device
CN107315970B (en) Sensitive data interaction method and device
CN113593677A (en) Image processing method, device, equipment and computer readable storage medium
CN112445790B (en) Report data storage method, device, equipment and medium
US20240319967A1 (en) Script generation method and apparatus, device, and storage medium
CN116150539A (en) Page rendering method and device and electronic equipment
CN116303723A (en) An information processing method and device
CN110955849B (en) Object display method and device, electronic equipment and computer readable storage medium
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
CN120762524A (en) Application card adjustment method, terminal device and storage medium
JP2022037082A (en) Information processing device, information processing method, and program
EP3062247B1 (en) Method and device for magnifying graphic within topology diagram, and computer storage medium
CN114510169A (en) Image processing method, device, equipment and storage medium
US20140375576A1 (en) Facilitating touch screen users to select elements in a densely populated display
CN106934555B (en) Workflow organization method and device, computer equipment and storage medium

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
TG01 Patent term adjustment
TG01 Patent term adjustment