CN107423143A - Communication management method and system between a kind of floating layer - Google Patents
Communication management method and system between a kind of floating layer Download PDFInfo
- Publication number
- CN107423143A CN107423143A CN201710516149.9A CN201710516149A CN107423143A CN 107423143 A CN107423143 A CN 107423143A CN 201710516149 A CN201710516149 A CN 201710516149A CN 107423143 A CN107423143 A CN 107423143A
- Authority
- CN
- China
- Prior art keywords
- floating layer
- message
- view
- floating
- view elements
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8193—Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The present invention provides communication management method and system between a kind of floating layer, and described method includes:S1, it is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is used to be managed collectively each floating layer;S2, when a floating layer sends first message to another floating layer, the first message in a floating layer is passed into another floating layer by way of floating layer manager is forwarded.The present invention is that each floating layer on the player interface in live field configures a floating layer manager, and the configuration view controller inside each floating layer, realized by floating layer manager and view controller and layering orderly management is carried out to the communication between each floating layer and between each view elements, solve the confusion of existing management, improve the maintainability and autgmentability of code.
Description
Technical field
Communication technical field of the present invention, more particularly, to communication management method and system between a kind of floating layer.
Background technology
The live software of Android platform client has very more floating layers when player interface at present, is developing
During, need to be communicated between floating layer, traditional communication means be by open source projects EventBus come realize floating layer with
Between player, the communication between floating layer and floating layer.
The defects of EventBus maximums is that transmitting terminal is not aware that receiving terminal is somewhere to be received, that is,
Say that only developer oneself just knows and somewhere have sent an event, carry out receiving the event in another place, so,
When changing a developer to track the code may if can not understand the purpose that former developer writes, so result in
Program can not be safeguarded.
Simultaneously because the random transmission of message system, can not uniformly be managed to message, such message is in internal system
Run helter-skelter, it is easy to the problems such as causing information drop-out and can not safeguarding.
The content of the invention
The present invention provides telecommunication management between a kind of floating layer for overcoming above mentioned problem or solving the above problems at least in part
Method and system, the problem of overcoming telecommunication management confusion between existing floating layer.
According to an aspect of the invention, there is provided communication management method between a kind of floating layer, including:
S1, it is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is used to be managed collectively
Each floating layer;
S2, when a floating layer sends first message to another floating layer, by way of floating layer manager is forwarded
First message in one floating layer is passed into another floating layer.
Beneficial effects of the present invention are:A floating layer pipe is configured for each floating layer on the player interface in live field
Device, and the configuration view controller inside each floating layer are managed, is realized by floating layer manager and view controller to each floating
Communication between layer and between each view elements carries out layering orderly management, the confusion for solving existing management, improves
The maintainability and autgmentability of code.
On the basis of above-mentioned technical proposal, the present invention can also improve as follows.
Further, first in a floating layer is disappeared by way of floating layer manager is forwarded in the step S2
Breath, which passes to another floating layer, to be included:
Floating layer manager receives the first message that source floating layer is sent, wherein, the first message includes at least one mesh
Floating layer ID and first message content;
At least one purpose floating layer ID in the first message, the first message content is transmitted to purpose and floated
Floating layer corresponding to layer ID.
Further, multiple view elements are placed in each described floating layer, in addition to:
In each floating layer, for multiple view elements configuration view controllers in the floating layer;
When a view elements in same floating layer send the second message to another view elements, pass through the floating layer
The mode of interior view controller forwarding gives the second message transmission in a view elements to another view elements.
Further, by second in a view elements by way of the view controller in the floating layer forwards
Message transmission includes to another view elements:
View controller receives the second message that source view elements are sent, wherein, second message includes at least one
Individual purpose view elements ID and the second message content;
At least one purpose view elements ID in second message, second message content is transmitted to mesh
View elements ID corresponding to view elements.
Further, in addition to:
When view elements of the view elements in a floating layer into another floating layer send three message, pass through floating layer
The mode that manager and view controller forward jointly realizes the message transmission between different floating layer internal view elements.
Further, described realized by way of floating layer manager and view controller forward jointly in different floating layers regards
Message transmission between pel element includes:
Source view controller in the floating layer of source receives the 3rd message that the source view elements in the floating layer of source are sent, and by described in
3rd message is transmitted to floating layer controller, wherein, the 3rd message includes at least one purpose floating layer ID, at least one purpose
View elements ID and the 3rd message content;
At least one purpose floating layer ID of the floating layer controller in the 3rd message, the 3rd message content is turned
Issue the view controller in floating layer corresponding to purpose floating layer ID;
According at least one purpose view elements ID in the 3rd message, view controller in purpose floating layer is by institute
State the 3rd message content and be transmitted to view elements corresponding to purpose view elements ID.
Further, in addition to:
The interface defined in floating layer manager, and define two interface functions respectively in the interface, realize connect respectively
Message that receipts source floating layer is sent and to purpose floating layer dispatch messages;And
Interface defined in view controller in floating layer, and two functions defined in the interface, realize connect respectively
Receive the message of floating layer controller forwarding and the view elements dispatch messages into the floating layer.
According to the second aspect of the invention, communications management system between a kind of floating layer is additionally provided, including:
Configuration module, for configuring floating layer manager for multiple floating layers on player interface, the floating layer manager is used
In each floating layer of unified management;
Message transmission module, for when a floating layer sends first message to another floating layer, passing through floating layer manager
First message in one floating layer is passed to another floating layer by the mode forwarded.
According to the third aspect of the invention we, the equipment for additionally providing communication management method between a kind of floating layer, including processor
(processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to
Order is able to carry out as above each implementation.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium storing program for executing is additionally provided, it is described non-transient
Computer-readable recording medium storage computer instruction, the computer instruction make the computer perform as above each embodiment party
Method.
Brief description of the drawings
Fig. 1 communication management method flow charts between the floating layer of one embodiment of the invention;
Fig. 2 communications management systems between the floating layer of another embodiment of the present invention connect block diagram;
Fig. 3 communications management systems between the floating layer of another embodiment of the invention are connected block diagram;
Fig. 4 is to connect block diagram in one embodiment of the invention inside floating layer manager;
Fig. 5 is to connect block diagram in another embodiment of the present invention inside view controller;
Fig. 6 equipment of communication management method between the floating layer of another embodiment of the invention connects block diagram.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below
Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Referring to Fig. 1, there is provided communication management method between the floating layer of one embodiment of the invention, it is right in net cast field
Communication between each floating layer on player interface, which is realized, is layered orderly management, it is possible to increase the maintainability of code and expansion
Malleability.This method includes:S1, it is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is used for
It is managed collectively each floating layer;S2, when a floating layer sends first message to another floating layer, turned by floating layer manager
First message in one floating layer is passed to another floating layer by the mode of hair.
Before the present embodiment is described in detail, to floating layer, this concept is introduced, Android platform client
The player interface of live software has many floating layers, and floating layer is exactly to be used to show other view members on player video flowing
The layer of element, such as, barrage message or animated element etc. can be placed in floating layer.On stream, needed between each floating layer
Communicated, it is random transmission message between floating layer and floating layer that traditional communication mode, which is, can not be managed collectively, when floating
When the quantity of layer is excessive, the communication between each floating layer is just very chaotic, and management is got up highly difficult.
Therefore, the present embodiment is that each floating layer configures a floating layer manager, and floating layer manager is mainly used to each floating
Layer is managed collectively.During floating layer is communicated with floating layer, it is managed collectively by floating layer manager, example
Such as, when a floating layer need to another floating layer send message when, realized by way of floating layer manager is forwarded by
Message transmission in one floating layer gives another floating layer.
By way of floating layer manager forwards to the message between floating layer, rather than directly sent out between each floating layer
Message is sent, the mode that message directly circulates between each floating layer, although transmission speed is fast, can so cause to disappear
The coupled relation of breath is intricate, and with the increase of type of message and the quantity of floating layer, complexity doubles into geometry, later stage geometry
It can not safeguard.Therefore, the present embodiment is realized between each floating layer by way of selection is forwarded using floating layer manager
Mutual communication, solve the confusion of existing management, improve the maintainability and autgmentability of code.
On the basis of above-described embodiment, in an alternative embodiment of the invention, pass through floating layer management in the step S2
First message in one floating layer is passed to another floating layer by the mode that device is forwarded to be included:Floating layer manager receives source and floated
The first message that layer is sent, wherein, the first message includes at least one purpose floating layer ID and first message content;According to
At least one purpose floating layer ID in the first message, the first message content is transmitted to corresponding to purpose floating layer ID and floated
Layer.
During the message communicating between two floating layers is realized by way of being forwarded floating layer manager, a floating layer to
Another floating layer carries out message transmission, for convenience of description, the floating layer for sending message is referred to as into source floating layer, will receive the floating layer of message
Referred to as purpose floating layer.When source floating layer sends message to purpose floating layer, the organizing messages in the floating layer of source, wherein, message includes
The specific message content that purpose floating layer ID and needs are sent.Here, it should be noted that a source floating layer can be to multiple mesh
Floating layer send message.After the floating layer tissue good news of source, floating layer manager is transmitted the message to, floating layer management receives message
Afterwards, message is parsed, parses at least one purpose floating layer ID therein and specific message content.According to what is parsed
Purpose floating layer ID, specific message content is transmitted to floating layer corresponding to purpose floating layer ID.
According to such scheme, it can be found that two-way circulation is carried out during message between floating layer and floating layer manager, therefore,
Design two passes are needed to come for communication between the two.In order to reduce between floating layer and floating layer manager on Software for Design
Coupled relation, select to carry out Coupling Design using the mode of interface protocol.It is fixed on floating layer manager according to this thought
One interface ISendMessage of justice, two interface functions is then devised in the interface, is pubic viod respectively
SendMsgToLayerManager (Object msg) and pubic viod sendMsgToLayer (int layer, Object
msg).This function of sendMsgToLayerManager is for the message in floating layer to be sent into one of floating layer manager
Functional based method, the purpose that wherein message body msg is designed as an Object type are for compatible any message, because in java
In, Object types are all types of parents, and according to the characteristic of object-oriented, parent can receive subclass object, are owned
Object objects can receive any subclass message object.
This function of sendMsgToLayer is made trouble, layer is represented mainly by functional based method of the message distribution to floating layer
Purpose floating layer, i.e., which floating layer message is sent to, msg represents to need the message body content sent, and the message body is also
Object types.
By two interface function sendMsgToLayerManager in the ISendMessage interfaces that define and
SendMsgToLayer, it is possible to realize the communication between floating layer and floating layer manager.
The communication management method between each floating layer is illustrated with specific example below.For example, floating layer
Layer1 will send messages to floating layer layer2 and be communicated, and whole communication process is:
The message transmission that organizing messages A is used between floating layer layer1 and floating layer manager in floating layer layer1, design
Message transmissions of the message B between floating layer manager and floating layer layer2.Wherein, message A includes purpose floating layer ID and needed
The specific message content to be sent.
When floating layer layer1 is by calling the interface function sendMsgToLayerManager of floating layer manager by message A
Floating layer manager is sent to, message A is parsed after floating layer manager receives message A, respectively obtains purpose floating layer ID
And message content, wherein, message content is above-mentioned described message B, and then floating layer manager passes through calling interface function
Specific message content is transmitted to floating layer layer2 by sendMsgToLayer, this completes message floating layer and floating layer it
Between circulation process.It should be noted that when purpose floating layer ID has multiple, floating layer manager is by the specific message content same time-division
Issue multiple purpose floating layers.
On the basis of above-mentioned each embodiment, placed in one embodiment of the present of invention, in each described floating layer more
Individual view elements, in addition to:In each floating layer, for multiple view elements configuration view controllers in the floating layer;When same
View elements in one floating layer to another view elements send the second message when, pass through the view control in the floating layer
The mode of device forwarding gives the second message transmission in a view elements to another view elements.
It is above-mentioned to have been described above having multiple floating layers in player interface, wherein, each floating layer is for multiple regard is presented
Pel element, be finally to show the view elements in floating layer during display, multiple views member in same floating layer
Between element and need to carry out message transmission.In order to effectively realize the communication between each view elements, the present embodiment is every
Multiple view elements in one floating layer configure a view controller, for being united to all view elements in the floating layer
One orderly management.
For the message transmission of multiple view elements in same floating layer, traditional mode be between view elements directly
Message transmission is carried out, so when view elements quantity is more, complexity is higher, and management is got up also more chaotic.
In order to be managed in order, in the present embodiment, when a view elements in same floating layer are sent out to another view elements
When sending message, realized the second message in a view elements by way of the forwarding of view controller in the floating layer
Another view elements is passed to, so by the view controller in the floating layer to the message transmission between each view elements
It is managed collectively, accomplishes orderly differentiated control, it is also not in confusion that management, which is got up,.
On the basis of the various embodiments described above, in an alternative embodiment of the invention, the view by the floating layer
The mode of controller forwarding includes the second message transmission in a view elements to another view elements:View controller
The second message that reception source view elements are sent, wherein, second message include at least one purpose view elements ID with
Second message content;
At least one purpose view elements ID in second message, second message content is transmitted to mesh
View elements ID corresponding to view elements.
During the message transmission between realizing the view elements in same floating layer, a view elements in floating layer
Message is sent to another view elements, for convenience of description, the view elements for sending message is referred to as source view elements, will be received
The view elements of message are referred to as purpose view elements.When source, view elements are needed to purpose view elements transmission message, in source
Organizing messages in view elements, wherein, message includes the specific message content that purpose view elements ID and needs are sent.Source regards
After pel element has organized message, view controller, purpose view member of the view controller in message are transmitted the message to
Plain ID, specific message content is transmitted to purpose view elements.
The principle of message transmission between above-mentioned different floating layers is similar, in order that obtaining the view controller energy of floating layer hiccup
Enough to be communicated with each view elements in the floating layer, the present embodiment is that view controller defines an interface
IInnerSendMessage interfaces, and two interface functions defined in the interface
SendMsgToInnerLayerManager and sendMsgToView.
Wherein, sendMsgToInnerLayerManager interface functions are called for view elements, by view elements
Message transmission to view controller, sendMsgToView interface functions be called for view controller, by message distribution
Give purpose view elements.
To carry out the communication process between each view elements in same floating layer with a specific example below
Explanation.If the view elements A in floating layer wants to post messages to view elements B, view elements A is by calling view control
SendMsgToInnerLayerManager interface functions in device processed, message is first sent to view controller, then view
Controller calls sendMsgToView interface functions that specific message content is distributed into purpose view elements, is so achieved that
The message transmission between different views element in same floating layer.
On the basis of the various embodiments described above, in one embodiment of the present of invention, in addition to:View in a floating layer
When view elements of the element into another floating layer send three message, forwarded jointly by floating layer manager and view controller
Mode realize message transmission between different floating layer internal view elements.
Above-described embodiment is described in detail in communication and same floating layer between different floating layers between different views element
Communication, the present embodiment emphasis introduces the communication between the view elements in different floating layers.For the view in a floating layer
When view elements of the element into another floating layer send message, i.e. the communication between the view elements of floating layer, the present embodiment
It is to coordinate, to complete, to realize the multi-zone supervision of communication by the view controller in floating layer manager and floating layer.
It is described by floating layer manager and to regard in an alternative embodiment of the invention on the basis of the various embodiments described above
The mode that figure controller forwards jointly realizes that the message transmission between different floating layer internal view elements includes:Source in the floating layer of source regards
Figure controller receives the 3rd message that the source view elements in the floating layer of source are sent, and the 3rd message is transmitted into floating layer control
Device, wherein, the 3rd message is included at least one purpose floating layer ID, at least one purpose view elements ID and the 3rd message
Hold;At least one purpose floating layer ID of the floating layer controller in the 3rd message, the 3rd message content is transmitted to
View controller in floating layer corresponding to purpose floating layer ID;According at least one purpose view elements in the 3rd message
3rd message content is transmitted to view member corresponding to purpose view elements ID by ID, the view controller in purpose floating layer
Element.
For the communication between the view elements in different floating layers, it is necessary to can be realized by forwarding twice.One floating
View elements of the view elements into another floating layer in layer send message, for convenience of description, will send the view member of message
It is called usually as source view elements, the view elements for receiving message is referred to as purpose view elements.When the source view elements in the floating layer of source
When needing the purpose view elements transmission message into purpose floating layer, message includes purpose floating layer ID, purpose view elements ID
And specific message content.Message is first sent to the view controller in the floating layer by former view elements, and view controller will
Message is sent to floating layer manager.After floating layer manager receives message, message is parsed, parse purpose floating layer ID,
Purpose view elements ID and specific message content.According to purpose floating layer ID, specific message content is transmitted in purpose floating layer
View controller, specific message content is then being transmitted to by purpose view according to purpose view elements ID, view controller
Element, so, just completed among the view elements of different floating layers by floating layer manager and the cooperative cooperating of view controller
Communication.
The communication process between the view elements of different floating layers is illustrated with specific example below, for example, it is desired to
The communication between the floating layer element b2 in the view elements a1 and floating layer layer2 in floating layer layer1 is completed, is now needed to use
Message is sent to floating layer layer1 by above-mentioned designed function sendMsgToInnerLayerManager from view elements a1
In view controller InnerLayerManager in, calling is then passed through by view controller InnerLaoutManager again
SendMsgToLayerManager methods are forwarded the message in floating layer manager layerManager, thus by floating layer
The message of the view elements of the bottom is sent to the floating layer manager layerManager of top.
Next need to complete is that floating layer controller progressively issues message, first by floating layer manager
Message in layerManager is by calling sendMsgToLayer functions, by message distribution to the view in floating layer layer2
In controller InnerLayerManager, then again by the sendMsgToView methods in floating layer layer2 by message distribution
Into view elements b2, this completes the message transmission that the view elements a1 in floating layer layer1 is sent to floating layer layer2
In view elements b2 processes.
The present embodiment is completed in the view elements of different floating layers by floating layer manager and the cooperative cooperating of view controller
Between communication, realize and be layered orderly management process, original complicated communication is separated, drastically increased out
Send out efficiency and cause the hierarchical relationship of software is simpler to understand.
Referring to Fig. 2, there is provided communications management system between the floating layer of one embodiment of the invention, including configuration module 21 and floating
Shelf manager 22.Wherein, configuration module 21, it is described floating for configuring floating layer manager for multiple floating layers on player interface
Shelf manager is used to be managed collectively each floating layer.
Floating layer manager 22, for when a floating layer to another floating layer send first message when, by way of forwarding
First message in one floating layer is passed into another floating layer.
Wherein, referring to Fig. 3, floating layer manager 22 further comprises the first receiving unit 221 and the first Dispatching Unit 221.
First receiving unit 221, the first message sent for receiving source floating layer, wherein, the first message includes at least one
Purpose floating layer ID and first message content;
First Dispatching Unit 222, at least one purpose floating layer ID in the first message, by described first
Message content is transmitted to floating layer corresponding to purpose floating layer ID.
Referring to Fig. 4, communications management system also includes view controller 23 between floating layer.Wherein, configuration module 21, it is additionally operable to
In each floating layer, for multiple view elements configuration view controllers 23 in the floating layer.
View controller 23, for sending second to another view elements when a view elements in same floating layer
During message, by the second message transmission in a view elements to another by way of the view controller forwarding in the floating layer
Individual view elements.
Referring to Fig. 5, view controller 23 further comprises the second receiving unit 231 and the second Dispatching Unit 232.Second connects
Unit 231 is received, the second message sent for receiving source view elements, wherein, second message includes at least one mesh
View elements ID and the second message content.
Second Dispatching Unit 232, at least one purpose view elements ID in second message, by described in
Second message content is transmitted to view elements corresponding to purpose view elements ID.
Wherein, when the view elements when the view elements in a floating layer into another floating layer send three message, lead to
Cross floating layer manager 22 and mode that view controller 23 forwards jointly realizes that the message between different floating layer internal view elements passes
Pass
The view controller 23, the 3rd message that the source view elements being additionally operable in the floating layer of reception source are sent, and by institute
State the 3rd message and be transmitted to floating layer controller 22, wherein, the 3rd message includes at least one purpose floating layer ID, at least one
Purpose view elements ID and the 3rd message content;And it is additionally operable at least one purpose view member in the 3rd message
Plain ID, the 3rd message content is transmitted to view elements corresponding to purpose view elements ID.
The floating layer controller 22 is additionally operable at least one purpose floating layer ID in the 3rd message, by described
Three message contents are transmitted to the view controller 23 in floating layer corresponding to purpose floating layer ID.
Fig. 6 shows the structured flowchart of the equipment of communication management method between the floating layer of the embodiment of the present application.
Reference picture 6, the equipment of communication management method includes between floating layer:Processor (processor) 601, memory
(memory) 602 and bus 603;Wherein, the processor 601 and memory 602 are completed mutual by the bus 603
Communication.
The processor 601 is used to call the programmed instruction in the memory 602, to perform above-mentioned each method embodiment
The method provided, such as including:Floating layer manager is configured for multiple floating layers on player interface, the floating layer manager is used
In each floating layer of unified management;
When a floating layer sends first message to another floating layer, by one by way of floating layer manager is forwarded
First message in individual floating layer passes to another floating layer.The present invention discloses a kind of computer program product, the computer program
Product includes the computer program being stored on non-transient computer readable storage medium storing program for executing, and the computer program refers to including program
Order, when programmed instruction is computer-executed, computer is able to carry out communication tube between the floating layer that above-mentioned corresponding embodiment is provided
Reason method, such as including:Floating layer manager is configured for multiple floating layers on player interface, the floating layer manager is used for unified
Manage each floating layer;When a floating layer sends first message to another floating layer, the side that is forwarded by floating layer manager
First message in one floating layer is passed to another floating layer by formula.
The present invention also provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer readable storage medium storing program for executing is deposited
Computer instruction is stored up, the computer instruction makes computer perform telecommunication management side between the floating layer that above-mentioned corresponding embodiment is provided
Method, such as including:Floating layer manager is configured for multiple floating layers on player interface, the floating layer manager is used to be managed collectively
Each floating layer;, will by way of floating layer manager is forwarded when a floating layer sends first message to another floating layer
First message in one floating layer passes to another floating layer.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
The embodiment such as equipment of communication management method is only schematical between floating layer described above, divides wherein being used as
Unit from part description can be or may not be it is physically separate, can be as the part that unit is shown or
It may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can basis
It is actual to need to select some or all of module therein to realize the purpose of this embodiment scheme.Ordinary skill people
Member is not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Some Part Methods of example or embodiment.
The invention provides communication management method and system between a kind of floating layer, by devising floating layer manager and view control
The mode of device processed come the communication between the communication being managed collectively between floating layer and floating layer and floating layer internal view element and view elements,
Orderly management.In addition, by having set up floating layer manager and view controller two such communication layers, the transmission of message needs to flow
Forwarded again through floating layer manager, so we just can be managed collectively and be distributed to message.Due to introducing floating layer
The concept of manager and View Manager so that the communication between floating layer and between view elements becomes very simple, will be original
Complicated communication isolating is come, and message is managed collectively and distributed, and is greatly improved development efficiency and is caused
The hierarchical structure relation of software is simpler to be understood.
Finally, the present processes are only preferable embodiment, are not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc., the protection of the present invention should be included in
Within the scope of.
Claims (10)
- A kind of 1. communication management method between floating layer, it is characterised in that including:S1, it is that multiple floating layers on player interface configure floating layer manager, the floating layer manager is each for being managed collectively Floating layer;S2, when a floating layer sends first message to another floating layer, by one by way of floating layer manager is forwarded First message in individual floating layer passes to another floating layer.
- 2. communication management method between floating layer as claimed in claim 1, it is characterised in that in the step S2, pass through floating layer pipe First message in one floating layer is passed to another floating layer by the mode that reason device is forwarded to be included:Floating layer manager receives the first message that source floating layer is sent, wherein, the first message includes at least one purpose and floated Layer ID and first message content;At least one purpose floating layer ID in the first message, the first message content is transmitted to purpose floating layer ID Corresponding floating layer.
- 3. communication management method between floating layer as claimed in claim 1, it is characterised in that placed in each described floating layer multiple View elements, the step S1 also include:In each floating layer, for multiple view elements configuration view controllers in the floating layer;Correspondingly, the step S2 also includes:When a view elements in same floating layer send the second message to another view elements, by the floating layer The mode of view controller forwarding gives the second message transmission in a view elements to another view elements.
- 4. communication management method between floating layer as claimed in claim 3, it is characterised in that the view control by the floating layer The mode of device forwarding processed includes the second message transmission in a view elements to another view elements:View controller receives the second message that source view elements are sent, wherein, second message includes at least one mesh View elements ID and the second message content;At least one purpose view elements ID in second message, second message content is transmitted to purpose and regarded View elements corresponding to pel element ID.
- 5. communication management method between floating layer as claimed in claim 4, it is characterised in that also include:When view elements of the view elements in a floating layer into another floating layer send three message, pass through floating layer management The mode that device and view controller forward jointly realizes the message transmission between different floating layer internal view elements.
- 6. communication management method between floating layer as claimed in claim 5, it is characterised in that described to pass through floating layer manager and view The mode that controller forwards jointly realizes that the message transmission between different floating layer internal view elements includes:Source view controller in the floating layer of source receives the 3rd message that the source view elements in the floating layer of source are sent, and by the described 3rd Message is transmitted to floating layer controller, wherein, the 3rd message includes at least one purpose floating layer ID, at least one purpose view Element ID and the 3rd message content;At least one purpose floating layer ID of the floating layer controller in the 3rd message, the 3rd message content is transmitted to View controller in floating layer corresponding to purpose floating layer ID;According at least one purpose view elements ID in the 3rd message, view controller in purpose floating layer is by described Three message contents are transmitted to view elements corresponding to purpose view elements ID.
- 7. communication management method between floating layer as claimed in claim 6, it is characterised in that also include:The interface defined in floating layer manager, and define two interface functions respectively in the interface, reception source is realized respectively Message that floating layer is sent and to purpose floating layer dispatch messages;AndInterface defined in view controller in floating layer, and two functions defined in the interface, realize to receive respectively and float The message and the view elements dispatch messages into the floating layer of layer controller forwarding.
- A kind of 8. communications management system between floating layer, it is characterised in that including:Configuration module, for configuring floating layer manager for multiple floating layers on player interface, the floating layer manager is used to unite The one each floating layer of management;Floating layer manager, for when a floating layer sends first message to another floating layer, being turned by floating layer manager First message in one floating layer is passed to another floating layer by the mode of hair.
- 9. the equipment of communication management method between a kind of floating layer, it is characterised in that including processor (processor), memory And bus (memory);The processor and memory complete mutual communication by the bus;The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program instruction energy Enough perform the method as described in claim any one of 1-7.
- 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1 to 7 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710516149.9A CN107423143B (en) | 2017-06-29 | 2017-06-29 | Communication management method and system between a kind of floating layer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710516149.9A CN107423143B (en) | 2017-06-29 | 2017-06-29 | Communication management method and system between a kind of floating layer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107423143A true CN107423143A (en) | 2017-12-01 |
CN107423143B CN107423143B (en) | 2019-12-03 |
Family
ID=60426842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710516149.9A Active CN107423143B (en) | 2017-06-29 | 2017-06-29 | Communication management method and system between a kind of floating layer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423143B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086107A (en) * | 2018-06-28 | 2018-12-25 | 武汉斗鱼网络科技有限公司 | Barrage message distributing method, device, equipment and storage medium |
CN111309415A (en) * | 2020-01-17 | 2020-06-19 | 北京无限光场科技有限公司 | UI (user interface) information processing method and device of application program and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060524A (en) * | 2006-05-09 | 2007-10-24 | 华为技术有限公司 | A multicast service application method and system |
CN101763267A (en) * | 2010-01-21 | 2010-06-30 | 深圳市同洲电子股份有限公司 | Method for realizing embedded browser, device therefor and digital television receiving terminal |
CN103019866A (en) * | 2012-10-24 | 2013-04-03 | 北京京东世纪贸易有限公司 | Distributed method and system based on message queue |
CN103842960A (en) * | 2011-09-30 | 2014-06-04 | 诺基亚公司 | Method and apparatus for inter-widget communication |
-
2017
- 2017-06-29 CN CN201710516149.9A patent/CN107423143B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060524A (en) * | 2006-05-09 | 2007-10-24 | 华为技术有限公司 | A multicast service application method and system |
CN101763267A (en) * | 2010-01-21 | 2010-06-30 | 深圳市同洲电子股份有限公司 | Method for realizing embedded browser, device therefor and digital television receiving terminal |
CN103842960A (en) * | 2011-09-30 | 2014-06-04 | 诺基亚公司 | Method and apparatus for inter-widget communication |
CN103019866A (en) * | 2012-10-24 | 2013-04-03 | 北京京东世纪贸易有限公司 | Distributed method and system based on message queue |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086107A (en) * | 2018-06-28 | 2018-12-25 | 武汉斗鱼网络科技有限公司 | Barrage message distributing method, device, equipment and storage medium |
CN109086107B (en) * | 2018-06-28 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | Bullet screen message distribution method, device, equipment and storage medium |
CN111309415A (en) * | 2020-01-17 | 2020-06-19 | 北京无限光场科技有限公司 | UI (user interface) information processing method and device of application program and electronic equipment |
CN111309415B (en) * | 2020-01-17 | 2024-01-02 | 北京有竹居网络技术有限公司 | User Interface (UI) information processing method and device of application program and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107423143B (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102571554B (en) | Methods and apparatus for forwarding-state transport in a distributed control plane | |
CN108681436A (en) | Image quality parameter adjusting method, device, terminal and storage medium | |
CN107368311B (en) | Method and system for communication among multiple fragments | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
JP2006101525A (en) | Network-on-chip half automatic transmission architecture for data flow application | |
US20140164539A1 (en) | Application service integration | |
CN105828300A (en) | Method of realizing state information subscription in cluster system | |
CN110278256A (en) | Block chain node accesses cochain method, relevant device and system | |
CN107423143A (en) | Communication management method and system between a kind of floating layer | |
CN108833578A (en) | The method and relevant device of duplex communication are carried out based on FIFO name pipeline | |
CN109672632A (en) | FC-AE-ASM Data Communication in Computer Networks method and system | |
CN109240684A (en) | A kind of page service logic realization method and system | |
CN114422566A (en) | Multi-device connection method, device, system, device and storage medium | |
CN109101264A (en) | A kind of method and electronic equipment for direct broadcasting room page development | |
CN108965786A (en) | A kind of electronic whiteboard content sharing method and device | |
CN104683728B (en) | Establish the method and system of video communication | |
CN102223290B (en) | Quality of service (QoS) configuration method, QoS configuration device and QoS configuration system | |
CN105493471B (en) | Transparent data transmission method and public service entity | |
CN113439418A (en) | Method, system, terminal and storage medium for changing resource state | |
CN103281205A (en) | Method for configuring isolating information at ports, and network equipment | |
CN107220811B (en) | Method and device for activating nodes in process | |
CN113037804B (en) | Heterogeneous unmanned cluster communication resource virtualization method and system | |
CN108462657A (en) | The method and apparatus for obtaining the resource and information of the SDN network of different operators | |
CN103605594B (en) | Terminal-based funcall method and device | |
CN101510827B (en) | Routing exchange device, method and method for updating business of routing exchange device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |