CN107168547B - Method and device for inputting command - Google Patents

Method and device for inputting command Download PDF

Info

Publication number
CN107168547B
CN107168547B CN201710209486.3A CN201710209486A CN107168547B CN 107168547 B CN107168547 B CN 107168547B CN 201710209486 A CN201710209486 A CN 201710209486A CN 107168547 B CN107168547 B CN 107168547B
Authority
CN
China
Prior art keywords
command
parameter
user
current
hierarchy
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
CN201710209486.3A
Other languages
Chinese (zh)
Other versions
CN107168547A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710209486.3A priority Critical patent/CN107168547B/en
Publication of CN107168547A publication Critical patent/CN107168547A/en
Application granted granted Critical
Publication of CN107168547B publication Critical patent/CN107168547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for inputting commands, which pre-store a first corresponding relation between user information and command parameters; if the current user needs to input a command, determining each alternative command parameter corresponding to the current user information according to the first corresponding relation, displaying the alternative command parameters to the current user, selecting a target command parameter from the alternative command parameters by the current user, and synthesizing the target command parameter into the command for inputting; therefore, the user only needs to select the command parameters in the scheme, and does not need to input the command parameters in a mode of manually knocking the command lines of the command parameters, so that the operation is simplified, and the error rate is reduced.

Description

Method and device for inputting command
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for inputting a command.
Background
At present, various network systems, such as a service cloud distributed computing system, a network transmission system, etc., have been able to implement increasingly complex functions. For these network systems, operation and maintenance personnel are usually required to perform operation and maintenance on the system.
In the working process, the operation and maintenance personnel usually input various commands to be executed by manually knocking the command lines of the command parameters, and the input commands mostly need to be directed to various operation and maintenance modes, various operation and maintenance services and various operation and maintenance tools. The operation and maintenance modes, the operation and maintenance services, and the operation and maintenance tools are various, for example, the operation and maintenance modes may include diagnosese, deployment, benchmark, auto, and so on; the operation and maintenance services may include ActiveMQ, ZooKeeper, Couchbase, Mysql, and so on; each operation and maintenance service also comprises various operation and maintenance tools.
Therefore, it is often complicated for the operation and maintenance personnel to manually tap the command line of each command parameter to input the command, which is prone to error.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for inputting commands, which simplify the operation and reduce the error rate.
In order to achieve the above object, an embodiment of the present invention discloses a method for inputting a command, including: determining current user information;
determining each alternative command parameter corresponding to the current user information according to a first corresponding relation between pre-stored user information and each command parameter;
displaying the alternative command parameters to a current user;
receiving a selection instruction of the current user, and selecting each target command parameter from the candidate command parameters according to the selection instruction;
combining each determined target command parameter into a command by using a preset combination rule;
the combined command is input.
Optionally, before the step of determining the current user information, the method may further include:
acquiring a first corresponding relation between user information and each command parameter from a server;
and storing the acquired first corresponding relation.
Optionally, the process of storing the first corresponding relationship between the user information and the command parameter may include:
acquiring a history record, wherein the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter;
counting the number of each command parameter corresponding to each user from the historical records;
sorting the command parameters corresponding to each user according to the quantity;
storing a first corresponding relation of each user, wherein the first corresponding relation comprises user information and corresponding sequenced command parameters;
the step of determining each candidate command parameter corresponding to the current user information according to a first corresponding relationship between pre-stored user information and each command parameter includes:
searching a target first corresponding relation containing the current user information in the prestored first corresponding relation;
and in the target first corresponding relation, selecting each alternative command parameter corresponding to the current user information according to the sequence of each command parameter.
Optionally, the step of counting the number of each command parameter corresponding to each user from the history record may include:
in the history record, counting the number of each command parameter of each user under each parameter type for each user; the command parameters are divided into different parameter types according to a first preset division rule;
the step of sorting the command parameters corresponding to each user according to the number may include:
according to the counted number, sequencing each command parameter under each parameter type aiming at each user;
the step of storing the first corresponding relationship of each user may include:
storing user information of the users and the corresponding sequenced command parameters under each parameter type aiming at each user;
the step of selecting each candidate command parameter corresponding to the current user information according to the ranking of each command parameter in the target first corresponding relationship includes:
and in the target first corresponding relation, selecting each alternative command parameter under each parameter type corresponding to the current user information according to the ordered command parameters under each parameter type.
Optionally, the command parameters are divided into different levels according to a second preset division rule; the hierarchical relation of the at least one command parameter is also contained in each command;
the step of counting the number of each command parameter corresponding to each user from the history record may include:
in the history record, determining the number of command parameters of each user in each hierarchy and the association relationship of the command parameters between adjacent hierarchies for each user;
the step of sorting the command parameters corresponding to each user according to the number may include:
for each user, determining a current hierarchy to be sorted according to the hierarchy sequence;
judging whether the current hierarchy to be sorted has a previous hierarchy or not;
if not, sorting the command parameters to be sorted according to the number of the command parameters to be sorted in the current hierarchy to be sorted; and returning to the step of executing the hierarchy sequence and determining the current hierarchy to be sorted until the sorting of all the hierarchies is completed;
if the command parameters exist, grouping the command parameters to be ordered in the current hierarchy to be ordered according to the incidence relation of the command parameters between the previous hierarchy and the current hierarchy to be ordered, wherein each command parameter in the previous hierarchy corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group; and returning to the step of executing the hierarchy sequence and determining the current hierarchy to be sorted until the sorting of all the hierarchies is completed;
the step of storing the first corresponding relationship of each user may include:
for each user, storing user information of the user, ordered command parameters contained in each group in each corresponding hierarchy and an association relationship of the command parameters between adjacent hierarchies as a first corresponding relationship of the user;
the step of selecting each candidate command parameter corresponding to the current user information according to the ranking of each command parameter in the target first corresponding relationship includes:
and in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
Optionally, in the target first corresponding relationship, the step of selecting each candidate command parameter in each level corresponding to the current user information according to the ordered command parameters included in each group in each level and the association relationship between command parameters in adjacent levels may include:
determining a current hierarchy to be selected according to the hierarchy sequence;
judging whether the current hierarchy to be selected has a previous hierarchy or not;
if the command parameters do not exist, determining alternative command parameters according to the sequence of the command parameters in the current hierarchy to be selected, and displaying the alternative command parameters to the current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction; and returning to the step of executing the steps of determining the current hierarchy to be selected according to the hierarchy sequence until target command parameters in all the hierarchies are selected;
if the command parameter exists, searching a target group in the current to-be-selected level corresponding to the target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction; and returning to the step of determining the current hierarchy to be selected according to the hierarchy sequence until the target command parameters in all the hierarchies are selected.
In order to achieve the above object, an embodiment of the present invention further discloses a device for inputting a command, including:
the first determining module is used for determining the current user information;
the second determining module is used for determining each alternative command parameter corresponding to the current user information according to a first corresponding relation between pre-stored user information and each command parameter;
the display module is used for displaying the alternative command parameters to the current user;
the selection module is used for receiving a selection instruction of the current user and selecting each target command parameter from the candidate command parameters according to the selection instruction;
the combination module is used for combining each determined target command parameter into a command by using a preset combination rule;
and the input module is used for inputting the combined command.
Optionally, the apparatus may further include:
the acquisition storage module is used for acquiring a first corresponding relation between the user information and each command parameter from the server; and storing the acquired first corresponding relation.
Optionally, the apparatus further includes a storage module, configured to store a first corresponding relationship between the user information and the command parameter, where the storage module may include:
the acquisition submodule is used for acquiring a history record, the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter;
the statistic submodule is used for counting the number of each command parameter corresponding to each user from the historical record;
the sequencing submodule is used for sequencing each command parameter corresponding to each user according to the quantity;
the storage submodule is used for storing a first corresponding relation of each user, and the first corresponding relation comprises user information and corresponding sequenced command parameters;
the second determining module may include:
the searching submodule is used for searching a target first corresponding relation containing the current user information in the prestored first corresponding relation;
and the selection sub-module is used for selecting each candidate command parameter corresponding to the current user information according to the sequence of each command parameter in the target first corresponding relation.
Optionally, the statistical submodule may be specifically configured to:
in the history record, counting the number of each command parameter of each user under each parameter type for each user; the command parameters are divided into different parameter types according to a first preset division rule;
the sorting submodule may be specifically configured to:
according to the counted number, sequencing each command parameter under each parameter type aiming at each user;
the storage submodule may be specifically configured to:
storing user information of the users and the corresponding sequenced command parameters under each parameter type aiming at each user;
the selection submodule may be specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter under each parameter type corresponding to the current user information according to the ordered command parameters under each parameter type.
Optionally, the command parameters are divided into different levels according to a second preset division rule; the hierarchical relation of the at least one command parameter is also contained in each command;
the statistics submodule may be specifically configured to:
in the history record, determining the number of command parameters of each user in each hierarchy and the association relationship of the command parameters between adjacent hierarchies for each user;
the sorting sub-module may include:
the first determining unit is used for determining the current hierarchy to be sorted according to the hierarchy order for each user;
the first judgment unit is used for judging whether the current hierarchy to be sorted has a previous hierarchy; if the first sorting unit does not exist, triggering the first sorting unit, and if the first sorting unit exists, triggering the second sorting unit;
the first sequencing unit is used for sequencing the command parameters to be sequenced according to the quantity of the command parameters to be sequenced in the current hierarchy to be sequenced; triggering the first determining unit until all levels are sorted;
the second sorting unit is used for grouping the command parameters to be sorted in the current hierarchy to be sorted according to the incidence relation of the command parameters between the previous hierarchy and the current hierarchy to be sorted, and each command parameter in the previous hierarchy corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group; triggering the first determining unit until all levels are sorted;
the storage submodule may be specifically configured to:
for each user, storing user information of the user, ordered command parameters contained in each group in each corresponding hierarchy and an association relationship of the command parameters between adjacent hierarchies as a first corresponding relationship of the user;
the selection submodule may be specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
Optionally, the selecting sub-module may include:
the second determining unit is used for determining the current to-be-selected hierarchy according to the hierarchy sequence;
the second judging unit is used for judging whether the current hierarchy to be selected has a previous hierarchy or not; if the first selection unit does not exist, the first selection unit is triggered, and if the first selection unit exists, the second selection unit is triggered;
the first selection unit is used for determining alternative command parameters according to the sequence of each command parameter in the current hierarchy to be selected and displaying the alternative command parameters to a current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction; triggering the second determining unit until target command parameters in all the levels are selected;
the second selection unit is used for searching a target group in the current to-be-selected level corresponding to the target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction; and triggering the second determining unit until target command parameters in all the levels are selected.
By applying the embodiment of the invention, the first corresponding relation between the user information and the command parameter is stored in advance; if the current user needs to input a command, determining each alternative command parameter corresponding to the current user information according to the first corresponding relation, displaying the alternative command parameters to the current user, selecting a target command parameter from the alternative command parameters by the current user, and synthesizing the target command parameter into the command for inputting; therefore, the user only needs to select the command parameters in the scheme, and does not need to input the command parameters in a mode of manually knocking the command lines of the command parameters, so that the operation is simplified, and the error rate is reduced.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for inputting commands according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of storing a first corresponding relationship according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a process for determining parameters of a target command in each level according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for inputting commands according to an embodiment of the present invention
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the above technical problem, embodiments of the present invention provide a method and an apparatus for inputting a command. The method and the device can be applied to various electronic devices, and are not limited specifically. First, a method for inputting a command according to an embodiment of the present invention will be described in detail.
Fig. 1 is a schematic flowchart of a method for inputting a command according to an embodiment of the present invention, including:
s101: current user information is determined.
As an implementation mode, the scheme can be applied to operation and maintenance scenes, and users can also be understood as operation and maintenance personnel. Those skilled in the art can understand that the electronic device executing the scheme may record user information and permissions of different users, and an operation and maintenance person may perform login operation or other operations to input the user information when using the scheme, so as to obtain corresponding permissions.
In this case, the electronic device executing the scheme may obtain current user information, where the current user is a user who needs to input a command currently, and the current user information may be a name, an ID, a mailbox, and the like of the current user, and is not limited specifically.
S102: and determining each alternative command parameter corresponding to the current user information according to a first corresponding relation between the pre-stored user information and each command parameter.
Those skilled in the art will appreciate that the server may store a first corresponding relationship between the user information and each command parameter, and the electronic device executing the present solution may obtain the first corresponding relationship from the server and store the first corresponding relationship.
Alternatively, as an implementation, the process of the electronic device executing the present solution storing the first corresponding relationship between the user information and the command parameter may include:
acquiring a history record, wherein the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter; counting the number of each command parameter corresponding to each user from the historical records; sorting the command parameters corresponding to each user according to the quantity; and storing a first corresponding relation of each user, wherein the first corresponding relation comprises user information and corresponding sequenced command parameters.
For the sake of description, in the present embodiment, the correspondence relationship between the user information and the command parameter is referred to as a first correspondence relationship, and the correspondence relationship between the user information and the command is referred to as a second correspondence relationship. In the operation and maintenance scenario, the command input by the operation and maintenance personnel may include a plurality of command parameters, such as an operation and maintenance mode parameter, an operation and maintenance service parameter, an operation and maintenance tool parameter, and the like, or may also include only one command parameter, which is not limited specifically.
In this embodiment, the history may be stored in a server, and the electronic device executing the present scheme acquires the history from the server. Alternatively, the history may be stored in the present apparatus. Specifically, a history may be formed for each command entered by each user. For example, assuming that the user information is a user name, a user named X enters a command X1, which includes: an operation and maintenance mode parameter A1, an operation and maintenance service parameter A11 and an operation and maintenance tool parameter A111; based on this, a history is formed that is: X-X1 (A1, A11, A111).
It is assumed that the acquired history is shown in table 1, and table 1 is only an example and does not limit the history.
TABLE 1
User information User input command (operation and maintenance mode parameter, operation and maintenance service parameter, operation and maintenance tool parameter)
X X1(A1、A11、A111)
X X2(B2、B21、B211)
X X3(A1、A11、A111)
X X4(A1、A11、A112)
Y A(A1、A11、A112)
…… ……
As an implementation manner, the operation and maintenance mode parameter, the operation and maintenance service parameter, and the operation and maintenance tool parameter may be divided into different parameter types according to a first preset division rule. In this way, from the history contained in table 1, for each user, the number of each command parameter of the user under each parameter type is counted:
for the user X, under the operation and maintenance mode parameter types, the number of A1 is 3, and the number of B2 is 1; under the operation and maintenance service parameter types, the number of A11 is 3, and the number of B21 is 1; under the parameter type of the operation and maintenance tool, the number of A111 is 2, the number of A112 is 1, and the number of B211 is 1;
for the user Y, under the operation and maintenance mode parameter type, the number of A1 is 1; under the operation and maintenance service parameter type, the quantity of A11 is 1; under the parameter type of the operation and maintenance tool, the A112 number is 1 … …
And sequencing each command parameter under each parameter type according to the counted number and aiming at each user. For simplicity of description, the sorting is performed only for the user X, and specifically, the sorting may be performed according to the descending order of the number. For the user X, the result of the ranking for the operation and maintenance mode parameters is: a1 (number 3), B2 (number 1); the sequencing result aiming at the operation and maintenance service parameters is as follows: a11 (number 3), B21 (number 1); the result of the ranking for the operation and maintenance tool parameters is: a111 (number 2), a112 (number 1), B211 (number 1).
And storing the user information of each user and the corresponding sequenced command parameters under each parameter type as a first corresponding relation of the user. For the user X, the first corresponding relationship is: x- (A1, B2); (A11, B21); (A111, A112, B211).
It should be noted that, in the sorting process, the operation and maintenance mode parameter, the operation and maintenance service parameter, and the operation and maintenance tool parameter are sorted respectively, so that, in the first corresponding relationship, the sorting results for the operation and maintenance mode parameter, the operation and maintenance service parameter, and the operation and maintenance tool parameter should be stored respectively. That is, the first correspondence "X — (a1, B2); (A11, B21); (A111, A112, B211) ", each parenthesis represents the result of the ordering of one type of command parameter.
In this case, S102 may include: searching a target first corresponding relation containing the current user information in the prestored first corresponding relation; and in the target first corresponding relation, selecting each alternative command parameter corresponding to the current user information according to the sequence of each command parameter.
In this embodiment, the first corresponding relations of the plurality of users are stored, and therefore, after the current user information is determined, the first corresponding relation of the current user, that is, the first corresponding relation including the current user information, needs to be searched. If the current user information is X, finding out the first corresponding relation of the target as follows: x- (A1, B2); (A11, B21); (A111, A112, B211).
In this embodiment, since the command parameters are divided into different parameter types, in the target first correspondence, each candidate command parameter in each parameter type corresponding to the current user information is selected according to the sorted command parameters in each parameter type.
For example, each parameter type may be ranked a predetermined number of preceding command parameters as candidate command parameters. Assume that the preset number is 2, that is, the command parameters in the first two digits in each parenthesis are used as the target command parameters, that is, (A1, B2), (A11, B21), (A111, A112) are used as the candidate command parameters.
S103: and displaying the alternative command parameters to the current user.
S104: and receiving a selection instruction of the current user, and selecting each target command parameter from the candidate command parameters according to the selection instruction.
And (A1, B2), (A11, B21), (A111, A112) are displayed to the user X, and then a selection instruction sent by the user X is received, wherein the selection instruction can carry information of the command parameters selected by the user, and the target command parameters can be selected according to the selection instruction.
S105: and combining each determined target command parameter into a command by using a preset combination rule.
S106: the combined command is input.
Assuming that A1, a11 and a111 are selected as target command parameters corresponding to X, A1, a11 and a111 are combined into commands by using a preset combination rule and input.
As can be understood by those skilled in the art, the historical records can reflect the input habits of the users, and command parameters with high utilization rate (large quantity) of each user are counted based on the historical records; when the current user needs to input the command, the command parameters with higher utilization rate of the current user are displayed to the current user for selection, and the command parameters selected by the current user are combined into the command for input, so that the operation is simplified, and the error rate is reduced.
By applying the embodiment shown in fig. 1 of the present invention, the first corresponding relationship between the user information and the command parameter is pre-stored; if the current user needs to input a command, determining each alternative command parameter corresponding to the current user information according to the first corresponding relation, displaying the alternative command parameters to the current user, selecting a target command parameter from the alternative command parameters by the current user, and synthesizing the target command parameter into the command for inputting; therefore, the user only needs to select the command parameters in the scheme, and does not need to input the command parameters in a mode of manually knocking the command lines of the command parameters, so that the operation is simplified, and the error rate is reduced.
In the embodiment shown in fig. 1, an implementation of storing the first corresponding relationship is provided, and fig. 2 provides another implementation of storing the first corresponding relationship, in the implementation shown in fig. 2, the command parameters are divided into different levels according to a second preset division rule; fig. 2 includes:
s201: and acquiring a history record, wherein the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter and a hierarchical relation of the at least one command parameter.
The history may be stored in a server from which the electronic device executing the present scheme obtains the history. Alternatively, the history may be stored in the present apparatus.
In the operation and maintenance scenario, the command input by the operation and maintenance personnel may include a plurality of command parameters, such as an operation and maintenance mode parameter, an operation and maintenance service parameter, an operation and maintenance tool parameter, and the like. As will be understood by those skilled in the art, when a command is input in the existing solution, the operation and maintenance mode parameter is generally input, the operation and maintenance service parameter under the operation and maintenance mode parameter is input, and the operation and maintenance tool parameter under the operation and maintenance service parameter is input. That is, the operation mode parameter, the operation service parameter, and the operation tool parameter may be considered to belong to different levels. It can also be understood that one operation mode includes one or more operation services, and one operation service includes one or more operation tools.
For convenience of description, the level of the operation and maintenance mode parameter is referred to as a first level, the level of the operation and maintenance service parameter is referred to as a second level, and the level of the operation and maintenance tool parameter is referred to as a third level.
It should be emphasized that the present invention is not limited to three levels, and there may be more levels, such as four, five, etc., or there may be only two levels or one level.
In the embodiment shown in fig. 2, when the history is formed, a hierarchical relationship including command parameters is also required. For example, assuming that the user information is a user name, a user named X enters a command X1, which includes: an operation and maintenance mode parameter A1, an operation and maintenance service parameter A11 and an operation and maintenance tool parameter A111; based on this, a history is formed that is: X-X1 (A1-A11-A111).
It is assumed that the acquired history is shown in table 2, and table 2 is only an example and does not limit the history.
TABLE 2
User information User input commandOrder (operation and maintenance mode parameter-operation and maintenance service parameter-operation and maintenance tool parameter)
X X1(A1—A11—A111)
X X2(B2—B21—B211)
X X3(A1—A11—A111)
X X4(A1—A11—A112)
Y A(A1—A11—A112)
…… ……
S202: in the history record, the number of the command parameters of each hierarchy of each user and the association relation of the command parameters between the adjacent hierarchies are determined for each user.
In table 2, for user X:
in the first level, the number of a1 is 3, and the number of B2 is 1; in the second level, the number of a11 is 3, and the number of B21 is 1; in the third level, the number of a111 is 2, the number of a112 is 1, and the number of B211 is 1.
In addition, between adjacent levels, a1 is associated with a11, which can also be understood as including an operation and maintenance service a11 in an operation and maintenance mode a 1; b2 is associated with B21, and it can also be understood that the operation and maintenance mode B2 includes operation and maintenance service B21; a11 is associated with A111 and A112, it can also be understood that the operation service A11 includes operation tools A111 and A112; b21 is associated with B211, and it can also be understood that the operation and maintenance service B21 includes an operation and maintenance tool B211.
For user Y:
in the first hierarchy, the number of a1 is 1; in the second level, the number of a11 is 1; in the third level, the number of A112 is 1 … …
In addition, between adjacent levels, a1 is associated with a11, which can also be understood as including an operation and maintenance service a11 in an operation and maintenance mode a 1; a11 is associated with A112, and it can also be understood that the operation service A11 includes an operation tool A112.
S203: and determining the current hierarchy to be sorted according to the hierarchy order for each user.
S204: judging whether the current hierarchy to be sorted has a previous hierarchy or not; if not, S205 is executed, and if yes, S206 is executed.
S205: and sequencing the command parameters to be sequenced according to the quantity of the command parameters to be sequenced in the current hierarchy to be sequenced.
S206: according to the incidence relation of the command parameters between the previous level and the current level to be sorted, grouping the command parameters to be sorted in the current level to be sorted, wherein each command parameter in the previous level corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group;
s207: and judging whether an unordered hierarchy exists, if so, returning to the step S203, and if not, indicating that the ordering of all the hierarchies is finished, and continuing to execute the step S208.
S203-S207 may be understood as a process of ordering each command parameter in each level for each user. The command parameters in each level may be ordered in turn according to the order of the first level, the second level, and the third level.
Take user X as an example to explain:
first, the first hierarchy is determined as the current hierarchy to be sorted, and the command parameters included in the hierarchy to be sorted are referred to as command parameters to be sorted herein. And the first level does not have the previous level, and the command parameters to be ordered are ordered according to the number of the command parameters to be ordered in the first level. Specifically, the sorting may be performed according to the number from large to small, and the sorting result in the first hierarchy is: a1 (number 3), B2 (number 1).
It should be noted that, for simplicity, there are fewer command parameters in each level, and in practical applications, there are usually more command parameters in each level.
Judging whether an unordered hierarchy still exists, determining a second hierarchy as a current hierarchy to be ordered according to the hierarchy sequence, and if the second hierarchy has a previous hierarchy (a first hierarchy), grouping command parameters to be ordered in the second hierarchy according to the incidence relation of the command parameters between the first hierarchy and the second hierarchy:
a1 in the first level is associated with a11 in the second level; b2 in the first level is associated with B21 in the second level; one parameter in the first level corresponds to one group in the second level, assuming that a1 corresponds to group 1, group 1 contains a11, B2 corresponds to group 2, and group 2 contains B21.
For the group 1, sorting the command parameters to be sorted in the group 1 according to the number of the command parameters to be sorted in the group 1, wherein only one command parameter is in the group 1;
and for the group 2, sorting the command parameters to be sorted in the group 2 according to the number of the command parameters to be sorted in the group 2, wherein only one command parameter in the group 2 is used.
Judging whether an unordered level still exists, determining a third level as a current level to be ordered according to the level sequence, and if the third level exists in a previous level (a second level), grouping command parameters to be ordered in the third level according to the incidence relation of the command parameters between the second level and the third level:
a11 in the second hierarchy is associated with a111, a112 in the third hierarchy; b21 in the second hierarchy is associated with B211 in the third hierarchy; one parameter in the second level corresponds to one group in the third level, assuming that a11 corresponds to group 3, group 3 contains a111 and a112, B21 corresponds to group 4, and group 4 contains B211.
For group 3, according to the number of each command parameter to be sorted in group 3, sorting each command parameter to be sorted in group 3, specifically, sorting the command parameters from large to small according to the number of the command parameters, where the number of a111 in group 3 is 2, the number of a112 in group 3 is 1, and the sorting result is: a111, A112;
and for the group 4, sorting the command parameters to be sorted in the group 4 according to the number of the command parameters to be sorted in the group 4, wherein only one command parameter in the group 4 is used.
All three levels are ordered and S208 is performed: and storing the user information of each user, the ordered command parameters contained in each group in each corresponding hierarchy and the incidence relation of the command parameters between adjacent hierarchies as a first corresponding relation of the user.
For user X, the first correspondence of the user includes: x-first level (A1, B2) -second level (group 1: A11; group 2: B21) -third level (group 3: A111, A112; group 4: B211). It should be noted that in the first correspondence, a pause mark indicates a sequence, which reflects the above-mentioned sorting result, and a semicolon indicates a parallel relationship between the groups, for example, a semicolon is used between the group 1 and the group 2, which does not indicate that there is a sorting relationship between the groups.
In this embodiment, after the first corresponding relationship of each user is stored, the target first corresponding relationship of the current user, that is, the target first corresponding relationship containing the information of the current user, can be searched. And then, in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
Specifically, as shown in fig. 3, fig. 3 provides an embodiment of determining target command parameters in each hierarchy, and fig. 3 includes:
s301: determining a current hierarchy to be selected according to the hierarchy sequence; the current candidate level can be understood as the level of the target command parameter which needs to be selected currently;
s302: judging whether the current hierarchy to be selected has a previous hierarchy or not; if not, executing S303, if yes, executing S304;
s303: determining alternative command parameters according to the sequence of each command parameter in the current hierarchy to be selected, and displaying the alternative command parameters to a current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction;
s304: searching a target group in the current to-be-selected level corresponding to a target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction;
s305: and judging whether the hierarchy of the unselected target command parameters exists or not, if so, returning to the step S301, and if not, indicating that the target command parameters in all the hierarchies are selected, and ending the flow of the figure 3.
Continuing with the above example, where the current user information is X, the target first correspondence includes: x-first level (A1, B2) -second level (group 1: A11; group 2: B21) -third level (group 3: A111, A112; group 4: B211). It should be noted that, for simplicity, there are fewer command parameters in each level, and in practical applications, there are usually more command parameters in each level.
Firstly, the first level is determined to be a current candidate level, no previous level exists in the first level, and the candidate command parameters are determined according to the sequence (A1, B2) of the command parameters in the first level. A preset number of command parameters ranked in the front may be determined as the alternative command parameters, and A1 and B2 are presented to user X as the alternative command parameters assuming that the preset number is 2. Assume that user X selects a1 as the target command parameter in the first hierarchy.
Then, a second hierarchy, which is a previous hierarchy (first hierarchy), is determined as a current candidate hierarchy. The corresponding relationship between the command parameters of the first level and the groups in the second level is as follows: a1 in the first hierarchy corresponds to group 1 in the second hierarchy; b2 in the first hierarchy corresponds to group 2 in the second hierarchy; therefore, the target group in the second hierarchy corresponding to the target command parameter a1 in the first hierarchy is found to be group 1, where group 1 only includes a11, a11 is shown to the current user as an alternative command parameter, and it is assumed that the current user selects a11 as the target command parameter in the second hierarchy.
Then, a third hierarchy is determined as a current candidate hierarchy, the third hierarchy existing at a previous hierarchy (second hierarchy). The corresponding relationship between the command parameters of the second level and the groups in the third level is as follows: a11 in the second hierarchy corresponds to group 3 in the second hierarchy; b21 in the first hierarchy corresponds to group 4 in the second hierarchy; therefore, the target group in the third hierarchy corresponding to the target command parameter a11 in the second hierarchy is found to be group 3, and group 3 includes a111 and a 112.
A preset number of command parameters ranked in the front may be determined as the alternative command parameters, and assuming that the preset number is 2, a111 and a112 are presented to the user X as the alternative command parameters. Assume that user X selects a111 as the target command parameter in the third hierarchy level.
Thus, the target command parameters in all the levels are selected, and each determined target command parameter (namely the target command parameter in each level) can be combined into a command by using a preset combination rule; the combined command is input.
By applying the embodiments shown in fig. 2 and 3 of the present invention, the user only needs to select the command parameters in each level, and does not need to input each command parameter in a manner of manually tapping the command line of each command parameter, thereby simplifying the operation and reducing the error rate.
Corresponding to the above method embodiments, the embodiments of the present invention provide an apparatus for inputting a command.
Fig. 4 is a schematic structural diagram of an apparatus for inputting a command according to an embodiment of the present invention, including:
a first determining module 401, configured to determine current user information;
a second determining module 402, configured to determine, according to a first corresponding relationship between pre-stored user information and each command parameter, each candidate command parameter corresponding to the current user information;
a display module 403, configured to display the candidate command parameter to a current user;
a selecting module 404, configured to receive a selection instruction of the current user, and select each target command parameter from the candidate command parameters according to the selection instruction;
a combination module 405, configured to combine each determined target command parameter into a command by using a preset combination rule;
an input module 406 for inputting the combined command.
As an embodiment, the apparatus may further include:
an obtaining storage module (not shown in the figure) for obtaining a first corresponding relation between the user information and each command parameter from the server; and storing the acquired first corresponding relation.
As an embodiment, the apparatus may further include a storage module (not shown in the figure) for storing the first corresponding relationship between the user information and the command parameter, and the storage module may include:
the acquisition submodule is used for acquiring a history record, the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter;
the statistic submodule is used for counting the number of each command parameter corresponding to each user from the historical record;
the sequencing submodule is used for sequencing each command parameter corresponding to each user according to the quantity;
the storage submodule is used for storing a first corresponding relation of each user, and the first corresponding relation comprises user information and corresponding sequenced command parameters;
the second determining module 402 may include: a search sub-module and a selection sub-module (not shown), wherein,
the searching submodule is used for searching a target first corresponding relation containing the current user information in the prestored first corresponding relation;
and the selection sub-module is used for selecting each candidate command parameter corresponding to the current user information according to the sequence of each command parameter in the target first corresponding relation.
As an embodiment, the statistics submodule may be specifically configured to:
in the history record, counting the number of each command parameter of each user under each parameter type for each user; the command parameters are divided into different parameter types according to a first preset division rule;
the sorting submodule may be specifically configured to:
according to the counted number, sequencing each command parameter under each parameter type aiming at each user;
the storage submodule may be specifically configured to:
storing user information of the users and the corresponding sequenced command parameters under each parameter type aiming at each user;
the selection submodule may be specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter under each parameter type corresponding to the current user information according to the ordered command parameters under each parameter type.
As an embodiment, the command parameters are divided into different levels according to a second preset division rule; the hierarchical relation of the at least one command parameter is also contained in each command;
the statistics submodule may be specifically configured to:
in the history record, determining the number of command parameters of each user in each hierarchy and the association relationship of the command parameters between adjacent hierarchies for each user;
the sorting sub-module may include:
the first determining unit is used for determining the current hierarchy to be sorted according to the hierarchy order for each user;
the first judgment unit is used for judging whether the current hierarchy to be sorted has a previous hierarchy; if the first sorting unit does not exist, triggering the first sorting unit, and if the first sorting unit exists, triggering the second sorting unit;
the first sequencing unit is used for sequencing the command parameters to be sequenced according to the quantity of the command parameters to be sequenced in the current hierarchy to be sequenced; triggering the first determining unit until all levels are sorted;
the second sorting unit is used for grouping the command parameters to be sorted in the current hierarchy to be sorted according to the incidence relation of the command parameters between the previous hierarchy and the current hierarchy to be sorted, and each command parameter in the previous hierarchy corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group; triggering the first determining unit until all levels are sorted;
the storage submodule may be specifically configured to:
for each user, storing user information of the user, ordered command parameters contained in each group in each corresponding hierarchy and an association relationship of the command parameters between adjacent hierarchies as a first corresponding relationship of the user;
the selection submodule may be specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
As an embodiment, the selecting sub-module may include:
the second determining unit is used for determining the current to-be-selected hierarchy according to the hierarchy sequence;
the second judging unit is used for judging whether the current hierarchy to be selected has a previous hierarchy or not; if the first selection unit does not exist, the first selection unit is triggered, and if the first selection unit exists, the second selection unit is triggered;
the first selection unit is used for determining alternative command parameters according to the sequence of each command parameter in the current hierarchy to be selected and displaying the alternative command parameters to a current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction; triggering the second determining unit until target command parameters in all the levels are selected;
the second selection unit is used for searching a target group in the current to-be-selected level corresponding to the target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction; and triggering the second determining unit until target command parameters in all the levels are selected.
With the embodiment of the present invention shown in fig. 4, the first correspondence between the user information and the command parameter is stored in advance; if the current user needs to input a command, determining each alternative command parameter corresponding to the current user information according to the first corresponding relation, displaying the alternative command parameters to the current user, selecting a target command parameter from the alternative command parameters by the current user, and synthesizing the target command parameter into the command for inputting; therefore, the user only needs to select the command parameters in the scheme, and does not need to input the command parameters in a mode of manually knocking the command lines of the command parameters, so that the operation is simplified, and the error rate is reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of inputting a command, comprising:
determining current user information;
determining each alternative command parameter corresponding to the current user information according to a first corresponding relation between pre-stored user information and each command parameter;
displaying the alternative command parameters to a current user;
receiving a selection instruction of the current user, and selecting each target command parameter from the candidate command parameters according to the selection instruction;
combining each determined target command parameter into a command by using a preset combination rule;
inputting the combined command;
a process for storing a first correspondence of user information to command parameters, comprising:
acquiring a history record, wherein the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter;
counting the number of each command parameter corresponding to each user from the historical records;
sorting the command parameters corresponding to each user according to the quantity;
storing a first corresponding relation of each user, wherein the first corresponding relation comprises user information and corresponding sequenced command parameters;
the step of determining each candidate command parameter corresponding to the current user information according to a first corresponding relationship between pre-stored user information and each command parameter includes:
searching a target first corresponding relation containing the current user information in the prestored first corresponding relation;
and in the target first corresponding relation, selecting each alternative command parameter corresponding to the current user information according to the sequence of each command parameter.
2. The method of claim 1, further comprising, prior to the step of determining current user information:
acquiring a first corresponding relation between user information and each command parameter from a server;
and storing the acquired first corresponding relation.
3. The method according to claim 1, wherein the step of counting the number of the respective command parameters corresponding to each user from the history record comprises:
in the history record, counting the number of each command parameter of each user under each parameter type for each user; the command parameters are divided into different parameter types according to a first preset division rule;
the step of sorting the command parameters corresponding to each user according to the number comprises the following steps:
according to the counted number, sequencing each command parameter under each parameter type aiming at each user;
the step of storing the first corresponding relationship of each user includes:
storing user information of the users and the corresponding sequenced command parameters under each parameter type aiming at each user;
the step of selecting each candidate command parameter corresponding to the current user information according to the ranking of each command parameter in the target first corresponding relationship includes:
and in the target first corresponding relation, selecting each alternative command parameter under each parameter type corresponding to the current user information according to the ordered command parameters under each parameter type.
4. The method according to claim 1, wherein the command parameters are divided into different levels according to a second preset division rule; the hierarchical relation of the at least one command parameter is also contained in each command;
the step of counting the number of each command parameter corresponding to each user from the history record comprises:
in the history record, determining the number of command parameters of each user in each hierarchy and the association relationship of the command parameters between adjacent hierarchies for each user;
the step of sorting the command parameters corresponding to each user according to the number comprises the following steps:
for each user, determining a current hierarchy to be sorted according to the hierarchy sequence;
judging whether the current hierarchy to be sorted has a previous hierarchy or not;
if not, sorting the command parameters to be sorted according to the number of the command parameters to be sorted in the current hierarchy to be sorted; and returning to the step of executing the hierarchy sequence and determining the current hierarchy to be sorted until the sorting of all the hierarchies is completed;
if the command parameters exist, grouping the command parameters to be ordered in the current hierarchy to be ordered according to the incidence relation of the command parameters between the previous hierarchy and the current hierarchy to be ordered, wherein each command parameter in the previous hierarchy corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group; and returning to the step of executing the hierarchy sequence and determining the current hierarchy to be sorted until the sorting of all the hierarchies is completed;
the step of storing the first corresponding relationship of each user includes:
for each user, storing user information of the user, ordered command parameters contained in each group in each corresponding hierarchy and an association relationship of the command parameters between adjacent hierarchies as a first corresponding relationship of the user;
the step of selecting each candidate command parameter corresponding to the current user information according to the ranking of each command parameter in the target first corresponding relationship includes:
and in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
5. The method according to claim 4, wherein the step of selecting each candidate command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association between command parameters in adjacent levels in the target first correspondence comprises:
determining a current hierarchy to be selected according to the hierarchy sequence;
judging whether the current hierarchy to be selected has a previous hierarchy or not;
if the command parameters do not exist, determining alternative command parameters according to the sequence of the command parameters in the current hierarchy to be selected, and displaying the alternative command parameters to the current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction; and returning to the step of executing the steps of determining the current hierarchy to be selected according to the hierarchy sequence until target command parameters in all the hierarchies are selected;
if the command parameter exists, searching a target group in the current to-be-selected level corresponding to the target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction; and returning to the step of determining the current hierarchy to be selected according to the hierarchy sequence until the target command parameters in all the hierarchies are selected.
6. An apparatus for inputting a command, comprising:
the first determining module is used for determining the current user information;
the second determining module is used for determining each alternative command parameter corresponding to the current user information according to a first corresponding relation between pre-stored user information and each command parameter;
the display module is used for displaying the alternative command parameters to the current user;
the selection module is used for receiving a selection instruction of the current user and selecting each target command parameter from the candidate command parameters according to the selection instruction;
the combination module is used for combining each determined target command parameter into a command by using a preset combination rule;
an input module for inputting the combined command;
the apparatus further comprises a storage module for storing a first correspondence between user information and command parameters, the storage module comprising:
the acquisition submodule is used for acquiring a history record, the history record comprises a second corresponding relation between the user information of each user and each command input by the user, and each command comprises at least one command parameter;
the statistic submodule is used for counting the number of each command parameter corresponding to each user from the historical record;
the sequencing submodule is used for sequencing each command parameter corresponding to each user according to the quantity;
the storage submodule is used for storing a first corresponding relation of each user, and the first corresponding relation comprises user information and corresponding sequenced command parameters;
the second determining module includes:
the searching submodule is used for searching a target first corresponding relation containing the current user information in the prestored first corresponding relation;
and the selection sub-module is used for selecting each candidate command parameter corresponding to the current user information according to the sequence of each command parameter in the target first corresponding relation.
7. The apparatus of claim 6, further comprising:
the acquisition storage module is used for acquiring a first corresponding relation between the user information and each command parameter from the server; and storing the acquired first corresponding relation.
8. The apparatus of claim 6, wherein the statistics submodule is specifically configured to:
in the history record, counting the number of each command parameter of each user under each parameter type for each user; the command parameters are divided into different parameter types according to a first preset division rule;
the sorting submodule is specifically configured to:
according to the counted number, sequencing each command parameter under each parameter type aiming at each user;
the storage submodule is specifically configured to:
storing user information of the users and the corresponding sequenced command parameters under each parameter type aiming at each user;
the selection submodule is specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter under each parameter type corresponding to the current user information according to the ordered command parameters under each parameter type.
9. The apparatus of claim 6, wherein the command parameters are divided into different levels according to a second preset division rule; the hierarchical relation of the at least one command parameter is also contained in each command;
the statistic submodule is specifically configured to:
in the history record, determining the number of command parameters of each user in each hierarchy and the association relationship of the command parameters between adjacent hierarchies for each user;
the sorting submodule comprises:
the first determining unit is used for determining the current hierarchy to be sorted according to the hierarchy order for each user;
the first judgment unit is used for judging whether the current hierarchy to be sorted has a previous hierarchy; if the first sorting unit does not exist, triggering the first sorting unit, and if the first sorting unit exists, triggering the second sorting unit;
the first sequencing unit is used for sequencing the command parameters to be sequenced according to the quantity of the command parameters to be sequenced in the current hierarchy to be sequenced; triggering the first determining unit until all levels are sorted;
the second sorting unit is used for grouping the command parameters to be sorted in the current hierarchy to be sorted according to the incidence relation of the command parameters between the previous hierarchy and the current hierarchy to be sorted, and each command parameter in the previous hierarchy corresponds to one group; for each group, sorting the command parameters to be sorted in the group according to the number of the command parameters to be sorted in the group; triggering the first determining unit until all levels are sorted;
the storage submodule is specifically configured to:
for each user, storing user information of the user, ordered command parameters contained in each group in each corresponding hierarchy and an association relationship of the command parameters between adjacent hierarchies as a first corresponding relationship of the user;
the selection submodule is specifically configured to:
and in the target first corresponding relation, selecting each alternative command parameter in each level corresponding to the current user information according to the ordered command parameters contained in each group in each level and the association relation of the command parameters between adjacent levels.
10. The apparatus of claim 9, wherein the selection submodule comprises:
the second determining unit is used for determining the current to-be-selected hierarchy according to the hierarchy sequence;
the second judging unit is used for judging whether the current hierarchy to be selected has a previous hierarchy or not; if the first selection unit does not exist, the first selection unit is triggered, and if the first selection unit exists, the second selection unit is triggered;
the first selection unit is used for determining alternative command parameters according to the sequence of each command parameter in the current hierarchy to be selected and displaying the alternative command parameters to a current user; receiving a first selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the first selection instruction; triggering the second determining unit until target command parameters in all the levels are selected;
the second selection unit is used for searching a target group in the current to-be-selected level corresponding to the target command parameter in the previous level in the corresponding relation between the command parameter in the previous level and each group in the current to-be-selected level; determining alternative command parameters in the target groups according to the sequence of the command parameters in each target group, and displaying the alternative command parameters to the current user; receiving a second selection instruction of the current user, and selecting a target command parameter in the current to-be-selected level from the candidate command parameters according to the second selection instruction; and triggering the second determining unit until target command parameters in all the levels are selected.
CN201710209486.3A 2017-03-31 2017-03-31 Method and device for inputting command Active CN107168547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209486.3A CN107168547B (en) 2017-03-31 2017-03-31 Method and device for inputting command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209486.3A CN107168547B (en) 2017-03-31 2017-03-31 Method and device for inputting command

Publications (2)

Publication Number Publication Date
CN107168547A CN107168547A (en) 2017-09-15
CN107168547B true CN107168547B (en) 2020-06-05

Family

ID=59849609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209486.3A Active CN107168547B (en) 2017-03-31 2017-03-31 Method and device for inputting command

Country Status (1)

Country Link
CN (1) CN107168547B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395011B (en) * 2020-11-24 2022-11-29 海宁奕斯伟集成电路设计有限公司 Method for returning command response information, return control device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880471A (en) * 2012-09-24 2013-01-16 中兴通讯股份有限公司 Command execution method based on command line and command line operating system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445480B (en) * 2015-08-12 2019-11-29 成都华为技术有限公司 Command Line Interface display methods and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880471A (en) * 2012-09-24 2013-01-16 中兴通讯股份有限公司 Command execution method based on command line and command line operating system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Plann: A command‐line application for annotating plastome sequences;Daisie I. Huang et al.;《Applications in Plant Sciences》;20150810;第3卷(第8期);第1-3页 *
基于Python 的天文软件命令行界面设计与实现;陈蒙 等;《天文研究与技术》;20150430;第12卷(第2期);第196-203页 *

Also Published As

Publication number Publication date
CN107168547A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
KR101747303B1 (en) Method for recommendation of application, mobile terminal thereof and communication system thereof
US9379947B2 (en) Monitoring status display device, monitoring status display method and monitoring status display program
CN107783980A (en) Index data generates and data query method and device, storage and inquiry system
JP6756744B2 (en) Location information provision method and equipment
CN113946725B (en) Paging query method and device, storage medium and electronic equipment
CN105681252B (en) Client side data-based processing method and device
CN107168547B (en) Method and device for inputting command
CN106934679A (en) information matching method and device
CN110795493A (en) Multi-level index data display method, device, equipment and storage medium
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
CN104391898A (en) Data showing method and device
CN109658187A (en) Recommend method, apparatus, storage medium and the electronic equipment of cloud service provider
CN107665116B (en) Page resource bit information processing method and device
CN112115121A (en) Data governance real-time data quality detection system
CN104007837A (en) Keyboard input method of control system display control terminal
KR102464688B1 (en) Method and apparatus for detrmining event level of monitoring result
US11016828B2 (en) Task support system and method
CN111026310B (en) Transaction menu generation method and device
CN105991400B (en) Group searching method and device
CN107833019B (en) Channel management method and device, computer equipment and readable storage medium
CN111553583A (en) Cooperative operator matching method and device for audit task
CN112579764A (en) Method, device, equipment and storage medium for generating court trial outline
CN110929207A (en) Data processing method, device and computer readable storage medium
CN111399754A (en) Storage space release method and device and distributed system
CN105279035A (en) Calendar task query method and calendar task query device

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