The content of the invention
In view of this, the invention provides the display methods and device of a kind of message, solve the problems, such as that message is overlapped, enterAnd facilitate user to operate currently displaying message.
To achieve the above object, the present invention provides following technical scheme:
A kind of display methods of message, including:
Receive at least one new information in preset time period;
Assignment is carried out to the priority of new information each described using assignment storehouse, the excellent of each new information is determinedFirst level assignment;
The new information and the corresponding priority assignment of the new information that will be received are stored in message queue;
Each the described new information being stored into the message queue as treating orders messages, and according to described in eachThe priority assignment of orders messages is treated, to treating that orders messages carry out descending arrangement described in whole, a message to be shown, institute is obtainedIt is that the described of sequence first treats orders messages to state message to be shown;
Currently displaying message is judged whether, the currently displaying message is the message for being shown;
If not existing the currently displaying message, the message to be shown as the currently displaying message is shownShow.
Preferably, it is described to be stored in message in the new information that received and the corresponding priority assignment of the new informationAfter queue, also include:
Whether judge in the message queue comprising at least one old message, the old message is to be stored in the new informationThe message being stored in before the message queue;
If not including the old message in the message queue, return be stored into described in performing it is every in the message queueOne new information as treating orders messages, and according to the priority assignment of orders messages is treated each Suo Shu, to whole institutesState and treat the step for orders messages carry out descending arrangement, one message to be shown of acquisition;
If including the old message in the message queue, each the described old message in the message queue is stored intoWith new information each described orders messages are treated as described, and it is described according to treating orders messages each Suo Shu to return to executionPriority assignment, to treating the step for orders messages carry out descending arrangement, one message to be shown of acquisition described in whole.
Preferably, it is described that assignment is being carried out to the priority of new information each described using assignment storehouse, determine eachAfter the priority assignment of the new information, also include:
Assignment is carried out to the type of new information each described using the assignment storehouse, each new information is determinedType assignment;
The new information that will be received, the corresponding priority assignment of new information and the type assignment are stored in describedMessage queue;
Each the described new information being stored into the message queue is treated using described in all as treating orders messagesThe type assignment of orders messages, to treating that orders messages carry out classification of type described in whole, generates at least one classification of type group;
Treat that orders messages are carried out according to the priority assignment described in the whole that each described classification of type group is includedDescending is arranged, and obtains each described each self-corresponding initial message to be shown of classification of type group, wherein, it is described initial to be shownMessage is that the described of arrangement first in the classification of type group treats orders messages;
All initial message to be shown is carried out into descending arrangement according to the priority assignment, is obtained described to be shownMessage, and return to the step for judging whether currently displaying message described in execution.
Preferably, after judging to have the currently displaying message, also include:
Judge the message to be shown priority assignment whether greater than or equal to the currently displaying message priorityAssignment;
If the priority assignment of the message to be shown is sentenced greater than or equal to the priority assignment of the currently displaying messageWhether the type assignment of the message to be shown of breaking is identical with the type assignment of the currently displaying message;
If the type assignment of the message to be shown is identical with the type assignment of the currently displaying message, wait to show by describedShow that message, as the currently displaying message, is shown.
Preferably, in the type assignment for judging the type assignment of the message to be shown and the currently displaying message notAfter, also include:
Judge the currently displaying message whether comprising hiding attribute;
If the currently displaying message package contain the hiding attribute, judge the currently displaying message hiding attribute whetherMeet hide attribute it is pre-conditioned, wherein, the hiding attribute be the display time, the hiding attribute it is pre-conditioned for display whenBetween be worth;
If it is pre-conditioned that the hiding attribute of the currently displaying message meets the hiding attribute, currently displaying disappear describedBreath is hidden into the message queue as the old message;
Using the message to be shown as the currently displaying message, shown.
Preferably, after judging the currently displaying message not comprising the hiding attribute, also include:
Delete the currently displaying message;
Using the message to be shown as the currently displaying message, shown.
A kind of display device of message, including:
Receiver module, for receiving at least one new information in preset time period;
Priority assignment module, for carrying out assignment to the priority of new information each described using assignment storehouse, it is determined thatThe priority assignment of each new information;
First preserving module, the new information and the corresponding priority assignment of the new information for that will receive are stored inMessage queue;
First choice module, disappears as treating sequence for each described new information for being stored into the message queueBreath;
First descending arranges module, for according to the priority assignment that orders messages are treated each Suo Shu, to all describedTreat that orders messages carry out descending arrangement, obtain a message to be shown, the message to be shown is the row for the treatment of of sequence firstSequence message;
First judge module, for judging whether currently displaying message, the currently displaying message is to carry outThe message of display;
First display module, if in the absence of the currently displaying message, the message to be shown being worked as describedPreceding display message, is shown.
Preferably, described device also includes:
Second judge module, for the new information and the new information pair that will be received in first preserving moduleWhether the priority assignment answered is stored in after message queue, judges include at least one old message in the message queue, describedOld message is the message being stored in before the new information is stored in the message queue;
The first choice module, if not including the old message in being additionally operable to the message queue, is stored into described disappearingEach described new information in breath queue is used as treating orders messages;
Second selecting module, if for including the old message in the message queue, being stored into the message queueEach described old message and each described new information treat orders messages as described;
First descending arranges module, is additionally operable to every in second selecting module is stored into the message queueOne old message and each described new information as it is described treat orders messages after, according to treating that sequence disappears each Suo ShuThe priority assignment of breath, to treating that orders messages carry out descending arrangement described in whole, obtains a message to be shown.
Preferably, described device also includes:
Type assignment module, for the priority assignment module using assignment storehouse to each described new information it is excellentFirst level carries out assignment, after determining the priority assignment of each new information, using the assignment storehouse to described in eachThe type of new information carries out assignment, determines the type assignment of each new information;
Second preserving module, for the new information that will be received, the corresponding priority assignment of the new information and instituteState type assignment and be stored in the message queue;
3rd selecting module, disappears as treating sequence for each described new information for being stored into the message queueBreath;
Classification of type module, for using the type assignment that orders messages are treated described in whole, to treating that sequence disappears described in wholeBreath carries out classification of type, generates at least one classification of type group;
Second descending arranges module, for treated described in the whole that includes each described classification of type group orders messages byDescending arrangement is carried out according to the priority assignment, obtains that each described classification of type group is each self-corresponding initial to be shown to disappearBreath, wherein, the initial message to be shown is that the described of arrangement first treats orders messages in the classification of type group;
3rd descending arranges module, for all initial message to be shown to be dropped according to the priority assignmentSequence is arranged, and obtains the message to be shown;
First judge module, being additionally operable to will whole initial message to be shown in the 3rd descending arrangement moduleDescending arrangement is carried out according to the priority assignment, is obtained after the message to be shown, judge whether currently displaying disappearingBreath.
Preferably, described device also includes:
3rd judge module, if for there is the currently displaying message, judging that the priority of the message to be shown is assignedValue whether greater than or equal to the currently displaying message priority assignment;
4th judge module, if currently displaying disappearing greater than or equal to described for the priority assignment of the message to be shownThe priority assignment of breath, judge the message to be shown type assignment whether the type assignment phase with the currently displaying messageTogether;
Second display module, if being assigned with the type of the currently displaying message for the type assignment of the message to be shownValue is identical, and the message to be shown as the currently displaying message is shown.
Preferably, described device also includes:
5th judge module, if being assigned with the type of the currently displaying message for the type assignment of the message to be shownWhether value is different, judge the currently displaying message comprising hiding attribute;
6th judge module, if containing the hiding attribute for the currently displaying message package, judges described currently displayingIt is pre-conditioned whether the hiding attribute of message meets hiding attribute, wherein, the hiding attribute is display time, the hiding categoryProperty it is pre-conditioned be display time value;
Hidden module, if to meet the hiding attribute pre-conditioned for the hiding attribute of the currently displaying message, willThe currently displaying message is hidden into the message queue as the old message;
3rd display module, using the currently displaying message as the old message, hides in the hidden moduleTo after the message queue, the message to be shown as the currently displaying message is shown.
Preferably, described device also includes:
Removing module, if not including the hiding attribute for the currently displaying message, deletes described currently displaying disappearBreath;
4th display module, after deleting the currently displaying message in the removing module, will be described to be shownMessage is shown as the currently displaying message.
Understood via above-mentioned technical scheme, compared with prior art, the invention provides a kind of display methods of messageAnd device, message queue is stored in by each new information that priority assignment will be determined, can be conveniently follow-up to all newMessage quickly carries out display sorting operation, orders messages is treated using each new information as one, according to excellent in message queueFirst level assignment carries out descending arrangement, can treat that mostly important one is selected in orders messages treats orders messages conduct from multipleThe follow-up message to be shown for preferentially being shown, so that the message that user shows to current page carries out operation treatment, it is seen then that profitDescending arrangement is carried out with the priority assignment for treating orders messages, to determine a message to be shown as follow-up preferential displayMessage, it is possible to prevente effectively from the problem that message overlaps display occurs, and then on the basis of Page messages display number is ensured, it is realThe purpose that user is processed more important message prioritization is showed.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not madeEmbodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of display methods of message, accompanying drawing 1 is referred to, methods described specifically includes followingStep:
S101:Receive at least one new information in preset time period;
Specifically, by the electronic equipment that user is held may install multiple application programs, accordingly, electronic equipment meetingThe related notification message that these application programs each send successively is received, to notify user, therefore, electronic equipment can be at certainOne or more notification messages sent by different application are received in one preset time period, that is, receives Preset TimeAt least one new information in section, subsequently to carry out selection display operation from the whole new informations for receiving, wherein, presetTime period can be received according to electronic equipment and the time value needed for showing message pre-sets, such as 1s.
The electronic equipment that user is held including but not limited to desktop computer, smart mobile phone, panel computer etc..
The application program this programme installed on electronic equipment is not limited, and can be mobile phone house keeper, short breath, weather, micro-Letter etc..
S102:Assignment is carried out to the priority of new information each described using assignment storehouse, determines that each described newly disappearsThe priority assignment of breath;
Specifically, assignment storehouse involved in the embodiment of the present invention can pre-build, main storage messageAttribute assignment, such as priority assignment, for carrying out related assignment operation to its attribute priority in the new information for receiving.LiftExample explanation, it is right respectively using assignment storehouse if electronic equipment receives " network is not connected with " and " version updating " two new informationsThe priority of the two new informations carries out assignment, and the priority assignment for obtaining " network is not connected with " is " one-level ", and " version is morePriority assignment newly " is " two grades ", so that the priority assignment subsequently according to each new information is carried out to multiple new informationsSorting operation.
Wherein, the priority assignment in assignment storehouse have with the incidence relation between corresponding message so that by receiveTo new information the priority assignment that there is incidence relation with the new information can be determined from assignment storehouse.
S103:The new information and the corresponding priority assignment of the new information that will be received are stored in message queue;
Specifically, in order to improve the follow-up operating efficiency that whole new informations are ranked up with operation, message team can be usedArrange to store by the priority assignment corresponding to each new information and new information of gained after attribute assignment.
S104:Each the described new information being stored into the message queue as treating orders messages, and according to eachThe individual priority assignment for treating orders messages, to treating that orders messages carry out descending arrangement described in whole, acquisition one is to be shownMessage, the message to be shown is that the described of sequence first treats orders messages;
Specifically, in order to solve to cause the hair of message overlap problem because the message of display simultaneously on electronic equipment is excessiveIt is raw, electronic equipment can be made only to show a message every time, it is so that user carries out operation treatment but shown to ensure every timeMessage is a mostly important message in the whole new informations for receiving, and can combine priority assignment this factorOn the basis of, the whole to being stored in message queue treats that orders messages are arranged according to descending, so as to obtain one be treated comprising wholeOrders messages are treated all to treat that sequence disappears in first order position in the message queue of orders messages, the wherein message queueThe message that most should be preferentially shown during follow-up display in breath, i.e., message to be shown.
S105:Currently displaying message is judged whether, the currently displaying message is the message for being shown, ifIt is no, then perform S106;
Specifically, before the message to be shown that will have been carried out descending arrangement in electronic equipment and obtained is shown,Also need to judge in current electronic device whether the existing message for showing, show so as to avoid the occurrence of two overlaps of messageAs to influence user to the operating experience and efficiency of message.
S106:Using the message to be shown as the currently displaying message, shown;
Specifically, if electronic equipment does not show any message currently to user, directly by sort obtain it is to be shownMessage is shown, so that user carries out associative operation treatment to it in time.
Message display mode this programme on an electronic device is not limited, and can be shown message in the form of prompting frameShow to user, or message is shown to user in the form of suspended frame.
A kind of display methods of the message disclosed in the embodiment of the present invention, by by determine priority assignment eachNew information is stored in message queue, conveniently subsequently can quickly carry out display sorting operation to whole new informations, and each is newly disappearedBreath treats orders messages as one, and descending arrangement is carried out according to priority assignment in message queue, can wait to sort from multipleMostly important one is selected in message and treats orders messages as the message to be shown for subsequently preferentially being shown, so as to userThe message shown to current page carries out operation treatment, it is seen then that carry out descending arrangement using the priority assignment for treating orders messages,To determine a message to be shown as the message of follow-up preferential display, it is possible to prevente effectively from message overlaps the problem hair of displayIt is raw, and then on the basis of Page messages display number is ensured, realize user and more important message prioritization is processedPurpose.
On the basis of embodiment corresponding to above-mentioned Fig. 1, the embodiment of the invention discloses the display methods of another message,Accompanying drawing 2 is referred to, methods described specifically includes following steps:
S201:Receive at least one new information in preset time period.
S202:Assignment is carried out to the priority of new information each described using assignment storehouse, determines that each described newly disappearsThe priority assignment of breath.
S203:The new information and the corresponding priority assignment of the new information that will be received are stored in message queue.
S204:Whether judge in the message queue comprising at least one old message, the old message is newly to disappear describedBreath is stored in the message being stored in before the message queue, if it is not, S205 is then performed, if so, then performing S206;
Specifically, electronic equipment can constantly receive new information in normal operation, and in same message queueOperation is ranked up to each whole new informations for receiving, produced by this minor sort is to be shown to disappear so as to selectThe new information that residue is not shown after breath, but every minor sort may be remained stored in the message queue, therefore in order to improve messageThe utilization rate of the message of storage before in queue, can be every time by whole new informations, the type assignment and new information of new informationPriority assignment be stored in after message queue, to before whether being stored in message queue by one or many sorting operationWhether produced message is judged afterwards, that is to say, that to judging comprising at least one old message in message queue, fromAnd effectively prevent the waste of message source.
S205:Each the described new information being stored into the message queue performs S207 as treating orders messages;
If specifically, not including any old message in judging message queue, being treated each new information as oneOrders messages, in participating in follow-up descending alignment processes.
S206:Each the described old message being stored into the message queue and each described new information are used as describedOrders messages are treated, and performs S207;
If specifically, comprising one or more old message in judging message queue, by each Geju City message and eachIndividual new information treats orders messages as one, in participating in follow-up descending alignment processes.
S207:According to the priority assignment that orders messages are treated each Suo Shu, to treating that orders messages drop described in wholeSequence is arranged, and obtains a message to be shown, and the message to be shown is that the described of sequence first treats orders messages, and is performedS208。
S208:Currently displaying message is judged whether, the currently displaying message is the message for being shown, ifIt is no, then perform S209.
S209:Using the message to be shown as the currently displaying message, shown.
The display methods of a kind of message disclosed in the embodiment of the present invention, by judging there is old disappearing in message queueDuring breath, each Geju City message and each new information are participated in follow-up descending arrangement and operated as treating orders messages, can be withThe waste of message queue memory storage resource is prevented effectively from, more meeting user priority with the message to be shown of season final gained wantsThe message seen.
On the basis of embodiment corresponding to above-mentioned Fig. 1, the embodiment of the invention discloses the display methods of another message,Accompanying drawing 3 is referred to, methods described specifically includes following steps:
S301:Receive at least one new information in preset time period.
S302:Assignment is carried out to the priority of new information each described using assignment storehouse, determines that each described newly disappearsThe priority assignment of breath.
S303:Assignment is carried out to the type of new information each described using the assignment storehouse, determines that each is described newThe type assignment of message;
Specifically, the operating efficiency in order to improve descending arrangement, can carry out priority tax to each new informationAfter value, then each new information classified according to affiliated type respectively, that is to say, that new to each using assignment storehouseThe type of message carries out assignment, to determine the type assignment of each new information.If for example, electronic equipment is received" network is not connected with " and " version updating " two new informations, wherein, the priority assignment of " network is not connected with " is " one-level ", " versionThe priority assignment of this renewal " is " two grades ", now, reuses assignment storehouse respectively to " network is not connected with " and " version updating "The two new informations carry out type assignment, and the type assignment for obtaining " network is not connected with " is " network state type ", and " version is moreType assignment newly " is " application version Status Type ", so as to subsequently by the type assignment of each new information and preferentiallyLevel assignment is ranked up operation as order standard to multiple new informations.
Wherein, the type assignment in assignment storehouse have with the incidence relation between corresponding message so that by receivingNew information the type assignment that there is incidence relation with the new information can be determined from assignment storehouse.
S304:The new information that will be received, the corresponding priority assignment of new information and the type assignment are depositedEnter the message queue;
Specifically, in order to improve the follow-up operating efficiency that whole new informations are ranked up with operation, message team can be usedThe type to store by each new information, the priority assignment of new information and new information of gained after attribute assignment is arranged to assignValue.
S305:Each the described new information being stored into the message queue as treating orders messages, and using allThe type assignment for treating orders messages, to treating that orders messages carry out classification of type, generation at least one type point described in wholeClass group;
Specifically, needed for determining this sorting operation treat orders messages after, treat orders messages according to eachType assignment be grouped so that obtaining the whole for including treats that orders messages belong to same type of one or more typesSorted group, subsequently can be again ranked up screening for each classification of type group, quickly determines initial to be shownMessage.
If for example, message queue memory storage treats that orders messages are respectively:" network is not connected with ", " program unauthorizedViewing ", " network signal is good ", wherein, the type assignment of " network is not connected with " is " network state type ", " program unauthorizedThe type assignment of viewing " is " viewed status type ", and the type assignment of " network signal is good " is " network state type ", then rightThese three treat that orders messages carry out classification of type, can obtain a class comprising " network is not connected with " and " network signal is good "Type sorted group A, and a classification of type group B comprising " viewing of program unauthorized ".
S306:Treat orders messages according to the priority assignment described in the whole that each described classification of type group is includedDescending arrangement is carried out, each described each self-corresponding initial message to be shown of classification of type group is obtained, wherein, it is described initially to treatDisplay message is that the described of arrangement first in the classification of type group treats orders messages;
Specifically, the efficiency of initial message to be shown is obtained to improve, each the classification of type group that will can be generatedAll treat that the priority assignment of orders messages carries out descending arrangement again according to contained in it, and then obtain each classification of typeOrders messages are treated in first order position in group, i.e., initial message to be shown is realized from the same type of whole of ownershipTreat that priority assignment highest one is filtered out in orders messages treats purpose of the orders messages as initial message to be shown, after beingIt is continuous to filter out message to be shown and provide the foundation data, while reducing the time for obtaining message to be shown.
Still it is with the classification of type group for obtaining:Classification of type group A comprising " network is not connected with " and " network signal is good ",And be specifically addressed as a example by the classification of type group B comprising " viewing of program unauthorized ", wherein, " network be not connected with " it is preferentialLevel is entered as " one-level ", and the priority assignment of " network signal is good " is " two grades ", then the whole to classification of type group A is waited to sortMessage carries out descending arrangement according to priority assignment, and the message initial to be shown of acquisition is " network is not connected with ", " program unauthorizedThe priority assignment of viewing " is " two grades ", then the whole to classification of type group B treats that orders messages drop according to priority assignmentSequence is arranged, and the message initial to be shown of acquisition is " viewing of program unauthorized ", so as to carry out descending for two classification of type groupsTwo initial message to be shown are obtained after arrangement.
S307:All initial message to be shown is carried out into descending arrangement according to the priority assignment, obtains describedMessage to be shown;
Specifically, after a corresponding initial message to be shown is filtered out from each classification of type group internal sort,All initial message to be shown to obtaining carries out descending operation again, and will disappear in the initial to be shown of first order positionBreath is used as message to be shown, so that on the basis of combining of both type assignment and priority assignment, Integrated Selection goes outOne message to be shown, to meet the purpose that user wants the more important and urgent message of priority treatment.
Still carried out so that the message initial to be shown for obtaining is " network is not connected with " and " viewing of program unauthorized " as an example specificIllustrate, wherein, the priority assignment of " network is not connected with " is " one-level ", and the priority assignment of " viewing of program unauthorized " is " twoLevel ", to " network is not connected with " and " viewing of program unauthorized ", the two initial message to be shown are entered according to priority assignment againRow descending sort, can be using priority assignment " network is not connected with " higher as the final message to be shown for obtaining.
S308:Currently displaying message is judged whether, the currently displaying message is the message for being shown, ifIt is no, then perform S309.
S309:Using the message to be shown as the currently displaying message, shown.
A kind of display methods of the message disclosed in the embodiment of the present invention, treats that sequence disappears by whole in message queueBreath first carries out classification of type, then carries out descending arrangement according to priority assignment respectively to sorted each classification of type group,The time for obtaining initial message to be shown can be reduced, improved indirectly and the efficiency for obtaining message to be shown is arranged by descending, andAll initial message to be shown is carried out into descending arrangement again according to priority assignment, the message to be shown of final acquisition can be madeMore meet the more important and urgent message that user wants priority treatment.
On the basis of embodiment corresponding to above-mentioned Fig. 3, the embodiment of the invention discloses the display methods of another message,Accompanying drawing 4 is referred to, methods described specifically includes following steps:
S401:Receive at least one new information in preset time period.
S402:Assignment is carried out to the priority of new information each described using assignment storehouse, determines that each described newly disappearsThe priority assignment of breath.
S403:Assignment is carried out to the type of new information each described using the assignment storehouse, determines that each is described newThe type assignment of message.
S404:The new information that will be received, the corresponding priority assignment of new information and the type assignment are depositedEnter the message queue.
S405:Each the described new information being stored into the message queue as treating orders messages, and using allThe type assignment for treating orders messages, to treating that orders messages carry out classification of type, generation at least one type point described in wholeClass group.
S406:Treat orders messages according to the priority assignment described in the whole that each described classification of type group is includedDescending arrangement is carried out, each described each self-corresponding initial message to be shown of classification of type group is obtained, wherein, it is described initially to treatDisplay message is that the described of arrangement first in the classification of type group treats orders messages.
S407:All initial message to be shown is carried out into descending arrangement according to the priority assignment, obtains describedMessage to be shown.
S408:Currently displaying message is judged whether, the currently displaying message is the message for being shown, ifIt is no, then S409 is performed, if so, then performing S4010.
S409:Using the message to be shown as the currently displaying message, shown.
S4010:Judge the priority assignment of the message to be shown whether greater than or equal to the currently displaying messagePriority assignment, if so, then performing S4011;
If specifically, judging that electronic equipment is currently displaying a certain message, that is, there is currently displaying message, then needThe priority assignment of message to be shown is compared with the priority assignment of currently displaying message, and is judging to be shown disappearingWhen the priority assignment of breath is higher, proceed the replacement display operation of follow-up correlation, and judge currently displaying messageWhen priority assignment is higher, then electronic equipment continues to show currently displaying message.If judge message to be shown with it is currently displayingWhen the priority assignment of message is identical, then the newest message of preferential dispaly state, now, continues to carry out replacing for follow-up correlationChange display operation.
S4011:Judge the message to be shown type assignment whether the type assignment phase with the currently displaying messageTogether, if so, then performing S4012, if it is not, then performing S4013;
Specifically, before the priority assignment of the priority assignment greater than or equal to currently displaying message of message to be shownPut, if message to be shown belongs to different type with currently displaying message, can not directly be replaced display, therefore, alsoWhether needs are further identical with the type assignment of currently displaying message to message to be shown to judge.
S4012:Using the message to be shown as the currently displaying message, shown;
If specifically, the priority assignment of message to be shown is higher than the priority assignment of currently displaying message and to be shownMessage is identical with the type assignment of currently displaying message, then prove that message to be shown should be shown prior to currently displaying messageTo user, so as to perform replacement display operation, message to be shown as newest currently displaying message is shown.
S4013:Whether the currently displaying message is judged comprising hiding attribute, if so, S4014 is then performed, if it is not, then holdingRow S4015;
Specifically, the hiding attribute of currently displaying message can be pre-set by assignment storehouse, attribute this programme is hiddenDo not limit, can be display time of the currently displaying message on electronic equipment screen.
S4014:Judging the hiding attribute of the currently displaying message, whether to meet hiding attribute pre-conditioned, if so, thenPerform S4016;
Specifically, it is the bar set according to attribute is hidden that hiding attribute involved by the embodiment of the present invention is pre-conditionedPart, it is " display time " for example to hide attribute, then corresponding hiding attribute is pre-conditioned can be set as " display 10s ".
Wherein, hide that attribute is pre-conditioned can be pre-set by assignment storehouse.
S4015:The currently displaying message is deleted, and performs S4017;
If specifically, currently displaying message does not include hides attribute, can be shown by deleting currently displaying messagePriority other types message higher.
S4016:Using the currently displaying message as the old message, the message queue is hidden into, and performS4018;
If for example, the hiding attribute that currently displaying message package contains is " display time ", and it is pre-conditioned to hide attributeIt is " display 8s ", then the timing since currently displaying message carries out display on electronic equipment screen, and is reached in timing timeAfter 8s, judging the hiding attribute of currently displaying message, to meet hiding attribute pre-conditioned, now, is hidden into message queueIn, as a message source in next descending alignment processes.
S4017:Using the message to be shown as the currently displaying message, shown.
S4018:Using the message to be shown as the currently displaying message, shown.
A kind of display methods of the message disclosed in the embodiment of the present invention, by judge to exist currently displaying message itAfterwards, successively in terms of priority assignment and type assignment two, message to be shown and currently displaying message are compared, can be with standardReally know whether message to be shown should be shown prior to currently displaying message, disappear for of interest so as to meet userThe preferential demand checked of breath, and judging the priority assignment of the priority assignment than currently displaying message of message to be shownHeight, but message to be shown it is different from the type assignment of currently displaying message when, to currently displaying message whether comprising hide attributeJudged, can know currently displaying message whether can automatic hidden, to complete that the replacement of message to be shown is shownOperation, and in the case where currently displaying message does not include and hides attribute, realize replacing aobvious by performing deletion action in timeThe purpose shown, display is overlapped to be prevented effectively from message.
The embodiment of the invention discloses a kind of display device of message, accompanying drawing 5 is referred to, described device includes:
Receiver module 501, for receiving at least one new information in preset time period;
Priority assignment module 502, for carrying out assignment to the priority of new information each described using assignment storehouse, reallyThe priority assignment of fixed each new information;
First preserving module 503, for the new information and the corresponding priority assignment of the new information that will receiveIt is stored in message queue;
First choice module 504, for each described new information for being stored into the message queue as waiting to sortMessage;
First descending arranges module 505, for according to the priority assignment that orders messages are treated each Suo Shu, to whole institutesState and treat that orders messages carry out descending arrangement, obtain a message to be shown, the message to be shown is that the described of sequence first is treatedOrders messages;
First judge module 506, for judging whether currently displaying message, the currently displaying message is to enterThe message of row display;
First display module 507, if in the absence of the currently displaying message, using the message to be shown as describedCurrently displaying message, is shown.
A kind of display device of the message disclosed in the embodiment of the present invention, will be by priority by the first preserving module 503Each new information that assignment module 502 has carried out attribute assignment is stored in message queue, can be conveniently follow-up to whole new informationsQuick to carry out display sorting operation, the first descending arrangement module 505 is treated each new information as one orders messages, is being disappearedDescending arrangement is carried out according to priority assignment in breath queue, can treat to select mostly important one in orders messages from multipleOrders messages are treated as the message to be shown for subsequently preferentially being shown, so that user grasps to the message that current page showsDeal with, it is seen then that carry out descending arrangement using the priority assignment for treating orders messages, using determine a message to be shown asThe message of follow-up preferential display, it is possible to prevente effectively from the problem that message overlaps display occurs, and then is ensuring that Page messages showOn the basis of number, the purpose that user is processed more important message prioritization is realized.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 1, toolBody running process is repeated no more.
On the basis of embodiment corresponding to above-mentioned Fig. 5, the embodiment of the invention discloses the display device of another message,Accompanying drawing 6 is referred to, described device includes:
Receiver module 501, priority assignment module 502, the first preserving module 503, first choice module 504, the first dropSequence arranges module 505, the first judge module 506, the first display module 507, the second judge module 508, the second selecting module509;
Wherein, second judge module 508, for described newly disappearing what is received in first preserving module 503Whether breath priority assignment corresponding with the new information is stored in after message queue, judges included at least in the message queueOne Geju City message, the old message is the message being stored in before the new information is stored in the message queue;
The first choice module 504, if not including the old message in being additionally operable to the message queue, is stored into describedEach described new information in message queue is used as treating orders messages;
Second selecting module 509, if for including the old message in the message queue, being stored into the messageEach described old message and each described new information in queue treat orders messages as described;
First descending arranges module 505, is additionally operable to be stored into the message queue in second selecting module 509In each described old message and each described new information as it is described treat orders messages after, treated according to each Suo ShuThe priority assignment of orders messages, to treating that orders messages carry out descending arrangement described in whole, obtains a message to be shown.
A kind of display device of the message disclosed in the embodiment of the present invention, judges to disappear by the first judge module 506, in old message, the second selecting module 509 is using each Geju City message and each new information as waiting to sort for breath queuing memoryMessage participates in follow-up descending arrangement operation, it is possible to prevente effectively from the waste of message queue memory storage resource, with season final instituteThe message to be shown for obtaining more meets the message that user priority is wanted to see.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 2, toolBody running process is repeated no more.
On the basis of embodiment corresponding to above-mentioned Fig. 5, the embodiment of the invention discloses the display device of another message,Accompanying drawing 7 is referred to, described device includes:
Receiver module 501, priority assignment module 502, the first judge module 506, the first display module 507, type is assignedValue module 5010, the second preserving module 5011, the 3rd selecting module 5012, classification of type module 5013, the second descending arrangement mouldBlock 5014, the 3rd descending arrangement module 5015;
Wherein, the type assignment module 5010, for utilizing assignment storehouse to each in the priority assignment module 502The priority of the individual new information carries out assignment, after determining the priority assignment of each new information, using the taxValue storehouse carries out assignment to the type of new information each described, determines the type assignment of each new information;
Second preserving module 5011, for the new information that will be received, the corresponding priority assignment of the new informationThe message queue is stored in the type assignment;
3rd selecting module 5012, for each described new information for being stored into the message queue as waiting to sortMessage;
Classification of type module 5013, for using the type assignment that orders messages are treated described in whole, to the row for the treatment of described in wholeSequence message carries out classification of type, generates at least one classification of type group;
Second descending arranges module 5014, for treating that sequence disappears described in the whole that includes each described classification of type groupBreath carries out descending arrangement according to the priority assignment, obtains each described classification of type group each self-corresponding initial to be shownMessage, wherein, the initial message to be shown is that the described of arrangement first treats orders messages in the classification of type group;
3rd descending arranges module 5015, for all initial message to be shown to be entered according to the priority assignmentRow descending is arranged, and obtains the message to be shown;
First judge module 506, is additionally operable to initially be treated all described in the 3rd descending arrangement module 5015Display message carries out descending arrangement according to the priority assignment, obtains after the message to be shown, judges whether to work asPreceding display message.
The display device of a kind of message disclosed in the embodiment of the present invention, by classification of type module 5013 to message queueIt is interior it is whole treat that orders messages first carry out classification of type, then module 5014 is arranged to sorted each type by the second descendingSorted group carries out descending arrangement according to priority assignment respectively, can reduce the time for obtaining initial message to be shown, carries indirectlyThe arrangement of high pass descending obtains the efficiency of message to be shown, and the 3rd descending arrangement module 5015 will whole initial message to be shownDescending arrangement is carried out again according to priority assignment, the message to be shown of final acquisition can be made more to meet user and wanted preferential placeThe more important and urgent message of reason.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 3, toolBody running process is repeated no more.
On the basis of embodiment corresponding to above-mentioned Fig. 7, the embodiment of the invention discloses the display device of another message,Accompanying drawing 8 is referred to, described device includes:
Receiver module 501, priority assignment module 502, the first judge module 506, the first display module 507, type is assignedValue module 5010, the second preserving module 5011, the 3rd selecting module 5012, classification of type module 5013, the second descending arrangement mouldBlock 5014, the 3rd descending arrangement module 5015, the 3rd judge module 5016, the 4th judge module 5017, the second display module5018, the 5th judge module 5019, the 6th judge module 5020, hidden module 5021, the 3rd display module 5022, removing module5023, the 4th display module 5024;
Wherein, the 3rd judge module 5016, if for there is the currently displaying message, judging described to be shown disappearThe priority assignment of breath whether greater than or equal to the currently displaying message priority assignment;
4th judge module 5017, if current aobvious greater than or equal to described for the priority assignment of the message to be shownShow the priority assignment of message, judge whether the type assignment of the message to be shown is assigned with the type of the currently displaying messageValue is identical;
Second display module 5018, if the class of type assignment and the currently displaying message for the message to be shownType assignment is identical, and the message to be shown as the currently displaying message is shown;
5th judge module 5019, if the class of type assignment and the currently displaying message for the message to be shownWhether type assignment is different, judge the currently displaying message comprising hiding attribute;
6th judge module 5020, if containing the hiding attribute for the currently displaying message package, judges described currentShowing the hiding attribute of message, whether to meet hiding attribute pre-conditioned, wherein, the hiding attribute is the display time, described hiddenIt is display time value to hide attribute pre-conditioned;
Hidden module 5021, if meeting the default bar of the hiding attribute for the hiding attribute of the currently displaying messagePart, using the currently displaying message as the old message, is hidden into the message queue;
3rd display module 5022, for the currently displaying message old to disappear as described in the hidden module 5021Breath, is hidden into after the message queue, and the message to be shown as the currently displaying message is shown;
Removing module 5023, if not including the hiding attribute for the currently displaying message, deletes described current aobviousShow message;
4th display module 5024, after deleting the currently displaying message in the removing module 5023, by instituteMessage to be shown is stated as the currently displaying message, is shown.
A kind of display device of the message disclosed in the embodiment of the present invention, judges to deposit by the first judge module 506After currently displaying message, by the 3rd judge module 5016, the 4th judge module 5017 successively from priority assignment and typeThe aspect of assignment two, is compared to message to be shown and currently displaying message, can accurately know that whether message to be shown shouldShown prior to currently displaying message, so as to meet user for the demand that message prioritization of interest is checked, and sentencedBreak message to be shown priority assignment it is higher than the priority assignment of currently displaying message, but message to be shown with it is currently displayingWhen the type assignment of message is different, whether the 5th judge module 5019 judges currently displaying message comprising hiding attribute,Can know currently displaying message whether can automatic hidden, to be completed to message to be shown by the 3rd display module 5022Display operation is replaced, and in the case where currently displaying message does not include and hides attribute, is performed in time using removing module 5023Deletion action, so that the 4th display module 5024 realizes replacing the purpose of display, display is overlapped to be prevented effectively from message.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 4, toolBody running process is repeated no more.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention.Various modifications to these embodiments will be apparent for those skilled in the art, as defined hereinGeneral Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present inventionThe embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase oneThe scope most wide for causing.